Class TableConfig
java.lang.Object
org.nervousync.database.beans.configs.table.TableConfig
- All Implemented Interfaces:
Serializable
Table config
- Version:
- $Revision : 1.0 $ $Date: Mar 23, 2010 10:13:02 AM $
- Author:
- Steven Wee wmkm0113@Hotmail.com
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCache key string.Cache keys list.columnName(String identifyName) Column name string.convertToDataMap(Object object, Converter converter) Generate primary key columns and normal column parameter mapconvertToUpdateMap(Object object, Converter converter) Generate primary key columns and normal column parameter mapfindReferenceConfig(String identifyName) Retrieve reference config by given field namevoidgeneratePrimaryKey(Object object) Generate primary key valuegeneratePrimaryKeyMap(Object object) Generate primary key column parameter mapgeneratePrimaryKeyMap(Object object, boolean forUpdate) Generate primary key column parameter mapgetColumnConfig(String identifyName) Retrieve column config by given identifyNameGets column config list.Class<?>Gets define class.Gets drop option.jakarta.persistence.Index[]Get indexes search index [ ].Gets lock option.Gets database name.static longGets serial version uid.Gets table name.identifyKey(Object object) Identify key string.identifyKey(Object object, String itemKey) Identify key string.Retrieve identified version column configbooleanIs cacheable boolean.booleanCheck given identifyName is a columnbooleanisLazyLoad(String identifyName) Check given identifyName is a lazy load columnstatic booleanlazyLoadField(Field field) static Optional<TableConfig>newInstance(Class<?> clazz) Generate TableConfig object by given classIterator reference configretrieveValue(Object object, String identifyKey) Retrieve value optional.voidVerify.
-
Method Details
-
lazyLoadField
-
newInstance
Generate TableConfig object by given class- Parameters:
clazz- Entity class define- Returns:
- TableConfig object or null if class is invalid
-
getSerialVersionUID
public static long getSerialVersionUID()Gets serial version uid.- Returns:
- the serialVersionUID
-
getSchemaName
Gets database name.- Returns:
- the database name
-
getTableName
Gets table name.- Returns:
- the tableName
-
isCacheable
public boolean isCacheable()Is cacheable boolean.- Returns:
- the boolean
-
getDefineClass
Gets define class.- Returns:
- the defineClass
-
getColumnConfigList
Gets column config list.- Returns:
- the columnConfigList
-
getIndexes
public jakarta.persistence.Index[] getIndexes()Get indexes search index [ ].- Returns:
- the indexes
-
getLockOption
Gets lock option.- Returns:
- the lockOption
-
getDropOption
Gets drop option.- Returns:
- the dropOption
-
identifyKey
Identify key string.- Parameters:
object- the base object- Returns:
- the string
-
identifyKey
Identify key string.- Parameters:
object- the base objectitemKey- the item key- Returns:
- the string
-
cacheKeys
Cache keys list.- Parameters:
object- the object- Returns:
- the list
-
cacheKey
Cache key string.- Parameters:
object- the objectfieldName- the field name- Returns:
- the string
-
cacheKey
-
verify
Verify.- Parameters:
object- the objectidentifyCode- identify code- Throws:
DataModifiedException- the data modified exception
-
columnName
Column name string.- Parameters:
identifyName- column identify name- Returns:
- the string
-
isColumn
Check given identifyName is a column- Parameters:
identifyName- maybe is field name or column name- Returns:
- check result
-
isLazyLoad
Check given identifyName is a lazy load column- Parameters:
identifyName- maybe is field name or column name- Returns:
- check result
-
getColumnConfig
Retrieve column config by given identifyName- Parameters:
identifyName- maybe is field name or column name- Returns:
- Retrieve column config, or null if not found
-
identifyVersionColumn
Retrieve identified version column config- Returns:
- Retrieve column config, or null if not defined
-
findReferenceConfig
Retrieve reference config by given field name- Parameters:
identifyName- Reference column identify name, maybe field name or reference entity class name- Returns:
- Retrieve ReferenceConfig object, or null if not found
-
referenceIterator
Iterator reference config- Returns:
- Reference Iterator
- See Also:
-
generatePrimaryKey
Generate primary key value- Parameters:
object- the object
-
generatePrimaryKeyMap
Generate primary key column parameter map- Parameters:
object- the object- Returns:
- Primary key map
-
generatePrimaryKeyMap
Generate primary key column parameter map- Parameters:
object- the objectforUpdate- the for update- Returns:
- Primary key map
-
convertToDataMap
Generate primary key columns and normal column parameter map- Parameters:
object- the objectconverter- the converter- Returns:
- Data map
-
convertToUpdateMap
Generate primary key columns and normal column parameter map- Parameters:
object- the objectconverter- the converter- Returns:
- Data map
-
retrieveValue
Retrieve value optional.- Parameters:
object- the objectidentifyKey- the identify key- Returns:
- the optional
-