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()
Column
public MemberColumnMapping getMemberColumnMapping()
Column
getMemberColumnMapping
in interface Column
public void setMemberColumnMapping(MemberColumnMapping mapping)
public String getName()
Column
public boolean isPrimaryKey()
Column
isPrimaryKey
in interface Column
public Column setPrimaryKey()
Column
setPrimaryKey
in interface Column
public Column setNullable(boolean flag)
Column
setNullable
in interface Column
flag
- Whether this is nullablepublic boolean isNullable()
Column
isNullable
in interface Column
public Column setDefaultable(Object defaultValue)
Column
setDefaultable
in interface Column
defaultValue
- The default to usepublic boolean isDefaultable()
Column
isDefaultable
in interface Column
public Object getDefaultValue()
Column
getDefaultValue
in interface Column
public Column setUnique(boolean flag)
Column
public boolean isUnique()
Column
public ColumnType getColumnType()
Column
getColumnType
in interface Column
public Column setJdbcType(JdbcType type)
setJdbcType
in interface Column
public JdbcType getJdbcType()
Column
getJdbcType
in interface Column
public Column setTypeName(String type)
setTypeName
in interface Column
public String getTypeName()
Column
getTypeName
in interface Column
public Column setPosition(int pos)
setPosition
in interface Column
public int getPosition()
Column
getPosition
in interface Column
public Column setColumnMetaData(ColumnMetaData md)
setColumnMetaData
in interface Column
public ColumnMetaData getColumnMetaData()
Column
getColumnMetaData
in interface Column
Copyright © 2019. All rights reserved.