@groovy.transform.AutoClone @groovy.transform.CompileStatic @groovy.transform.builder.Builder(builderStrategy: SimpleStrategy, prefix: ) class ColumnConfig extends java.lang.Object
Defines a column within the mapping.
| Type | Name and description |
|---|---|
java.lang.String |
commentA comment to apply to the column |
java.lang.String |
defaultValueThe default value |
java.lang.String |
enumTypeThe enum type |
java.lang.Object |
indexThe index, can be either a boolean or a string for the name of the index |
int |
lengthThe length of the column |
java.lang.String |
nameThe column name |
int |
precisionThe precision of the column |
java.lang.String |
readA custom read string |
int |
scaleThe scale of the column |
java.lang.String |
sqlTypeThe SQL type |
boolean |
uniqueWhether the column is unique |
java.lang.String |
writeA custom write sstring |
| Constructor and description |
|---|
ColumnConfig() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static ColumnConfig |
configureExisting(ColumnConfig property, groovy.lang.Closure config)Configures an existing PropertyConfig instance |
|
static ColumnConfig |
configureExisting(ColumnConfig column, java.util.Map config)Configures an existing PropertyConfig instance |
|
static ColumnConfig |
configureNew(groovy.lang.Closure config)Configures a new PropertyConfig instance |
|
static ColumnConfig |
configureNew(java.util.Map config)Configures a new PropertyConfig instance |
|
java.lang.String |
toString() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
A comment to apply to the column
The default value
The enum type
The index, can be either a boolean or a string for the name of the index
The length of the column
The column name
The precision of the column
A custom read string
The scale of the column
The SQL type
Whether the column is unique
A custom write sstring
Configures an existing PropertyConfig instance
config - The configurationConfigures an existing PropertyConfig instance
config - The configurationConfigures a new PropertyConfig instance
config - The configurationConfigures a new PropertyConfig instance
config - The configurationGroovy Documentation