public class TnBeanListResultSetHandler extends TnAbstractBeanResultSetHandler
| 修飾子とタイプ | クラスと説明 |
|---|---|
protected static interface |
TnBeanListResultSetHandler.BeanRowHandler |
_relationRowCreator, _rowCreator| コンストラクタと説明 |
|---|
TnBeanListResultSetHandler(TnBeanMetaData beanMetaData,
TnRowCreator rowCreator,
TnRelationRowCreator relationRowCreator) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected boolean |
canRelationMappingCache(ConditionBean cb)
Can the relation mapping (entity instance) cache?
|
protected boolean |
checkNonSpecifiedColumnAccess(boolean hasCB,
ConditionBean cb,
boolean hasOql,
OutsideSqlContext oqlCtx)
Does it check access to non-specified column in base-point table?
|
protected TnRelationRowCache |
createRelationRowCache(boolean hasCB,
ConditionBean cb)
Create the cache of relation row.
|
protected TnRelationSelector |
createRelationSelector(boolean hasCB,
ConditionBean cb)
Create the selector of relation.
|
protected Object |
filterOptionalRelationRowIfNeeds(Object row,
TnRelationPropertyType rpt,
Object relationRow) |
protected ConditionBean |
getConditionBean()
Get the condition-bean on the thread if it exists.
|
protected String |
getFirstLevelRelationPath(TnRelationPropertyType rpt) |
protected int |
getSelectedRelationCount(ConditionBean cb)
Get the count of selected relation.
|
Object |
handle(ResultSet rs) |
protected boolean |
hasConditionBean()
Does the select have the condition-bean?
|
protected boolean |
hasOutsideSqlContext() |
protected boolean |
isOutsideSqlNonSpecifiedColumnAccessChecked(OutsideSqlContext context,
Class<?> resultType) |
protected boolean |
isOutsideSqlNonSpecifiedColumnAccessCheckTarget(Class<?> resultType) |
protected boolean |
isSelectedRelationEmpty(ConditionBean cb)
Is the selected relation empty?
|
protected boolean |
isSpecifiedOutsideSql(OutsideSqlContext context) |
protected boolean |
isUndefinedClassificationSelectAllowed(boolean hasCB,
ConditionBean cb) |
protected boolean |
isUseColumnNullObjectHandling(boolean hasCB,
ConditionBean cb) |
protected void |
mappingBean(ResultSet rs,
TnBeanListResultSetHandler.BeanRowHandler handler) |
protected void |
mappingFirstRelation(ResultSet rs,
Object row,
TnRelationPropertyType rpt,
Map<String,String> selectColumnMap,
Map<String,Map<String,Integer>> selectIndexMap,
Map<String,Map<String,TnPropertyMapping>> relPropCache,
TnRelationRowCache relRowCache,
TnRelationSelector relSelector)
Do mapping first relation row.
|
adjustCreatedRelationRow, adjustCreatedRow, createPropertyCache, createRelationPropertyCache, createRelationRow, createRow, createSelectColumnMap, getBeanMetaDatapublic TnBeanListResultSetHandler(TnBeanMetaData beanMetaData, TnRowCreator rowCreator, TnRelationRowCreator relationRowCreator)
beanMetaData - Bean meta data. (NotNull)rowCreator - Row creator. (NotNull)relationRowCreator - Relation row creator. (NotNul)public Object handle(ResultSet rs) throws SQLException
SQLExceptionprotected void mappingBean(ResultSet rs, TnBeanListResultSetHandler.BeanRowHandler handler) throws SQLException
SQLExceptionprotected TnRelationSelector createRelationSelector(boolean hasCB, ConditionBean cb)
hasCB - Does the select use condition-bean?cb - The condition-bean for the select. (NullAllowed: not condition-bean select)protected TnRelationRowCache createRelationRowCache(boolean hasCB, ConditionBean cb)
hasCB - Does the select use condition-bean?cb - The condition-bean for the select. (NullAllowed: not condition-bean select)protected void mappingFirstRelation(ResultSet rs, Object row, TnRelationPropertyType rpt, Map<String,String> selectColumnMap, Map<String,Map<String,Integer>> selectIndexMap, Map<String,Map<String,TnPropertyMapping>> relPropCache, TnRelationRowCache relRowCache, TnRelationSelector relSelector) throws SQLException
TnRelationRowCreatorExtension. rs - The result set of JDBC, connecting to database here. (NotNull)row - The base point row. (NotNull)rpt - The property type of the relation. (NotNull)selectColumnMap - The map of select column. (NotNull)selectIndexMap - The map of select index. map:{entityNo(e.g. loc00 or _0_3) = map:{selectColumnKeyName = selectIndex}} (NullAllowed)relPropCache - The map of relation property cache. (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 String getFirstLevelRelationPath(TnRelationPropertyType rpt)
protected Object filterOptionalRelationRowIfNeeds(Object row, TnRelationPropertyType rpt, Object relationRow)
protected boolean checkNonSpecifiedColumnAccess(boolean hasCB,
ConditionBean cb,
boolean hasOql,
OutsideSqlContext oqlCtx)
hasCB - Does it have condition-bean context in thread local?cb - The condition-bean for the select. (NullAllowed: when not condition-bean select)hasOql - Does it have outsideSql context in thread local?oqlCtx - The context of outsideSql. (NullAllowed: when not outsideSql select)protected boolean isOutsideSqlNonSpecifiedColumnAccessChecked(OutsideSqlContext context, Class<?> resultType)
protected boolean isOutsideSqlNonSpecifiedColumnAccessCheckTarget(Class<?> resultType)
protected boolean isUndefinedClassificationSelectAllowed(boolean hasCB,
ConditionBean cb)
protected boolean isUseColumnNullObjectHandling(boolean hasCB,
ConditionBean cb)
protected boolean hasConditionBean()
protected ConditionBean getConditionBean()
protected boolean isSelectedRelationEmpty(ConditionBean cb)
hasConditionBean() before calling this.cb - The condition-bean for the select. (NotNull)protected int getSelectedRelationCount(ConditionBean cb)
hasConditionBean() before calling this.cb - The condition-bean for the select. (NotNull)protected boolean canRelationMappingCache(ConditionBean cb)
hasConditionBean() before calling this.cb - The condition-bean for the select. (NotNull)protected boolean hasOutsideSqlContext()
protected boolean isSpecifiedOutsideSql(OutsideSqlContext context)
Copyright © 2014–2015 The DBFlute Project. All rights reserved.