final class ColumnImpl extends Object implements Column, Comparable<Column>
| 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 |
typeExpression |
private String |
typeName |
UNSET_INT_VALUE| Modifier | Constructor and Description |
|---|---|
protected |
ColumnImpl(String columnName,
int position,
int jdbcType,
int componentType,
String typeName,
String typeExpression,
String charsetName,
String defaultCharsetName,
int columnLength,
Integer columnScale,
boolean optional,
boolean autoIncremented,
boolean generated) |
protected |
ColumnImpl(String columnName,
int position,
int jdbcType,
int nativeType,
String typeName,
String typeExpression,
String charsetName,
String defaultCharsetName,
int columnLength,
Integer columnScale,
boolean optional,
boolean autoIncremented,
boolean generated,
Object defaultValue,
boolean hasDefaultValue) |
protected |
ColumnImpl(String columnName,
int position,
int jdbcType,
int nativeType,
String typeName,
String typeExpression,
String charsetName,
String defaultCharsetName,
int columnLength,
Integer columnScale,
List<String> enumValues,
boolean optional,
boolean autoIncremented,
boolean generated,
Object defaultValue,
boolean hasDefaultValue) |
| Modifier and Type | Method and Description |
|---|---|
String |
charsetName()
Get the database-specific name of the character set used by this column.
|
Object |
defaultValue()
Get the default value of the column
|
ColumnEditor |
edit()
Obtain an editor that contains the same information as this column definition.
|
List<String> |
enumValues()
Get the list of values associated with the enum
|
boolean |
equals(Object obj) |
boolean |
hasDefaultValue()
Determine whether this column's has a default value
|
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 |
nativeType()
Get the database native type for this column
|
int |
position()
Get the position of the column in the table.
|
Optional<Integer> |
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 int nativeType
private final String typeName
private final String typeExpression
private final String charsetName
private final int length
private final Integer scale
private final boolean optional
private final boolean autoIncremented
private final boolean generated
private final Object defaultValue
private final boolean hasDefaultValue
protected ColumnImpl(String columnName, int position, int jdbcType, int componentType, String typeName, String typeExpression, String charsetName, String defaultCharsetName, int columnLength, Integer columnScale, boolean optional, boolean autoIncremented, boolean generated)
protected ColumnImpl(String columnName, int position, int jdbcType, int nativeType, String typeName, String typeExpression, String charsetName, String defaultCharsetName, int columnLength, Integer columnScale, boolean optional, boolean autoIncremented, boolean generated, Object defaultValue, boolean hasDefaultValue)
protected ColumnImpl(String columnName, int position, int jdbcType, int nativeType, String typeName, String typeExpression, String charsetName, String defaultCharsetName, int columnLength, Integer columnScale, List<String> enumValues, boolean optional, boolean autoIncremented, boolean generated, Object defaultValue, boolean hasDefaultValue)
public int position()
Columnpublic int jdbcType()
ColumnJDBC type for this columnpublic int nativeType()
ColumnnativeType in interface 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 Optional<Integer> 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 Object defaultValue()
ColumndefaultValue in interface Columnpublic boolean hasDefaultValue()
ColumnhasDefaultValue in interface Columntrue if the default value was provided, or false otherwisepublic List<String> enumValues()
ColumnenumValues in interface Columnpublic ColumnEditor edit()
ColumnCopyright © 2021 JBoss by Red Hat. All rights reserved.