DBMeta.OptimisticLockType| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected static Object |
DUMMY_VALUE
The dummy value for internal map value.
|
| コンストラクタと説明 |
|---|
AbstractDBMeta() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
assertObjectNotNull(String variableName,
Object value)
Assert that the argument is not null.
|
protected void |
assertStringNotNullAndNotTrimmedEmpty(String variableName,
String value)
Assert that the string is not null and not trimmed empty.
|
protected String |
buildPropertyGetterMethodName(String propertyName) |
protected String |
buildPropertySetterMethodName(String propertyName) |
protected String |
buildRelationInfoGetterMethodNameInitCap(String targetName,
String relationPropertyName) |
protected ColumnInfo |
cci(String columnDbName,
String columnSqlName,
String columnSynonym,
String columnAlias,
Class<?> objectNativeType,
String propertyName,
Class<?> propertyAccessType,
boolean primary,
boolean autoIncrement,
boolean notNull,
String columnDbType,
Integer columnSize,
Integer decimalDigits,
String defaultValue,
boolean commonColumn,
DBMeta.OptimisticLockType optimisticLockType,
String columnComment,
String foreignListExp,
String referrerListExp,
ClassificationMeta classificationMeta,
boolean canBeNullObject) |
protected abstract List<ColumnInfo> |
ccil() |
protected static void |
ccls(Entity entity,
ColumnInfo columnInfo,
Object code) |
protected ForeignInfo |
cfi(String constraintName,
String foreignPropertyName,
DBMeta localDbm,
DBMeta foreignDbm,
Map<ColumnInfo,ColumnInfo> localForeignColumnInfoMap,
int relationNo,
Class<?> propertyAccessType,
boolean oneToOne,
boolean bizOneToOne,
boolean referrerAsOne,
boolean additionalFK,
String fixedCondition,
List<String> dynamicParameterList,
boolean fixedInline,
String reversePropertyName,
boolean canBeNullObject) |
protected void |
checkDowncast(Entity entity) |
protected Class<?> |
chooseColumnPropertyAccessType(Class<?> objectNativeType,
String propertyName,
Class<?> propertyAccessType) |
protected Class<?> |
chooseForeignPropertyAccessType(DBMeta foreignDbm,
Class<?> specifiedType) |
protected Class<?> |
chooseReferrerPropertyAccessType(DBMeta referrerDbm,
boolean oneToOne) |
protected abstract UniqueInfo |
cpui() |
protected PropertyMethodFinder |
createColumnPropertyMethodFinder() |
protected <VALUE> StringKeyMap<VALUE> |
createFlexibleConcurrentMap() |
protected PropertyMethodFinder |
createForeignPropertyMethodFinder() |
protected MetaHandlingEntityToMapMapper |
createMetaHandlingEntityToMapMapper(Entity entity) |
protected MetaHandlingMapToEntityMapper |
createMetaHandlingMapToEntityMapper(Map<String,? extends Object> columnMap) |
protected PropertyMethodFinder |
createReferrerPropertyMethodFinder() |
protected ReferrerInfo |
cri(String constraintName,
String referrerPropertyName,
DBMeta localDbm,
DBMeta referrerDbm,
Map<ColumnInfo,ColumnInfo> localReferrerColumnInfoMap,
boolean oneToOne,
String reversePropertyName) |
protected static BigDecimal |
ctb(Object value) |
protected static Date |
ctdt(Object value) |
protected static Integer |
cti(Object value) |
protected static Long |
ctl(Object value) |
protected static LocalDate |
ctld(Object value) |
protected static LocalDateTime |
ctldt(Object value) |
protected static LocalTime |
ctlt(Object value) |
protected static <NUMBER extends Number> |
ctn(Object value,
Class<NUMBER> type) |
protected static Time |
cttm(Object value) |
protected static Timestamp |
cttp(Object value) |
protected <ENTITY extends Entity> |
doAcceptAllColumnMap(ENTITY entity,
Map<String,? extends Object> allColumnMap) |
protected <ENTITY extends Entity> |
doAcceptPrimaryKeyMap(ENTITY entity,
Map<String,? extends Object> primaryKeyMap) |
protected Map<String,Object> |
doConvertToColumnValueMap(Entity entity,
boolean pkOnly) |
protected <ENTITY extends Entity> |
doConvertToEntity(ENTITY entity,
Map<String,? extends Object> columnMap,
boolean pkOnly) |
protected Map<String,Object> |
doExtractAllColumnMap(Entity entity) |
protected Map<String,Object> |
doExtractPrimaryKeyMap(Entity entity) |
protected <ENTITY extends Entity> |
doFindEfpg(Map<String,PropertyGateway> propertyGatewayMap,
String foreignPropertyName) |
protected <ENTITY extends Entity> |
doFindEpg(Map<String,PropertyGateway> propertyGatewayMap,
String propertyName) |
protected Method |
doFindPropertyMethod(Class<?> clazz,
String methodName,
Class<?>[] argTypes) |
protected <INFO> List<INFO> |
doSearchMetaInfoList(Collection<ColumnInfo> columnInfoList,
List<INFO> infoList,
Function<INFO,Collection<ColumnInfo>> oneArgLambda) |
protected <ENTITY> ENTITY |
downcast(Entity entity) |
ColumnInfo |
findColumnInfo(String columnFlexibleName)
Find the information of the column by the flexible name of the column.
|
DBMeta |
findForeignDBMeta(String foreignPropertyName)
Find the DB meta of foreign relation.
|
ForeignInfo |
findForeignInfo(int relationNo)
Find the information of foreign relation by relation number.
|
ForeignInfo |
findForeignInfo(String foreignPropertyName)
Find the information of foreign relation by property name.
|
PropertyGateway |
findForeignPropertyGateway(String propertyName)
Find the foreign property gateway of the entity for the relation.
|
PropertyGateway |
findPropertyGateway(String propertyName)
Find the property gateway of the entity for the column.
|
protected Method |
findPropertyReadMethod(Class<?> beanType,
String propertyName,
Class<?> propertyAccessType) |
protected Method |
findPropertyWriteMethod(Class<?> beanType,
String propertyName,
Class<?> propertyAccessType) |
DBMeta |
findReferrerDBMeta(String referrerPropertyName)
Find the DB meta of referrer relation.
|
ReferrerInfo |
findReferrerInfo(String referrerPropertyName)
Find the information of referrer relation.
|
RelationInfo |
findRelationInfo(String relationPropertyName)
Find the information of relation.
|
protected static Classification |
gcls(Entity entity,
ColumnInfo columnInfo,
Object code) |
protected Map<String,ColumnInfo> |
getColumnInfoFlexibleMap()
Get the flexible map of column information.
|
List<ColumnInfo> |
getColumnInfoList()
Get the list of column information.
|
List<ColumnInfo> |
getCommonColumnInfoBeforeInsertList()
Get the list of common column auto-setup before insert.
|
List<ColumnInfo> |
getCommonColumnInfoBeforeUpdateList()
Get the list of common column auto-setup before update.
|
List<ColumnInfo> |
getCommonColumnInfoList()
Get the list of common column.
|
protected Map<String,ForeignInfo> |
getForeignInfoFlexibleMap()
Get the flexible map of foreign information.
|
List<ForeignInfo> |
getForeignInfoList()
Get the read-only list of foreign info.
|
protected Map<Integer,ForeignInfo> |
getForeignInfoRelationNoKeyMap()
Get the relation-no key map of foreign information.
|
PrimaryInfo |
getPrimaryInfo()
Get primary info that means unique info for primary key.
|
UniqueInfo |
getPrimaryUniqueInfo()
Get primary unique info that means unique info for primary key.
|
protected Map<String,ReferrerInfo> |
getReferrerInfoFlexibleMap()
Get the flexible map of referrer information.
|
List<ReferrerInfo> |
getReferrerInfoList()
Get the read-only list of referrer info.
|
protected Class<?> |
getReferrerPropertyListType()
Get the list type of referrer property in entity.
|
Integer |
getSequenceCacheSize()
Get the cache size of sequence.
|
Integer |
getSequenceIncrementSize()
Get the increment size of sequence.
|
String |
getSequenceName()
Get the sequence name.
|
String |
getSequenceNextValSql()
Get the SQL for next value of sequence.
|
String |
getTableAlias()
Get the alias of the table.
|
String |
getTableComment()
Get the comment of the table.
|
List<UniqueInfo> |
getUniqueInfoList()
Get the read-only list of unique info as natural unique (not contain primary key's unique).
|
ColumnInfo |
getUpdateDateColumnInfo()
Get the column information of update date.
|
ColumnInfo |
getVersionNoColumnInfo()
Get the column information of version no.
|
boolean |
hasColumn(String columnFlexibleName)
Does this table have the corresponding column?
|
boolean |
hasCommonColumn()
Does the table have common columns?
|
boolean |
hasForeign(String foreignPropertyName)
Does this table have the corresponding foreign relation?
|
boolean |
hasIdentity()
Does this table have identity?
|
boolean |
hasOptimisticLock()
Does the table have optimistic lock?
|
boolean |
hasReferrer(String referrerPropertyName)
Does this table have the corresponding referrer relation?
|
boolean |
hasSequence()
Does this table have sequence?
|
boolean |
hasUpdateDate()
Does the table have a column for update date?
|
boolean |
hasVersionNo()
Does the table have a column for version no?
|
protected UniqueInfo |
hpcpui(ColumnInfo uniqueColumnInfo) |
protected UniqueInfo |
hpcpui(List<ColumnInfo> uniqueColumnInfoList) |
protected UniqueInfo |
hpcui(ColumnInfo uniqueColumnInfo) |
protected UniqueInfo |
hpcui(List<ColumnInfo> uniqueColumnInfoList) |
protected String |
initCap(String str) |
protected void |
initializeInformationResource() |
protected String |
initUncap(String str) |
protected String |
ln() |
protected <ELEMENT> ArrayList<ELEMENT> |
newArrayList() |
protected <ELEMENT> ArrayList<ELEMENT> |
newArrayList(Collection<ELEMENT> collection) |
protected <ELEMENT> List<ELEMENT> |
newArrayList(ELEMENT... elements) |
protected <ELEMENT> ArrayList<ELEMENT> |
newArrayListSized(int size) |
protected <KEY,VALUE> |
newConcurrentHashMap() |
protected <KEY,VALUE> |
newConcurrentHashMap(KEY key,
VALUE value) |
protected <KEY,VALUE> |
newHashMap() |
protected <KEY,VALUE> |
newLinkedHashMap() |
protected <KEY,VALUE> |
newLinkedHashMap(KEY key,
VALUE value) |
protected <KEY,VALUE> |
newLinkedHashMapSized(int size) |
protected String |
replaceString(String text,
String fromText,
String toText) |
List<ForeignInfo> |
searchForeignInfoList(Collection<ColumnInfo> columnInfoList)
Search foreign info by the specified columns.
|
OptionalObject<PrimaryInfo> |
searchPrimaryInfo(Collection<ColumnInfo> columnInfoList)
Search primary info by the specified columns.
|
List<ReferrerInfo> |
searchReferrerInfoList(Collection<ColumnInfo> columnInfoList)
Search referrer info by the specified columns.
|
List<UniqueInfo> |
searchUniqueInfoList(Collection<ColumnInfo> columnInfoList)
Search unique info by the specified columns.
|
protected void |
setupEfpg(Map<String,PropertyGateway> propertyGatewayMap,
PropertyReader reader,
PropertyWriter writer,
String foreignPropertyName) |
protected void |
setupEpg(Map<String,PropertyGateway> propertyGatewayMap,
PropertyReader reader,
PropertyWriter writer,
String propertyName) |
protected Map<String,String> |
setupKeyToLowerMap(boolean dbNameKey) |
protected List<String> |
splitListTrimmed(String str,
String delimiter) |
protected void |
throwDBMetaNotFoundException(String notice,
String keyName,
Object value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptAllColumnMap, acceptPrimaryKeyMap, extractAllColumnMap, extractPrimaryKeyMap, getBehaviorTypeName, getConditionBeanTypeName, getCurrentDBDef, getEntityType, getEntityTypeName, getGenerationGapBasePrefix, getProjectName, getProjectPrefix, getTableDbName, getTableDispName, getTablePropertyName, getTableSqlName, hasCompoundPrimaryKey, hasPrimaryKey, newEntityprotected static final Object DUMMY_VALUE
protected void initializeInformationResource()
protected void setupEpg(Map<String,PropertyGateway> propertyGatewayMap, PropertyReader reader, PropertyWriter writer, String propertyName)
public PropertyGateway findPropertyGateway(String propertyName)
DBMetafindPropertyGateway インタフェース内 DBMetapropertyName - The property name of the column as case insensitive for performance. (NotNull)protected <ENTITY extends Entity> PropertyGateway doFindEpg(Map<String,PropertyGateway> propertyGatewayMap, String propertyName)
protected void setupEfpg(Map<String,PropertyGateway> propertyGatewayMap, PropertyReader reader, PropertyWriter writer, String foreignPropertyName)
public PropertyGateway findForeignPropertyGateway(String propertyName)
DBMetafindForeignPropertyGateway インタフェース内 DBMetapropertyName - The property name of the relation as case insensitive for performance. (NotNull)protected <ENTITY extends Entity> PropertyGateway doFindEfpg(Map<String,PropertyGateway> propertyGatewayMap, String foreignPropertyName)
protected static void ccls(Entity entity, ColumnInfo columnInfo, Object code)
protected static Classification gcls(Entity entity, ColumnInfo columnInfo, Object code)
protected static BigDecimal ctb(Object value)
protected static LocalDateTime ctldt(Object value)
public String getTableAlias()
DBMetagetTableAlias インタフェース内 DBMetapublic String getTableComment()
DBMetagetTableComment インタフェース内 DBMetapublic boolean hasColumn(String columnFlexibleName)
public ColumnInfo findColumnInfo(String columnFlexibleName)
If the table name is 'BOOK_ID', you can find the DB meta by ...(as follows)
'BOOK_ID', 'BOok_iD', 'book_id'
, 'BookId', 'bookid', 'bOoKiD'
findColumnInfo インタフェース内 DBMetacolumnFlexibleName - The flexible name of the column. (NotNull)protected ColumnInfo cci(String columnDbName, String columnSqlName, String columnSynonym, String columnAlias, Class<?> objectNativeType, String propertyName, Class<?> propertyAccessType, boolean primary, boolean autoIncrement, boolean notNull, String columnDbType, Integer columnSize, Integer decimalDigits, String defaultValue, boolean commonColumn, DBMeta.OptimisticLockType optimisticLockType, String columnComment, String foreignListExp, String referrerListExp, ClassificationMeta classificationMeta, boolean canBeNullObject)
protected Class<?> chooseColumnPropertyAccessType(Class<?> objectNativeType, String propertyName, Class<?> propertyAccessType)
protected PropertyMethodFinder createColumnPropertyMethodFinder()
protected Method findPropertyReadMethod(Class<?> beanType, String propertyName, Class<?> propertyAccessType)
protected Method findPropertyWriteMethod(Class<?> beanType, String propertyName, Class<?> propertyAccessType)
protected Method doFindPropertyMethod(Class<?> clazz, String methodName, Class<?>[] argTypes)
public List<ColumnInfo> getColumnInfoList()
getColumnInfoList インタフェース内 DBMetaprotected abstract List<ColumnInfo> ccil()
protected Map<String,ColumnInfo> getColumnInfoFlexibleMap()
public PrimaryInfo getPrimaryInfo()
getPrimaryInfo インタフェース内 DBMetaprotected abstract UniqueInfo cpui()
public UniqueInfo getPrimaryUniqueInfo()
getPrimaryUniqueInfo インタフェース内 DBMetaprotected UniqueInfo hpcpui(ColumnInfo uniqueColumnInfo)
protected UniqueInfo hpcpui(List<ColumnInfo> uniqueColumnInfoList)
public OptionalObject<PrimaryInfo> searchPrimaryInfo(Collection<ColumnInfo> columnInfoList)
searchPrimaryInfo インタフェース内 DBMetacolumnInfoList - The list of column info as search key. (NotNull)public List<UniqueInfo> getUniqueInfoList()
getUniqueInfoList インタフェース内 DBMetaprotected UniqueInfo hpcui(ColumnInfo uniqueColumnInfo)
protected UniqueInfo hpcui(List<ColumnInfo> uniqueColumnInfoList)
public List<UniqueInfo> searchUniqueInfoList(Collection<ColumnInfo> columnInfoList)
searchUniqueInfoList インタフェース内 DBMetacolumnInfoList - The list of column info as search key. (NotNull)protected <INFO> List<INFO> doSearchMetaInfoList(Collection<ColumnInfo> columnInfoList, List<INFO> infoList, Function<INFO,Collection<ColumnInfo>> oneArgLambda)
public RelationInfo findRelationInfo(String relationPropertyName)
findRelationInfo インタフェース内 DBMetarelationPropertyName - The flexible name of the relation property. (NotNull)public boolean hasForeign(String foreignPropertyName)
hasForeign インタフェース内 DBMetaforeignPropertyName - The flexible name of the foreign property. (NotNull)public DBMeta findForeignDBMeta(String foreignPropertyName)
findForeignDBMeta インタフェース内 DBMetaforeignPropertyName - The flexible name of the foreign property. (NotNull)public ForeignInfo findForeignInfo(String foreignPropertyName)
findForeignInfo インタフェース内 DBMetaforeignPropertyName - The flexible name of the foreign property. (NotNull)public ForeignInfo findForeignInfo(int relationNo)
findForeignInfo インタフェース内 DBMetarelationNo - The relation number of the foreign property. (NotNull)protected ForeignInfo cfi(String constraintName, String foreignPropertyName, DBMeta localDbm, DBMeta foreignDbm, Map<ColumnInfo,ColumnInfo> localForeignColumnInfoMap, int relationNo, Class<?> propertyAccessType, boolean oneToOne, boolean bizOneToOne, boolean referrerAsOne, boolean additionalFK, String fixedCondition, List<String> dynamicParameterList, boolean fixedInline, String reversePropertyName, boolean canBeNullObject)
protected Class<?> chooseForeignPropertyAccessType(DBMeta foreignDbm, Class<?> specifiedType)
protected PropertyMethodFinder createForeignPropertyMethodFinder()
public List<ForeignInfo> getForeignInfoList()
getForeignInfoList インタフェース内 DBMetaprotected Map<String,ForeignInfo> getForeignInfoFlexibleMap()
protected Map<Integer,ForeignInfo> getForeignInfoRelationNoKeyMap()
public List<ForeignInfo> searchForeignInfoList(Collection<ColumnInfo> columnInfoList)
searchForeignInfoList インタフェース内 DBMetacolumnInfoList - The list of column info as search key. (NotNull)public boolean hasReferrer(String referrerPropertyName)
hasReferrer インタフェース内 DBMetareferrerPropertyName - The flexible name of the referrer property. (NotNull)public DBMeta findReferrerDBMeta(String referrerPropertyName)
findReferrerDBMeta インタフェース内 DBMetareferrerPropertyName - The flexible name of the referrer property. (NotNull)public ReferrerInfo findReferrerInfo(String referrerPropertyName)
findReferrerInfo インタフェース内 DBMetareferrerPropertyName - The flexible name of the referrer property. (NotNull)protected ReferrerInfo cri(String constraintName, String referrerPropertyName, DBMeta localDbm, DBMeta referrerDbm, Map<ColumnInfo,ColumnInfo> localReferrerColumnInfoMap, boolean oneToOne, String reversePropertyName)
protected Class<?> chooseReferrerPropertyAccessType(DBMeta referrerDbm, boolean oneToOne)
protected Class<?> getReferrerPropertyListType()
protected PropertyMethodFinder createReferrerPropertyMethodFinder()
public List<ReferrerInfo> getReferrerInfoList()
getReferrerInfoList インタフェース内 DBMetaprotected Map<String,ReferrerInfo> getReferrerInfoFlexibleMap()
public List<ReferrerInfo> searchReferrerInfoList(Collection<ColumnInfo> columnInfoList)
searchReferrerInfoList インタフェース内 DBMetacolumnInfoList - The list of column info as search key. (NotNull)protected String buildRelationInfoGetterMethodNameInitCap(String targetName, String relationPropertyName)
public boolean hasIdentity()
DBMetahasIdentity インタフェース内 DBMetapublic boolean hasSequence()
DBMetahasSequence インタフェース内 DBMetapublic String getSequenceName()
DBMetagetSequenceName インタフェース内 DBMetapublic String getSequenceNextValSql()
DBMetagetSequenceNextValSql インタフェース内 DBMetapublic Integer getSequenceIncrementSize()
DBMetagetSequenceIncrementSize インタフェース内 DBMetapublic Integer getSequenceCacheSize()
DBMetagetSequenceCacheSize インタフェース内 DBMetapublic boolean hasOptimisticLock()
DBMetahasOptimisticLock インタフェース内 DBMetapublic boolean hasVersionNo()
DBMetahasVersionNo インタフェース内 DBMetapublic ColumnInfo getVersionNoColumnInfo()
DBMetagetVersionNoColumnInfo インタフェース内 DBMetapublic boolean hasUpdateDate()
DBMetahasUpdateDate インタフェース内 DBMetapublic ColumnInfo getUpdateDateColumnInfo()
DBMetagetUpdateDateColumnInfo インタフェース内 DBMetapublic boolean hasCommonColumn()
DBMetahasCommonColumn インタフェース内 DBMetapublic List<ColumnInfo> getCommonColumnInfoList()
DBMetagetCommonColumnInfoList インタフェース内 DBMetapublic List<ColumnInfo> getCommonColumnInfoBeforeInsertList()
DBMetagetCommonColumnInfoBeforeInsertList インタフェース内 DBMetapublic List<ColumnInfo> getCommonColumnInfoBeforeUpdateList()
DBMetagetCommonColumnInfoBeforeUpdateList インタフェース内 DBMetaprotected <ENTITY extends Entity> void doAcceptPrimaryKeyMap(ENTITY entity, Map<String,? extends Object> primaryKeyMap)
protected <ENTITY extends Entity> void doAcceptAllColumnMap(ENTITY entity, Map<String,? extends Object> allColumnMap)
protected <ENTITY extends Entity> void doConvertToEntity(ENTITY entity, Map<String,? extends Object> columnMap, boolean pkOnly)
protected MetaHandlingMapToEntityMapper createMetaHandlingMapToEntityMapper(Map<String,? extends Object> columnMap)
protected Map<String,Object> doConvertToColumnValueMap(Entity entity, boolean pkOnly)
protected MetaHandlingEntityToMapMapper createMetaHandlingEntityToMapMapper(Entity entity)
protected <ENTITY> ENTITY downcast(Entity entity)
protected void checkDowncast(Entity entity)
protected void throwDBMetaNotFoundException(String notice, String keyName, Object value)
protected final String ln()
protected <KEY,VALUE> HashMap<KEY,VALUE> newHashMap()
protected <KEY,VALUE> ConcurrentHashMap<KEY,VALUE> newConcurrentHashMap()
protected <KEY,VALUE> ConcurrentHashMap<KEY,VALUE> newConcurrentHashMap(KEY key, VALUE value)
protected <KEY,VALUE> LinkedHashMap<KEY,VALUE> newLinkedHashMap()
protected <KEY,VALUE> LinkedHashMap<KEY,VALUE> newLinkedHashMap(KEY key, VALUE value)
protected <KEY,VALUE> LinkedHashMap<KEY,VALUE> newLinkedHashMapSized(int size)
protected <ELEMENT> ArrayList<ELEMENT> newArrayList()
@SafeVarargs protected final <ELEMENT> List<ELEMENT> newArrayList(ELEMENT... elements)
protected <ELEMENT> ArrayList<ELEMENT> newArrayList(Collection<ELEMENT> collection)
protected <ELEMENT> ArrayList<ELEMENT> newArrayListSized(int size)
protected <VALUE> StringKeyMap<VALUE> createFlexibleConcurrentMap()
protected void assertObjectNotNull(String variableName, Object value)
variableName - The check name of variable for message. (NotNull)value - The checked value. (NotNull)IllegalArgumentException - When the argument is null.protected void assertStringNotNullAndNotTrimmedEmpty(String variableName, String value)
variableName - The check name of variable for message. (NotNull)value - The checked value. (NotNull)IllegalArgumentException - When the argument is null or empty.Copyright © 2014–2015 The DBFlute Project. All rights reserved.