public abstract class TnAbstractBeanResultSetHandler extends Object implements TnResultSetHandler
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected TnRelationRowCreator |
_relationRowCreator |
protected TnRowCreator |
_rowCreator |
| コンストラクタと説明 |
|---|
TnAbstractBeanResultSetHandler(TnBeanMetaData beanMetaData,
TnRowCreator rowCreator,
TnRelationRowCreator relationRowCreator) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
adjustCreatedRelationRow(Object relationRow,
String relationNoSuffix,
TnRelationSelector relSelector,
TnRelationPropertyType rpt)
Adjust created row for relation tables.
|
protected void |
adjustCreatedRow(Object row,
boolean checkNonSp,
boolean colNullObj,
TnBeanMetaData basePointBmd,
ConditionBean cb)
Adjust created row for base-point table.
|
protected Map<String,TnPropertyMapping> |
createPropertyCache(Map<String,String> selectColumnMap,
Map<String,Map<String,Integer>> selectIndexMap)
Create property cache for base point row.
|
protected Map<String,Map<String,TnPropertyMapping>> |
createRelationPropertyCache(Map<String,String> selectColumnMap,
Map<String,Map<String,Integer>> selectIndexMap,
TnRelationSelector relSelector)
Create relation property cache.
|
protected Object |
createRelationRow(ResultSet rs,
TnRelationPropertyType rpt,
Map<String,String> selectColumnMap,
Map<String,Map<String,Integer>> selectIndexMap,
TnRelationKey relKey,
Map<String,Map<String,TnPropertyMapping>> relPropCache,
TnRelationRowCache relRowCache,
TnRelationSelector relSelector)
Create relation row.
|
protected Object |
createRow(ResultSet rs,
Map<String,Map<String,Integer>> selectIndexMap,
Map<String,TnPropertyMapping> propertyCache,
ConditionBean cb)
Create base point row.
|
protected Map<String,String> |
createSelectColumnMap(ResultSet rs) |
TnBeanMetaData |
getBeanMetaData() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleprotected final TnRowCreator _rowCreator
protected final TnRelationRowCreator _relationRowCreator
public TnAbstractBeanResultSetHandler(TnBeanMetaData beanMetaData, TnRowCreator rowCreator, TnRelationRowCreator relationRowCreator)
beanMetaData - Bean meta data. (NotNull)rowCreator - Row creator. (NotNull)relationRowCreator - Relation row creator. (NotNul)protected Map<String,TnPropertyMapping> createPropertyCache(Map<String,String> selectColumnMap, Map<String,Map<String,Integer>> selectIndexMap) throws SQLException
selectColumnMap - The map of select column name. map:{flexibleName = columnAliasName} (NotNull)selectIndexMap - The map of select index. map:{entityNo(e.g. loc00 or _0_3) = map:{selectColumnKeyName = selectIndex}} (NullAllowed)SQLException - When it fails to handle the SQL.protected Map<String,Map<String,TnPropertyMapping>> createRelationPropertyCache(Map<String,String> selectColumnMap, Map<String,Map<String,Integer>> selectIndexMap, TnRelationSelector relSelector) throws SQLException
selectColumnMap - The map of select column name. map:{flexibleName = columnAliasName} (NotNull)selectIndexMap - The map of select index. map:{entityNo(e.g. loc00 or _0_3) = map:{selectColumnKeyName = selectIndex}} (NullAllowed)relSelector - The selector of relation, which can determines e.g. is it not-selected relation?. (NotNull)SQLException - When it fails to handle the SQL.protected Object createRow(ResultSet rs, Map<String,Map<String,Integer>> selectIndexMap, Map<String,TnPropertyMapping> propertyCache, ConditionBean cb) throws SQLException
rs - Result set. (NotNull)selectIndexMap - The map of select index. map:{entityNo(e.g. loc00 or _0_3) = map:{selectColumnKeyName = selectIndex}} (NullAllowed)propertyCache - The map of property cache. map:{columnName, PropertyMapping} (NotNull)cb - The condition-bean for the select. (NullAllowed: when not condition-bean select)SQLException - When it fails to handle the SQL.protected Object createRelationRow(ResultSet rs, TnRelationPropertyType rpt, Map<String,String> selectColumnMap, Map<String,Map<String,Integer>> selectIndexMap, TnRelationKey relKey, Map<String,Map<String,TnPropertyMapping>> relPropCache, TnRelationRowCache relRowCache, TnRelationSelector relSelector) throws SQLException
rs - Result set. (NotNull)rpt - The type of relation property. (NotNull)selectColumnMap - The name map of select column. map:{flexibleName = columnDbName} (NotNull)selectIndexMap - The map of select index. map:{entityNo(e.g. loc00 or _0_3) = map:{selectColumnKeyName = selectIndex}} (NullAllowed)relKey - The relation key, which has key values, of the relation. (NotNull)relPropCache - The map of relation property cache. map:{relationNoSuffix = map:{columnName = PropertyMapping}} (NotNull)relRowCache - The cache of relation row. (NotNull)relSelector - The selector of relation, which can determines e.g. is it not-selected relation?. (NotNull)SQLException - When it fails to handle the SQL.protected void adjustCreatedRow(Object row, boolean checkNonSp, boolean colNullObj, TnBeanMetaData basePointBmd, ConditionBean cb)
row - The row of result list. (NotNull)checkNonSp - Does is use the check of access to non-specified column?colNullObj - Does is use the handling of column null object?basePointBmd - The bean meta data of the row for base-point table. (NotNull)cb - The condition-bean for the select. (NullAllowed: when not condition-bean select)protected void adjustCreatedRelationRow(Object relationRow, String relationNoSuffix, TnRelationSelector relSelector, TnRelationPropertyType rpt)
relationRow - The relation row of tables related to the base-point table. (NotNull)relationNoSuffix - The suffix of relation no, e.g. _0, _1_3. (NotNull)relSelector - The selector of relation, which has various determination. (NotNull)rpt - The property type of the relation. (NotNull)protected Map<String,String> createSelectColumnMap(ResultSet rs) throws SQLException
SQLExceptionpublic TnBeanMetaData getBeanMetaData()
Copyright © 2014–2015 The DBFlute Project. All rights reserved.