@Immutable public interface Column extends Comparable<Column>
Table| Modifier and Type | Field and Description |
|---|---|
static int |
UNSET_INT_VALUE |
| Modifier and Type | Method and Description |
|---|---|
String |
charsetName()
Get the database-specific name of the character set used by this column.
|
default int |
compareTo(Column that) |
Object |
defaultValue()
Get the default value of the column
|
ColumnEditor |
edit()
Obtain an editor that contains the same information as this column definition.
|
static ColumnEditor |
editor()
Obtain an column definition editor that can be used to define a column.
|
boolean |
hasDefaultValue()
Determine whether this column's has a default value
|
boolean |
isAutoIncremented()
Determine whether this column's values are automatically incremented by the database.
|
boolean |
isGenerated()
Determine whether this column's values are generated by the database.
|
boolean |
isOptional()
Determine whether this column is optional.
|
default boolean |
isRequired()
Determine whether this column is required.
|
int |
jdbcType()
Get the
JDBC type for this column |
int |
length()
Get the maximum length of this column's values.
|
String |
name()
Get the name of the column.
|
int |
nativeType()
Get the database native type for this column
|
int |
position()
Get the position of the column in the table.
|
Optional<Integer> |
scale()
Get the scale of the column.
|
String |
typeExpression()
Get the database-specific complete expression defining the column's data type, including dimensions, length, precision,
character sets, constraints, etc.
|
String |
typeName()
Get the database-specific name of the column's data type.
|
default boolean |
typeUsesCharset()
Determine whether this column has a
typeName() or jdbcType() to which a character set applies. |
static final int UNSET_INT_VALUE
static ColumnEditor editor()
String name()
int position()
int jdbcType()
JDBC type for this columnint nativeType()
String typeName()
String typeExpression()
String charsetName()
use
character sets or no character set is specifiedint length()
Optional<Integer> scale()
boolean isOptional()
true if it is optional, or false otherwiseisRequired()default boolean isRequired()
!isOptional().true if it is required (not optional), or false otherwiseisOptional()boolean isAutoIncremented()
true if the values are auto-incremented, or false otherwiseboolean isGenerated()
true if the values are generated, or false otherwiseObject defaultValue()
boolean hasDefaultValue()
true if the default value was provided, or false otherwisedefault int compareTo(Column that)
compareTo in interface Comparable<Column>ColumnEditor edit()
default boolean typeUsesCharset()
typeName() or jdbcType() to which a character set applies.true if a character set applies the column's type, or false otherwiseCopyright © 2018 JBoss by Red Hat. All rights reserved.