Class AnnotatedGenericRowMapper<T>
- java.lang.Object
-
- com.github.ddth.dao.jdbc.AbstractGenericRowMapper<T>
-
- com.github.ddth.dao.jdbc.annotations.AnnotatedGenericRowMapper<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
IRowMapper<T>
- Direct Known Subclasses:
UniversalRowMapper
public class AnnotatedGenericRowMapper<T> extends AbstractGenericRowMapper<T>
Abstract generic implementation ofIRowMapper
.- Since:
- 0.8.0
- Author:
- Thanh Nguyen
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.github.ddth.dao.jdbc.AbstractGenericRowMapper
AbstractGenericRowMapper.ColAttrMapping, AbstractGenericRowMapper.ColumnDataExtractor<R>
-
-
Constructor Summary
Constructors Constructor Description AnnotatedGenericRowMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getAllColumns()
Get all DB table column names.java.lang.String
getChecksumColumn()
Get name of checksum column.java.util.Map<java.lang.String,AbstractGenericRowMapper.ColAttrMapping>
getColumnAttributeMappings()
Get DB table column -> BO attribute mappings.java.lang.String[]
getPrimaryKeyColumns()
Get primary-key column names.java.lang.String[]
getUpdateColumns()
Get DB table column names used for updating.-
Methods inherited from class com.github.ddth.dao.jdbc.AbstractGenericRowMapper
generateSqlDelete, generateSqlInsert, generateSqlSelect, generateSqlSelectAll, generateSqlUpdate, getClassLoader, getInsertColumns, getTypeClass, mapRow, valuesForColumns
-
-
-
-
Method Detail
-
getChecksumColumn
public java.lang.String getChecksumColumn()
Get name of checksum column.- Overrides:
getChecksumColumn
in classAbstractGenericRowMapper<T>
- Returns:
-
getPrimaryKeyColumns
public java.lang.String[] getPrimaryKeyColumns()
Get primary-key column names.- Specified by:
getPrimaryKeyColumns
in classAbstractGenericRowMapper<T>
- Returns:
-
getUpdateColumns
public java.lang.String[] getUpdateColumns()
Get DB table column names used for updating.- Specified by:
getUpdateColumns
in classAbstractGenericRowMapper<T>
- Returns:
-
getColumnAttributeMappings
public java.util.Map<java.lang.String,AbstractGenericRowMapper.ColAttrMapping> getColumnAttributeMappings()
Get DB table column -> BO attribute mappings.- Specified by:
getColumnAttributeMappings
in classAbstractGenericRowMapper<T>
- Returns:
- mappings
column-name -> ColAttrMapping
-
getAllColumns
public java.lang.String[] getAllColumns()
Get all DB table column names.- Overrides:
getAllColumns
in classAbstractGenericRowMapper<T>
- Returns:
- Since:
- 0.8.1
-
-