Key generator portion:
keyGenerator={
databaseGenerated = FALSE
# if databaseGenerated = TRUE then class/staticAttributes/dynamicAttributes -
# unnecessary or will be ignored;
# if databaseGenerated = FALSE class MUST be populated
class=com.completex.objective.components.persistency.key.impl.SimpleSequenceKeyGeneratorImpl
staticAttributes = {name=TEST_MASTER_SEQ}
}
Returns column alias that is used as a base for getters and setters of generated persistent objects
column alias that is used as a base for getters and setters of generated persistent objects
Returns column size for string column
column size for string column
getCreationDateNames
public GeneratorStruct getCreationDateNames()(Code)
Returns names of columns that are supposed to have creation date value generator by default
See Also: GeneratorStruct names of columns that are supposed to have creation date value generator by default
Returns fully qualified column name - prepended by table name and period. If table is null for this column - only
column name itself is returned
fully qualified column name - prepended by table name and period. If table is null for this column - onlycolumn name itself is returned
Returns value generator parameters that are statically set in geneterated persistent object
value generator parameters that are statically set in geneterated persistent object
public GeneratorStruct getLastUpdatedNames()(Code)
Returns names of columns that are supposed to have last updated value generator by default
See Also: GeneratorStruct names of columns that are supposed to have last updated value generator by default
Returns true if the column either part of Primary Key or Optimistic Lock. If column is null returns false.
Parameters: column - true if the column either part of Primary Key or Optimistic Lock. If column is null returns false.
Returns true if this column is transformed meaning that in subsequent transformations it will be skipped
true if this column is transformed meaning that in subsequent transformations it will be skipped
Returns indented line not terminated by EOL characters
Parameters: indent - number of spaces in line indentation Parameters: line - line indented line
setAutoGenerated
public void setAutoGenerated(boolean autoGenerated)(Code)
Sets true if value generator is to be used for this column
Parameters: autoGenerated - true if value generator is to be used for this column
setAutoIncrement
public void setAutoIncrement(boolean autoIncrement)(Code)
Sets true if this column is auto incremented by database
Parameters: autoIncrement - true if this column is auto incremented by database
setColumnAlias
public void setColumnAlias(String columnAlias)(Code)
Sets column alias that is used as a base for getters and setters of generated persistent objects
Parameters: columnAlias - column alias that is used as a base for getters and setters of generated persistent objects
Sets column size for string column
Parameters: columnSize - column size for string column
setCreationDateNames
public void setCreationDateNames(GeneratorStruct creationDateNames)(Code)
Sets names of columns that are supposed to have creation date value generator by default if not set yet
See Also: GeneratorStruct Parameters: creationDateNames - names of columns that are supposed to have creation date value generator by default if not set yet
setDecimalDigits
public void setDecimalDigits(int decimalDigits)(Code)
Sets decimal digits for numeric column
Parameters: decimalDigits - ecimal digits for numeric column
setDefaultValue
public void setDefaultValue(String defaultValue)(Code)
Sets JDBC column default value
Parameters: defaultValue - JDBC column default value
Sets true if this column has to excluded from generated persistent object
Parameters: exclude - true if this column has to excluded from generated persistent object
setGeneratorClassName
public void setGeneratorClassName(String generatorClassName)(Code)
Sets value generator class name for this column
Parameters: generatorClassName - value generator class name for this column
setGeneratorStaticAttributes
public void setGeneratorStaticAttributes(Map generatorStaticAttributes)(Code)
Sets value generator parameters that are statically set in geneterated persistent object
Parameters: generatorStaticAttributes - value generator parameters that are statically set in geneterated persistent object
public void setLastUpdatedNames(GeneratorStruct lastUpdatedNames)(Code)
Sets names of columns that are supposed to have last updated value generator by default if not set yet
See Also: GeneratorStruct Parameters: lastUpdatedNames - names of columns that are supposed to have last updated value generator by default if not set yet
setOptimisticLock
public void setOptimisticLock(boolean optimisticLock)(Code)
Sets optimisticLock true if this is optimistic lock column
Parameters: optimisticLock - true if this is optimistic lock column
setPrimaryKey
public void setPrimaryKey(boolean primaryKey)(Code)
Sets true if this column is part of primary key
Parameters: primaryKey - true if this column is part of primary key
Sets table database table name
Parameters: table - database table name
setTransformed
public void setTransformed(boolean transformed)(Code)
Sets true if this column is transformed meaning that in subsequent transformations it will be skipped
Parameters: transformed - true if this column is transformed meaning that in subsequent transformations it will be skipped
Column type handler is optional - if not set default one for this ColumnType will be used
Parameters: typeHandler - column type handler See Also:TypeHandler
For ColumnType.CHAR types right pads
the value stored in String with spaces to the length of
this MetaColumn. For other types returns object itself
Parameters: value - For ColumnType.CHAR types value right paddedwith spaces to the length of this MetaColumn. For other types - object itself