public abstract class ColumnDefiner extends Object
Constructor and Description |
---|
ColumnDefiner() |
Modifier and Type | Method and Description |
---|---|
abstract String |
dbFieldType()
Returns column field type, e.g.
|
abstract String |
getDefaultDefinition(Column<?> c)
Returns separately DEFAULT definition of the column.
|
String |
getFullDefinition(Column<?> c)
Returns full definition of the column (for column creation).
|
abstract String |
getMainDefinition(Column<?> c)
Returns column definition that contains name, type and NULL/NOT NULL (
without DEFAULT).
|
static String |
join(String... ss)
Concatenates strings separated by a space symbol.
|
String |
nullable(Column<?> c)
Whether the column is nullable.
|
public abstract String dbFieldType()
public abstract String getMainDefinition(Column<?> c)
c
- column.public abstract String getDefaultDefinition(Column<?> c)
c
- column.public String getFullDefinition(Column<?> c)
c
- column.public String nullable(Column<?> c)
c
- column.Copyright © 2022 CURS. All rights reserved.