@NotThreadSafe public interface ColumnEditor extends Comparable<Column>
Column instances.| Modifier and Type | Method and Description |
|---|---|
ColumnEditor |
autoIncremented(boolean autoIncremented)
Set whether the column's values are automatically incremented.
|
Column |
create()
Obtain an immutable column definition representing the current state of this editor.
|
ColumnEditor |
generated(boolean generated)
Set whether the column's values are generated by the database.
|
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.
|
int |
jdbcType()
Get the
JDBC type for this column |
ColumnEditor |
jdbcType(int jdbcType)
Set the
JDBC type of this column. |
int |
length()
Get the maximum length of this column's values.
|
ColumnEditor |
length(int length)
Set the maximum length of this column's values.
|
String |
name()
Get the name of the column.
|
ColumnEditor |
name(String name)
Set the name of the column.
|
ColumnEditor |
optional(boolean optional)
Set whether the column's values are optional (e.g., can contain nulls).
|
int |
position()
Get the position of the column in the table.
|
ColumnEditor |
position(int position)
Set the position of the column within the table definition.
|
int |
scale()
Get the scale of the column.
|
ColumnEditor |
scale(int scale)
Set the scale of the column.
|
String |
typeName()
Get the database-specific name of the column's data type.
|
ColumnEditor |
typeName(String typeName)
Set the database-specific name of the column's data type.
|
compareToString name()
int position()
int jdbcType()
JDBC type for this columnString typeName()
int length()
int scale()
boolean isOptional()
true if it is optional, or false otherwiseboolean isAutoIncremented()
true if the values are auto-incremented, or false otherwiseboolean isGenerated()
true if the values are generated, or false otherwiseColumnEditor name(String name)
name - the column nameColumnEditor typeName(String typeName)
typeName - the column's type nameColumnEditor jdbcType(int jdbcType)
JDBC type of this column.jdbcType - JDBC type for this columnColumnEditor length(int length)
length - the column's lengthColumnEditor scale(int scale)
scale - the scale, or -1 if the scale does not apply to this typeColumnEditor optional(boolean optional)
optional - true if the column's values are optional, or false otherwiseColumnEditor autoIncremented(boolean autoIncremented)
autoIncremented - true if the column's values are automatically incremented by the database, or false
otherwiseColumnEditor generated(boolean generated)
generated - true if the column's values are generated by the database, or false otherwiseColumnEditor position(int position)
position - the new column positionColumn create()
Copyright © 2016 JBoss by Red Hat. All rights reserved.