final class ColumnImpl extends Object implements Column, Comparable<Column>
| Modifier and Type | Field and Description |
|---|---|
private boolean |
autoIncremented |
private String |
charsetName |
private boolean |
generated |
private int |
jdbcType |
private int |
length |
private String |
name |
private boolean |
optional |
private int |
position |
private int |
scale |
private String |
typeExpression |
private String |
typeName |
| Modifier | Constructor and Description |
|---|---|
protected |
ColumnImpl(String columnName,
int position,
int jdbcType,
String typeName,
String typeExpression,
String charsetName,
String defaultCharsetName,
int columnLength,
int columnScale,
boolean optional,
boolean autoIncremented,
boolean generated) |
| Modifier and Type | Method and Description |
|---|---|
String |
charsetName()
Get the database-specific name of the character set used by this column.
|
ColumnEditor |
edit()
Obtain an editor that contains the same information as this column definition.
|
boolean |
equals(Object obj) |
int |
hashCode() |
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 |
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 |
toString() |
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.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, editor, isRequired, typeUsesCharsetprivate final String name
private final int position
private final int jdbcType
private final String typeName
private final String typeExpression
private final String charsetName
private final int length
private final int scale
private final boolean optional
private final boolean autoIncremented
private final boolean generated
public int position()
Columnpublic int jdbcType()
ColumnJDBC type for this columnpublic String typeName()
Columnpublic String typeExpression()
ColumntypeExpression in interface Columnpublic String charsetName()
ColumncharsetName in interface Columnuse
character sets or no character set is specifiedpublic int length()
Columnpublic int scale()
Columnpublic boolean isOptional()
ColumnisOptional in interface Columntrue if it is optional, or false otherwiseColumn.isRequired()public boolean isAutoIncremented()
ColumnisAutoIncremented in interface Columntrue if the values are auto-incremented, or false otherwisepublic boolean isGenerated()
ColumnisGenerated in interface Columntrue if the values are generated, or false otherwisepublic ColumnEditor edit()
ColumnCopyright © 2016 JBoss by Red Hat. All rights reserved.