public class TnRowCreatorExtension extends TnRowCreatorImpl
| 修飾子とタイプ | クラスと説明 |
|---|---|
protected static class |
TnRowCreatorExtension.DBMetaCacheHandler |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected boolean |
_creatableByDBMeta |
protected DBMeta |
_fixedDBMeta |
protected static String |
DBMETA_CACHE_KEY
The key of DBMeta cache.
|
protected static String |
DERIVED_MAPPABLE_ALIAS_PREFIX
The prefix mark for derived mapping alias.
|
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
TnRowCreatorExtension() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static void |
adjustCreatedRow(Object row,
boolean checkNonSp,
boolean colNullObj,
TnBeanMetaData basePointBmd,
ConditionBean cb)
Adjust created row.
|
protected boolean |
canHandleDerivedMap(Object row) |
Object |
createRow(ResultSet rs,
Map<String,Map<String,Integer>> selectIndexMap,
Map<String,TnPropertyMapping> propertyCache,
Class<?> beanClass,
ConditionBean cb)
Create row instance of base point table.
|
static TnRowCreatorExtension |
createRowCreator(Class<?> beanClass) |
static DBMeta |
findCachedDBMeta(Class<?> rowType,
String tableName) |
static DBMeta |
findCachedDBMeta(Object row) |
protected static DBMeta |
findDBMetaByClass(Class<?> beanClass) |
protected Object |
getValue(ResultSet rs,
String columnName,
ValueType valueType,
Map<String,Map<String,Integer>> selectIndexMap) |
protected static boolean |
isCreatableByDBMeta(Class<?> beanClass,
Class<?> entityType) |
protected String |
ln() |
protected static Object |
newInstance(Class<?> clazz) |
protected void |
processDerivedMap(ResultSet rs,
Map<String,Map<String,Integer>> selectIndexMap,
Map<String,TnPropertyMapping> propertyCache,
Object row) |
protected void |
reflectConditionBeanOptionToEntity(ConditionBean cb,
Entity entity) |
void |
setCreatableByDBMeta(boolean creatableByDBMeta) |
void |
setFixedDBMeta(DBMeta fixedDBMeta) |
protected void |
throwMappingClassCastException(Object entity,
DBMeta dbmeta,
TnPropertyMapping mapping,
Object selectedValue,
ClassCastException e) |
createPropertyCache, isOutOfLocalSelectIndex, newBean, newPropertyCache, setupPropertyCache, setupPropertyCacheElementprotected static final String DBMETA_CACHE_KEY
protected static final String DERIVED_MAPPABLE_ALIAS_PREFIX
protected DBMeta _fixedDBMeta
protected boolean _creatableByDBMeta
public static TnRowCreatorExtension createRowCreator(Class<?> beanClass)
beanClass - The class of target bean to find DB-meta. (NullAllowed)protected static boolean isCreatableByDBMeta(Class<?> beanClass, Class<?> entityType)
public Object createRow(ResultSet rs, Map<String,Map<String,Integer>> selectIndexMap, Map<String,TnPropertyMapping> propertyCache, Class<?> beanClass, 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 row property cache. The key is String(columnName) and the value is a PropertyMapping. (NotNull)beanClass - Bean class. (NotNull)cb - The condition-bean for the select. (NullAllowed: when not condition-bean select)SQLException - When it fails to handle the SQL.protected void reflectConditionBeanOptionToEntity(ConditionBean cb, Entity entity)
protected boolean canHandleDerivedMap(Object row)
protected void processDerivedMap(ResultSet rs, Map<String,Map<String,Integer>> selectIndexMap, Map<String,TnPropertyMapping> propertyCache, Object row) throws SQLException
SQLExceptionprotected Object getValue(ResultSet rs, String columnName, ValueType valueType, Map<String,Map<String,Integer>> selectIndexMap) throws SQLException
SQLExceptionprotected void throwMappingClassCastException(Object entity, DBMeta dbmeta, TnPropertyMapping mapping, Object selectedValue, ClassCastException e)
public static DBMeta findCachedDBMeta(Object row)
row - The instance of row. (NotNull)public static DBMeta findCachedDBMeta(Class<?> rowType, String tableName)
rowType - The type of row. (NotNull)tableName - The name of table. (NotNull)public static 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 String ln()
public void setFixedDBMeta(DBMeta fixedDBMeta)
public void setCreatableByDBMeta(boolean creatableByDBMeta)
Copyright © 2014–2015 The DBFlute Project. All rights reserved.