final class ColumnImpl extends Object implements Column, Comparable<Column>
| 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 |
ColumnImpl(String columnName,
int position,
int jdbcType,
String typeName,
int columnLength,
int columnScale,
boolean optional,
boolean autoIncremented,
boolean generated) |
| Modifier and Type | Method and Description |
|---|---|
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 |
typeName()
Get the database-specific name of the column's data type.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, edit, editor, isRequiredprivate final String name
private final int position
private final int jdbcType
private final String typeName
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 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 otherwiseCopyright © 2016 JBoss by Red Hat. All rights reserved.