public interface Column
Modifier and Type | Method and Description |
---|---|
ColumnMetaData |
getColumnMetaData()
Accessor for the metadata for this column (if any).
|
ColumnType |
getColumnType()
Accessor for the role that this column serves (if known).
|
Object |
getDefaultValue()
Accessor for the default Value
|
JdbcType |
getJdbcType()
Accessor for the JDBC Type used for this column.
|
MemberColumnMapping |
getMemberColumnMapping()
Accessor for the mapping (and hence member) that owns this column.
|
String |
getName()
Accessor for the column name.
|
int |
getPosition()
Accessor for the position of this column in the table (if specified).
|
Table |
getTable()
Accessor for the table for this column.
|
String |
getTypeName()
Accessor for the native type name in the datastore for this column.
|
boolean |
isDefaultable()
Accessor for whether the column is defaultable.
|
boolean |
isNullable()
Accessor for whether the column is nullable in the datastore.
|
boolean |
isPrimaryKey()
Whether this column is (part of) the primary key
|
boolean |
isUnique()
Accessor for whether the column is unique.
|
Column |
setColumnMetaData(ColumnMetaData md) |
Column |
setDefaultable(Object defaultValue)
Mutator for the defaultability of the column.
|
Column |
setJdbcType(JdbcType jdbcType) |
Column |
setNullable(boolean nullable)
Mutator for the nullability of the column.
|
Column |
setPosition(int pos) |
Column |
setPrimaryKey()
Mutator to make the column (part of) the primary key.
|
Column |
setTypeName(String type) |
Column |
setUnique(boolean unique)
Mutator for the uniqueness of the column.
|
String getName()
Table getTable()
MemberColumnMapping getMemberColumnMapping()
boolean isPrimaryKey()
Column setPrimaryKey()
Column setNullable(boolean nullable)
nullable
- Whether this is nullableboolean isNullable()
Column setDefaultable(Object defaultValue)
defaultValue
- The default to useboolean isDefaultable()
Object getDefaultValue()
Column setUnique(boolean unique)
unique
- The flagboolean isUnique()
ColumnType getColumnType()
JdbcType getJdbcType()
String getTypeName()
Column setPosition(int pos)
int getPosition()
Column setColumnMetaData(ColumnMetaData md)
ColumnMetaData getColumnMetaData()
Copyright © 2019. All rights reserved.