public class TnRelationRowCache extends Object
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected boolean |
_canCache
Can the relation row cache?
|
protected Map<String,Map<TnRelationKey,Object>> |
_rowMap
The list of row map. map:{relationPath = map:{relationKey = row}} (NotNull: if canCache is true)
|
| コンストラクタと説明 |
|---|
TnRelationRowCache(int relSize,
boolean canCache) |
protected final Map<String,Map<TnRelationKey,Object>> _rowMap
protected final boolean _canCache
public TnRelationRowCache(int relSize,
boolean canCache)
relSize - The size of relation.canCache - Can the relation row cache?public Object getRelationRow(String relationNoSuffix, TnRelationKey relKey)
relationNoSuffix - The relation No suffix that indicates the location of the relation.relKey - The key of relation. (NotNull)public void addRelationRow(String relationNoSuffix, TnRelationKey relKey, Object relationRow)
relationNoSuffix - The relation No suffix that indicates the location of the relation.relKey - The key of relation. (NotNull)relationRow - The relation row. (NullAllowed)public TnRelationKey createRelationKey(ResultSet rs, TnRelationPropertyType rpt, Map<String,String> selectColumnMap, Map<String,Map<String,Integer>> selectIndexMap, String relationNoSuffix) throws SQLException
rs - The result set. (NotNull)rpt - The property type of relation. (NotNull)selectColumnMap - The name map of select column. {flexible-name = column-DB-name} (NotNull)selectIndexMap - The map of select index. map:{entityNo(e.g. loc00 or _0_3) = map:{selectColumnKeyName = selectIndex}} (NullAllowed: If it's null, it doesn't use select index.)relationNoSuffix - The suffix of relation No. (NotNull)SQLException - When it fails to handle the SQL.protected TnRelationKey doCreateRelationKeySimple(ResultSet rs, TnRelationPropertyType rpt, Map<String,String> selectColumnMap, Map<String,Map<String,Integer>> selectIndexMap, String relationNoSuffix) throws SQLException
SQLExceptionprotected TnRelationKey doCreateRelationKeyCompound(ResultSet rs, TnRelationPropertyType rpt, Map<String,String> selectColumnMap, Map<String,Map<String,Integer>> selectIndexMap, String relationNoSuffix) throws SQLException
SQLExceptionprotected String buildColumnKeyName(TnPropertyType pt, String relationNoSuffix)
protected Object setupKeyElement(ResultSet rs, TnRelationPropertyType rpt, Map<String,String> selectColumnMap, Map<String,Map<String,Integer>> selectIndexMap, String columnKeyName, TnPropertyType pt, String relationNoSuffix) throws SQLException
SQLExceptionprotected boolean isOutOfRelationSelectIndex(String relationNoSuffix, String columnDbName, Map<String,Map<String,Integer>> selectIndexMap) throws SQLException
SQLExceptionpublic Map<String,Map<TnRelationKey,Object>> getRowMap()
Copyright © 2014–2015 The DBFlute Project. All rights reserved.