final class ColumnEditorImpl extends Object implements ColumnEditor
| Modifier and Type | Field and Description |
|---|---|
private boolean |
autoIncremented |
private boolean |
generated |
private int |
jdbcType |
private int |
length |
private String |
name |
private boolean |
optional |
private int |
position |
private int |
scale |
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.
|
int |
compareTo(Column that) |
Column |
create()
Obtain an immutable column definition representing the current state of this editor.
|
ColumnEditorImpl |
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 |
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.
|
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.
|
int |
scale()
Get the scale of the column.
|
ColumnEditorImpl |
scale(int scale)
Set the scale of the column.
|
String |
toString() |
String |
typeName()
Get the database-specific name of the column's data type.
|
ColumnEditorImpl |
typeName(String typeName)
Set the database-specific name of the column's data type.
|
private String name
private int jdbcType
private String typeName
private int length
private int scale
private int position
private boolean optional
private boolean autoIncremented
private boolean generated
public String name()
ColumnEditorname in interface ColumnEditorpublic String typeName()
ColumnEditortypeName in interface ColumnEditorpublic int jdbcType()
ColumnEditorJDBC type for this columnjdbcType in interface ColumnEditorpublic int length()
ColumnEditorlength in interface ColumnEditorpublic int 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 ColumnEditorImpl name(String name)
ColumnEditorname in interface ColumnEditorname - the column namepublic ColumnEditorImpl typeName(String typeName)
ColumnEditortypeName in interface ColumnEditortypeName - the column's type namepublic ColumnEditorImpl jdbcType(int jdbcType)
ColumnEditorJDBC type of this column.jdbcType in interface ColumnEditorjdbcType - JDBC type for this columnpublic ColumnEditorImpl length(int length)
ColumnEditorlength in interface ColumnEditorlength - the column's lengthpublic ColumnEditorImpl scale(int scale)
ColumnEditorscale in interface ColumnEditorscale - the scale, or -1 if the scale does not apply to this typepublic 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 Column create()
ColumnEditorcreate in interface ColumnEditorpublic int compareTo(Column that)
compareTo in interface Comparable<Column>Copyright © 2016 JBoss by Red Hat. All rights reserved.