public interface TableColumn
extends io.spine.server.storage.StorageField
It's recommended to implement this interface in an enum
, since it's API is sharpened
to be overridden with the enum
default methods.
Modifier and Type | Method and Description |
---|---|
boolean |
isNullable()
Returns
true if this column may contain NULL values, false otherwise. |
boolean |
isPrimaryKey()
Returns
true is this column is a primary key of the table, false otherwise. |
java.lang.String |
name()
Returns the name of the column.
|
@Nullable Type |
type()
Returns the
Type of the column
or null if the type is unknown at the compile time. |
java.lang.String name()
@Nullable Type type()
Type
of the column
or null
if the type is unknown at the compile time.boolean isPrimaryKey()
true
is this column is a primary key of the table, false
otherwise.boolean isNullable()
true
if this column may contain NULL
values, false
otherwise.