Modifier and Type | Class and Description |
---|---|
static class |
ColumnDTO.Builder<S extends ColumnDTO.Builder>
Builder class for constructing ColumnDTO instances.
|
Column.ColumnImpl
DEFAULT_VALUE_NOT_SET, DEFAULT_VALUE_OF_CURRENT_TIMESTAMP
Modifier and Type | Method and Description |
---|---|
boolean |
autoIncrement() |
static ColumnDTO.Builder |
builder()
Creates a new Builder to build a Column DTO.
|
java.lang.String |
comment() |
Type |
dataType() |
Expression |
defaultValue() |
java.lang.String |
name() |
boolean |
nullable() |
void |
validate()
Validates the Column DTO.
|
public java.lang.String name()
public Type dataType()
public java.lang.String comment()
public boolean nullable()
public boolean autoIncrement()
autoIncrement
in interface Column
public Expression defaultValue()
defaultValue
in interface Column
Column.DEFAULT_VALUE_NOT_SET
if not specifiedpublic static ColumnDTO.Builder builder()
public void validate() throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- If some of the required fields are not set or if the column is
non-nullable with a null default value, this method will throw an IllegalArgumentException.