com.activequant.dao.mybatis.mapper
Interface GenericRowMapper


public interface GenericRowMapper


Method Summary
 int count(String table)
           
 int countForDoubleValue(String table, String fieldName, Double value)
           
 int countForLongValue(String table, String fieldName, Long value)
           
 int countForStringValue(String table, String fieldName, String value)
           
 void delete(String table, String keyVal)
           
 List<String> findBy2StringVals(String table, String fieldName1, String val1, String fieldName2, String val2)
           
 List<String> findByDouble(String table, String fieldName, Double val)
           
 List<String> findByLong(String table, String fieldName, Long val)
           
 List<String> findByString(String table, String fieldName, String val)
           
 List<String> findIDs(String table, int startIndex, int endIndex)
           
 List<String> findIDsBetween(String table, long startTime, long endTime)
           
 List<String> findIdsLike(String tableName, String idsLikeString, int resultAmount)
           
 List<String> findIDsWhereLongValGreater(String table, String fieldName, Long val)
           
 void genIndex1(String table)
           
 void genIndex2(String table)
           
 void genIndex3(String table)
           
 void genIndex4(String table)
           
 void genIndex5(String table)
           
 void genIndex6(String table)
           
 void genIndex7(String table)
           
 void genIndex8(String table)
           
 void genKey9(String table)
           
 void init(String table)
           
 void insert(String table, GenericRow row)
           
 List<GenericRow> load(String table, String keyValue)
           
 List<String> loadKeyList(String table)
           
 List<Double> selectDistinctDoubleVal(String table, String fieldName)
           
 List<Long> selectDistinctLongVal(String table, String fieldName)
           
 List<String> selectDistinctStringVal(String table, String fieldName)
           
 void update(String table, GenericRow row)
           
 

Method Detail

init

void init(String table)

genIndex1

void genIndex1(String table)

genIndex2

void genIndex2(String table)

genIndex3

void genIndex3(String table)

genIndex4

void genIndex4(String table)

genIndex5

void genIndex5(String table)

genIndex6

void genIndex6(String table)

genIndex7

void genIndex7(String table)

genIndex8

void genIndex8(String table)

genKey9

void genKey9(String table)

load

List<GenericRow> load(String table,
                      String keyValue)

insert

@Transactional
void insert(String table,
                          GenericRow row)

loadKeyList

List<String> loadKeyList(String table)

findByString

List<String> findByString(String table,
                          String fieldName,
                          String val)

findByLong

List<String> findByLong(String table,
                        String fieldName,
                        Long val)

findByDouble

List<String> findByDouble(String table,
                          String fieldName,
                          Double val)

delete

void delete(String table,
            String keyVal)

findBy2StringVals

List<String> findBy2StringVals(String table,
                               String fieldName1,
                               String val1,
                               String fieldName2,
                               String val2)

findIDsWhereLongValGreater

List<String> findIDsWhereLongValGreater(String table,
                                        String fieldName,
                                        Long val)

countForStringValue

int countForStringValue(String table,
                        String fieldName,
                        String value)

countForLongValue

int countForLongValue(String table,
                      String fieldName,
                      Long value)

countForDoubleValue

int countForDoubleValue(String table,
                        String fieldName,
                        Double value)

selectDistinctStringVal

List<String> selectDistinctStringVal(String table,
                                     String fieldName)

selectDistinctLongVal

List<Long> selectDistinctLongVal(String table,
                                 String fieldName)

selectDistinctDoubleVal

List<Double> selectDistinctDoubleVal(String table,
                                     String fieldName)

count

int count(String table)

findIDs

List<String> findIDs(String table,
                     int startIndex,
                     int endIndex)

findIDsBetween

List<String> findIDsBetween(String table,
                            long startTime,
                            long endTime)

findIdsLike

List<String> findIdsLike(String tableName,
                         String idsLikeString,
                         int resultAmount)

update

@Transactional
void update(String table,
                          GenericRow row)


Copyright © 2012 ActiveQuant GmbH. All Rights Reserved.