@Immutable public interface Column extends Comparable<Column>
Table| Modifier and Type | Method and Description |
|---|---|
default int |
compareTo(Column that) |
default 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 |
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 |
position()
Get the position of the column in the table.
|
int |
scale()
Get the scale of the column.
|
String |
typeName()
Get the database-specific name of the column's data type.
|
static ColumnEditor editor()
String name()
int position()
int jdbcType()
JDBC type for this columnString typeName()
int length()
int 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 otherwisedefault int compareTo(Column that)
compareTo in interface Comparable<Column>default ColumnEditor edit()
Copyright © 2016 JBoss by Red Hat. All rights reserved.