final class ColumnEditorImpl extends Object implements ColumnEditor
| Modifier and Type | Field and Description |
|---|---|
private boolean |
autoIncremented |
private String |
charsetName |
private Object |
defaultValue |
private List<String> |
enumValues |
private boolean |
generated |
private boolean |
hasDefaultValue |
private int |
jdbcType |
private int |
length |
private String |
name |
private int |
nativeType |
private boolean |
optional |
private int |
position |
private Integer |
scale |
private String |
tableCharsetName |
private String |
typeExpression |
private String |
typeName |
| Modifier | Constructor and Description |
|---|---|
protected |
ColumnEditorImpl() |
| Modifier and Type | Method and Description |
|---|---|
ColumnEditorImpl |
autoIncremented(boolean autoIncremented)
Set whether the column's values are automatically incremented.
|
String |
charsetName()
Get the database-specific name of the character set used by this column.
|
ColumnEditor |
charsetName(String charsetName)
Set the database-specific name of the character set used by this column.
|
String |
charsetNameOfTable()
Get the database-specific name of the character set defined by this column's table, which is used if a character set is
not explicitly set on this column.
|
ColumnEditor |
charsetNameOfTable(String charsetName)
Set the database-specific name of the character set defined by this column's table.
|
Column |
create()
Obtain an immutable column definition representing the current state of this editor.
|
Object |
defaultValue()
Get the default value of the column.
|
ColumnEditor |
defaultValue(Object defaultValue)
Set the default value of the column;
|
List<String> |
enumValues()
get the enumeration values for the column.
|
ColumnEditor |
enumValues(List<String> enumValues)
Set the list of enumeration values.
|
ColumnEditorImpl |
generated(boolean generated)
Set whether the column's values are generated by the database.
|
boolean |
hasDefaultValue()
Determine whether this column's has a default value set
|
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 |
ColumnEditorImpl |
jdbcType(int jdbcType)
Set the
JDBC type of this column. |
int |
length()
Get the maximum length of this column's values.
|
ColumnEditorImpl |
length(int length)
Set the maximum length of this column's values.
|
String |
name()
Get the name of the column.
|
ColumnEditorImpl |
name(String name)
Set the name of the column.
|
int |
nativeType()
Get the internal database-specific type identifier for this column.
|
ColumnEditorImpl |
nativeType(int nativeType)
Set the native type for this column .
|
ColumnEditorImpl |
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.
|
ColumnEditorImpl |
position(int position)
Set the position of the column within the table definition.
|
Optional<Integer> |
scale()
Get the scale of the column.
|
ColumnEditorImpl |
scale(Integer scale)
Set the scale of the column.
|
String |
toString() |
ColumnEditorImpl |
type(String typeName)
Set the database-specific name of the column's data type.
|
ColumnEditor |
type(String typeName,
String typeExpression)
Set the database-specific name of the column's data type.
|
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.
|
ColumnEditor |
unsetDefaultValue()
Unsets the default value of the column, reverting the editor to the state where
#defaultValue(Object))
has never been called |
private String name
private int jdbcType
private int nativeType
private String typeName
private String typeExpression
private String charsetName
private String tableCharsetName
private int length
private Integer scale
private int position
private boolean optional
private boolean autoIncremented
private boolean generated
private Object defaultValue
private boolean hasDefaultValue
public String name()
ColumnEditorname in interface ColumnEditorpublic String typeName()
ColumnEditortypeName in interface ColumnEditorpublic String typeExpression()
ColumnEditortypeExpression in interface ColumnEditorpublic int jdbcType()
ColumnEditorJDBC type for this columnjdbcType in interface ColumnEditorpublic int nativeType()
ColumnEditornativeType in interface ColumnEditorpublic String charsetName()
ColumnEditorcharsetName in interface ColumnEditorpublic String charsetNameOfTable()
ColumnEditorcharsetNameOfTable in interface ColumnEditorpublic int length()
ColumnEditorlength in interface ColumnEditorpublic Optional<Integer> scale()
ColumnEditorscale in interface ColumnEditorpublic int position()
ColumnEditorposition in interface ColumnEditorpublic boolean isOptional()
ColumnEditorisOptional in interface ColumnEditortrue if it is optional, or false otherwisepublic boolean isAutoIncremented()
ColumnEditorisAutoIncremented in interface ColumnEditortrue if the values are auto-incremented, or false otherwisepublic boolean isGenerated()
ColumnEditorisGenerated in interface ColumnEditortrue if the values are generated, or false otherwisepublic Object defaultValue()
ColumnEditordefaultValue in interface ColumnEditorpublic boolean hasDefaultValue()
ColumnEditorhasDefaultValue in interface ColumnEditortrue if the default value was provided, or false otherwisepublic ColumnEditorImpl name(String name)
ColumnEditorname in interface ColumnEditorname - the column namepublic List<String> enumValues()
ColumnEditorenumValues in interface ColumnEditorpublic ColumnEditorImpl type(String typeName)
ColumnEditortype in interface ColumnEditortypeName - the column's type namepublic ColumnEditor type(String typeName, String typeExpression)
ColumnEditortype name and also any dimensions, lengths, precisions, character sets, etc.type in interface ColumnEditortypeName - the column's type nametypeExpression - the column's complete type expressionpublic ColumnEditorImpl jdbcType(int jdbcType)
ColumnEditorJDBC type of this column.jdbcType in interface ColumnEditorjdbcType - JDBC type for this columnpublic ColumnEditorImpl nativeType(int nativeType)
ColumnEditornativeType in interface ColumnEditorpublic ColumnEditor charsetName(String charsetName)
ColumnEditorcharsetName in interface ColumnEditorcharsetName - the database-specific character set name; may be nullpublic ColumnEditor charsetNameOfTable(String charsetName)
ColumnEditorcharsetNameOfTable in interface ColumnEditorcharsetName - the database-specific character set name; may be nullpublic ColumnEditorImpl length(int length)
ColumnEditorlength in interface ColumnEditorlength - the column's lengthpublic ColumnEditorImpl scale(Integer scale)
ColumnEditorscale in interface ColumnEditorscale - the scale or null to unsetpublic ColumnEditorImpl optional(boolean optional)
ColumnEditoroptional in interface ColumnEditoroptional - true if the column's values are optional, or false otherwisepublic ColumnEditorImpl autoIncremented(boolean autoIncremented)
ColumnEditorautoIncremented in interface ColumnEditorautoIncremented - true if the column's values are automatically incremented by the database, or false
otherwisepublic ColumnEditorImpl generated(boolean generated)
ColumnEditorgenerated in interface ColumnEditorgenerated - true if the column's values are generated by the database, or false otherwisepublic ColumnEditorImpl position(int position)
ColumnEditorposition in interface ColumnEditorposition - the new column positionpublic ColumnEditor defaultValue(Object defaultValue)
ColumnEditordefaultValue in interface ColumnEditordefaultValue - the default valuepublic ColumnEditor unsetDefaultValue()
ColumnEditor#defaultValue(Object))
has never been calledunsetDefaultValue in interface ColumnEditorpublic ColumnEditor enumValues(List<String> enumValues)
ColumnEditorenumValues in interface ColumnEditorenumValues - the enumeration valuespublic Column create()
ColumnEditorcreate in interface ColumnEditorCopyright © 2021 JBoss by Red Hat. All rights reserved.