public interface Column extends Document, HasParent<Table>, HasEnabled, HasName, HasAlias, HasNullable, HasOrdinalPosition, HasMainInterface, HasMutator<ColumnMutator<? extends Column>>
HasNullable.ImplementAs
Modifier and Type | Field and Description |
---|---|
static String |
AUTO_INCREMENT |
static String |
DATABASE_TYPE |
static String |
ENUM_CONSTANTS |
static String |
TYPE_MAPPER |
ENABLED, ENABLED_DEFAULT
NULLABLE, NULLABLE_IMPLEMENTATION
COMPARATOR, ORDINAL_POSITION
Modifier and Type | Method and Description |
---|---|
default Class<?> |
findDatabaseType()
Returns the class that represents the database type.
|
default String |
getDatabaseType()
Returns the name of the class that represents the database type.
|
default Optional<String> |
getEnumConstants()
Returns a comma separated string of the possible values that this column
may have.
|
default Optional<String> |
getTypeMapper()
Returns the name of the mapper class that will be used to generate a java
representation of the database types.
|
default boolean |
isAutoIncrement()
Returns whether or not this column will auto increment when new values
are added to the table.
|
default Class<Column> |
mainInterface()
Returns the
Class of the interface of this node. |
default ColumnMutator<? extends Column> |
mutator()
Returns a
DocumentMutator for this Document. |
getParent, getParentOrThrow
isEnabled, of, test
getAlias, getJavaName, of
ancestors, children, children, get, getAsBoolean, getAsDouble, getAsInt, getAsLong, getAsString, getData, put
getNullableImplementation, isNullable, of
getOrdinalPosition, of
static final String AUTO_INCREMENT
static final String TYPE_MAPPER
static final String DATABASE_TYPE
static final String ENUM_CONSTANTS
default boolean isAutoIncrement()
true
if the column auto increments, else
false
default String getDatabaseType()
default Optional<String> getTypeMapper()
default Optional<String> getEnumConstants()
default Class<?> findDatabaseType()
default Class<Column> mainInterface()
HasMainInterface
Class
of the interface of this node.
This should not be overridden by implementing classes!
mainInterface
in interface HasMainInterface
default ColumnMutator<? extends Column> mutator()
HasMutator
DocumentMutator
for this Document. A DocumentMutator
allows a Document to be updated in a type safe way.mutator
in interface HasMutator<ColumnMutator<? extends Column>>
Copyright © 2016 Speedment, Inc.. All rights reserved.