public abstract class AbstractColumn extends Object implements Column
| Constructor and Description |
|---|
AbstractColumn(AbstractLocator locator,
boolean id) |
AbstractColumn(Class<?> javaType,
IdType idType,
javax.persistence.TemporalType temporalType,
javax.persistence.EnumType enumType,
boolean lob,
AbstractLocator locator) |
| Modifier and Type | Method and Description |
|---|---|
Object |
convertValue(Connection connection,
Object value)
Converts the value corresponding to enum, temporal type, number or [cb]lob.
|
Object |
convertValueForSet(Object value)
Converts the value corresponding to enum, temporal type, number or [cb]lob.
|
abstract String |
getColumnDefinition()
Returns the static definition of the column.
|
IdType |
getIdType()
Returns the idType of the column.
|
abstract int |
getLength()
Returns the length of the column.
|
AbstractLocator |
getLocator()
Returns the locator of the column.
|
abstract Mapping<?,?,?> |
getMapping()
Returns the mapping of the BasicColumn.
|
abstract String |
getName()
Returns the name of the column.
|
abstract int |
getPrecision()
Returns the precision of the column.
|
abstract int |
getScale()
Returns the scale of the column.
|
abstract int |
getSqlType()
Returns the SQL Type of the column.
|
abstract AbstractTable |
getTable()
Returns the table of the column
|
abstract String |
getTableName()
Returns the table name of the column.
|
abstract Object |
getValue(Connection connection,
Object instance)
Returns the value for the column
|
abstract boolean |
isInsertable()
Returns the insertable of the column.
|
boolean |
isLob()
Returns if the column is lob type.
|
abstract boolean |
isNullable()
Returns the nullable of the column.
|
boolean |
isPrimaryKey()
Returns if the column is a primary key column.
|
abstract boolean |
isUnique()
Returns the unique of the column.
|
abstract boolean |
isUpdatable()
Returns the updatable of the column.
|
boolean |
isVersion()
Returns if the column is a version column.
|
void |
setId()
Sets the column as id column.
|
abstract void |
setTable(AbstractTable table)
Sets the table of the column.
|
abstract void |
setValue(Object instance,
Object value)
Sets the value for the instance
|
String |
toString() |
public AbstractColumn(AbstractLocator locator, boolean id)
locator - the locatorid - if the column is id columnpublic AbstractColumn(Class<?> javaType, IdType idType, javax.persistence.TemporalType temporalType, javax.persistence.EnumType enumType, boolean lob, AbstractLocator locator)
javaType - the java typeidType - the id typetemporalType - the temporal typeenumType - the enum typelob - if the column is loblocator - the locatorpublic Object convertValue(Connection connection, Object value)
convertValue in interface Columnconnection - the connectionvalue - the raw valuepublic Object convertValueForSet(Object value)
value - the raw valuepublic abstract String getColumnDefinition()
getColumnDefinition in interface Columnpublic IdType getIdType()
public abstract int getLength()
public final AbstractLocator getLocator()
getLocator in interface Columnpublic abstract Mapping<?,?,?> getMapping()
getMapping in interface Columnpublic abstract String getName()
public abstract int getPrecision()
getPrecision in interface Columnpublic abstract int getScale()
public abstract int getSqlType()
getSqlType in interface Columnpublic abstract AbstractTable getTable()
public abstract String getTableName()
getTableName in interface Columnpublic abstract Object getValue(Connection connection, Object instance)
public abstract boolean isInsertable()
isInsertable in interface Columnpublic boolean isLob()
public abstract boolean isNullable()
isNullable in interface Columnpublic boolean isPrimaryKey()
isPrimaryKey in interface Columnpublic abstract boolean isUnique()
public abstract boolean isUpdatable()
isUpdatable in interface Columnpublic boolean isVersion()
true if the column is a version column, false otherwisepublic abstract void setTable(AbstractTable table)
public abstract void setValue(Object instance, Object value)
Copyright © 2012-2013 Batoo. All Rights Reserved.