| Constructor and Description |
|---|
ColumnImpl(Table tbl,
String identifier,
ColumnType colType) |
| 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 |
isNested() |
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 type) |
void |
setMemberColumnMapping(MemberColumnMapping mapping) |
void |
setNested(boolean nested) |
Column |
setNullable(boolean flag)
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 flag)
Mutator for the uniqueness of the column.
|
String |
toString() |
public ColumnImpl(Table tbl, String identifier, ColumnType colType)
public boolean isNested()
public void setNested(boolean nested)
public Table getTable()
Columnpublic MemberColumnMapping getMemberColumnMapping()
ColumngetMemberColumnMapping in interface Columnpublic void setMemberColumnMapping(MemberColumnMapping mapping)
public String getName()
Columnpublic boolean isPrimaryKey()
ColumnisPrimaryKey in interface Columnpublic Column setPrimaryKey()
ColumnsetPrimaryKey in interface Columnpublic Column setNullable(boolean flag)
ColumnsetNullable in interface Columnflag - Whether this is nullablepublic boolean isNullable()
ColumnisNullable in interface Columnpublic Column setDefaultable(Object defaultValue)
ColumnsetDefaultable in interface ColumndefaultValue - The default to usepublic boolean isDefaultable()
ColumnisDefaultable in interface Columnpublic Object getDefaultValue()
ColumngetDefaultValue in interface Columnpublic Column setUnique(boolean flag)
Columnpublic boolean isUnique()
Columnpublic ColumnType getColumnType()
ColumngetColumnType in interface Columnpublic Column setJdbcType(JdbcType type)
setJdbcType in interface Columnpublic JdbcType getJdbcType()
ColumngetJdbcType in interface Columnpublic Column setTypeName(String type)
setTypeName in interface Columnpublic String getTypeName()
ColumngetTypeName in interface Columnpublic Column setPosition(int pos)
setPosition in interface Columnpublic int getPosition()
ColumngetPosition in interface Columnpublic Column setColumnMetaData(ColumnMetaData md)
setColumnMetaData in interface Columnpublic ColumnMetaData getColumnMetaData()
ColumngetColumnMetaData in interface ColumnCopyright © 2017. All rights reserved.