Class ColumnConfig
java.lang.Object
org.nervousync.database.beans.configs.column.ColumnConfig
- All Implemented Interfaces:
Serializable
Column config
- Version:
- $Revision : 1.0 $ $Date: Jun 27, 2018 $
- Author:
- Steven Wee wmkm0113@Hotmail.com
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets column name.Gets default value.Gets field name.Class<?>Gets field type.Gets generator config.intGets jdbc type.intGets length.Class<? extends AbstractDataParser>intGets precision.intgetScale()Gets scale.static longGets serial version uid.booleanIs identify version boolean.booleanIs lazy load boolean.booleanIs nullable boolean.booleanIs primary key column boolean.booleanisUnique()Is unique boolean.booleanIs updatable boolean.booleanmatchIdentifyKey(String identifyName) Match identify key boolean.static ColumnConfignewInstance(Field field, Object object, boolean primaryKeyColumn)
-
Method Details
-
newInstance
-
matchIdentifyKey
Match identify key boolean.- Parameters:
identifyName- identify key to match- Returns:
- the boolean
-
getSerialVersionUID
public static long getSerialVersionUID()Gets serial version uid.- Returns:
- the serial version uid
-
getLength
public int getLength()Gets length.- Returns:
- the length
-
getPrecision
public int getPrecision()Gets precision.- Returns:
- the precision
-
getScale
public int getScale()Gets scale.- Returns:
- the scale
-
getColumnName
Gets column name.- Returns:
- the column name
-
getFieldName
Gets field name.- Returns:
- the field name
-
getFieldType
Gets field type.- Returns:
- the field type
-
getJdbcType
public int getJdbcType()Gets jdbc type.- Returns:
- the jdbc type
-
getDefaultValue
Gets default value.- Returns:
- the default value
-
isPrimaryKeyColumn
public boolean isPrimaryKeyColumn()Is primary key column boolean.- Returns:
- the boolean
-
isNullable
public boolean isNullable()Is nullable boolean.- Returns:
- the boolean
-
isUpdatable
public boolean isUpdatable()Is updatable boolean.- Returns:
- the boolean
-
isUnique
public boolean isUnique()Is unique boolean.- Returns:
- the boolean
-
isLazyLoad
public boolean isLazyLoad()Is lazy load boolean.- Returns:
- the boolean
-
isIdentifyVersion
public boolean isIdentifyVersion()Is identify version boolean.- Returns:
- the boolean
-
getParserClass
-
getGeneratorConfig
Gets generator config.- Returns:
- the generator config
-