public abstract class AbstractColumn extends Object
| Constructor and Description |
|---|
AbstractColumn(AbstractLocator locator) |
AbstractColumn(Class<?> javaType,
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.
|
protected 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.
|
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.
|
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)
locator - the locatorpublic AbstractColumn(Class<?> javaType, javax.persistence.TemporalType temporalType, javax.persistence.EnumType enumType, boolean lob, AbstractLocator locator)
javaType - the java typetemporalType - the temporal typeenumType - the enum typelob - if the column is loblocator - the locatorpublic Object convertValue(Connection connection, Object value)
connection - the connectionvalue - the raw valueprotected Object convertValueForSet(Object value)
value - the raw valuepublic abstract String getColumnDefinition()
public abstract int getLength()
public final AbstractLocator getLocator()
public abstract Mapping<?,?,?> getMapping()
public abstract String getName()
public abstract int getPrecision()
public abstract int getScale()
public abstract int getSqlType()
public abstract AbstractTable getTable()
public abstract String getTableName()
public abstract Object getValue(Connection connection, Object instance)
connection - the connectioninstance - the instancepublic abstract boolean isInsertable()
public boolean isLob()
public abstract boolean isNullable()
public boolean isPrimaryKey()
public abstract boolean isUnique()
public abstract boolean isUpdatable()
public abstract void setTable(AbstractTable table)
table - the owning tablepublic abstract void setValue(Object instance, Object value)
instance - the instance of which to set valuevalue - the value to setCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.