Known Direct Subclasses
|
Class Overview
Wrap state of an EJB3 @Column annotation
and build the Hibernate column mapping element
Summary
Public Methods |
void
|
addIndex(Index index, boolean inSecondPass)
|
void
|
bind()
|
static
Ejb3Column[]
|
buildColumnFromAnnotation(Column[] anns, Formula formulaAnn, Nullability nullability, PropertyHolder propertyHolder, PropertyData inferredData, Map<String, Join> secondaryTables, Mappings mappings)
|
static
Ejb3Column[]
|
buildColumnFromAnnotation(Column[] anns, Formula formulaAnn, Nullability nullability, PropertyHolder propertyHolder, PropertyData inferredData, String suffixForDefaultColumnName, Map<String, Join> secondaryTables, Mappings mappings)
|
static
void
|
checkPropertyConsistency(Ejb3Column[] columns, String propertyName)
|
void
|
forceNotNull()
|
String
|
getFormulaString()
|
Join
|
getJoin()
|
int
|
getLength()
|
String
|
getLogicalColumnName()
|
Column
|
getMappingColumn()
|
String
|
getName()
|
int
|
getPrecision()
|
PropertyHolder
|
getPropertyHolder()
|
String
|
getPropertyName()
|
int
|
getScale()
|
String
|
getSecondaryTableName()
|
String
|
getSqlType()
|
Table
|
getTable()
Find appropriate table of the column.
|
boolean
|
isFormula()
|
boolean
|
isImplicit()
|
boolean
|
isInsertable()
|
boolean
|
isNameDeferred()
|
boolean
|
isNullable()
|
boolean
|
isSecondary()
|
boolean
|
isUnique()
|
boolean
|
isUpdatable()
|
void
|
linkWithValue(SimpleValue value)
|
void
|
redefineColumnName(String columnName, String propertyName, boolean applyNamingStrategy)
|
void
|
setFormula(String formula)
|
void
|
setImplicit(boolean implicit)
|
void
|
setInsertable(boolean insertable)
|
void
|
setJoins(Map<String, Join> joins)
|
void
|
setLength(int length)
|
void
|
setLogicalColumnName(String logicalColumnName)
|
void
|
setMappings(Mappings mappings)
|
void
|
setNullable(boolean nullable)
|
void
|
setPrecision(int precision)
|
void
|
setPropertyHolder(PropertyHolder propertyHolder)
|
void
|
setPropertyName(String propertyName)
|
void
|
setScale(int scale)
|
void
|
setSecondaryTableName(String secondaryTableName)
|
void
|
setSqlType(String sqlType)
|
void
|
setTable(Table table)
|
void
|
setUnique(boolean unique)
|
void
|
setUpdatable(boolean updatable)
|
String
|
toString()
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Constants
public
static
final
int
DEFAULT_COLUMN_LENGTH
Constant Value:
255
(0x000000ff)
Fields
Public Constructors
Public Methods
public
void
addIndex
(Index index, boolean inSecondPass)
public
void
forceNotNull
()
public
String
getFormulaString
()
public
String
getLogicalColumnName
()
public
Column
getMappingColumn
()
public
int
getPrecision
()
public
String
getPropertyName
()
public
String
getSecondaryTableName
()
public
Table
getTable
()
Find appropriate table of the column.
It can come from a secondary table or from the main table of the persistent class
public
boolean
isFormula
()
public
boolean
isImplicit
()
public
boolean
isInsertable
()
public
boolean
isNameDeferred
()
public
boolean
isNullable
()
public
boolean
isSecondary
()
public
boolean
isUnique
()
public
boolean
isUpdatable
()
public
void
redefineColumnName
(String columnName, String propertyName, boolean applyNamingStrategy)
public
void
setFormula
(String formula)
public
void
setImplicit
(boolean implicit)
public
void
setInsertable
(boolean insertable)
public
void
setLength
(int length)
public
void
setLogicalColumnName
(String logicalColumnName)
public
void
setMappings
(Mappings mappings)
public
void
setNullable
(boolean nullable)
public
void
setPrecision
(int precision)
public
void
setPropertyName
(String propertyName)
public
void
setScale
(int scale)
public
void
setSecondaryTableName
(String secondaryTableName)
public
void
setSqlType
(String sqlType)
public
void
setTable
(Table table)
public
void
setUnique
(boolean unique)
public
void
setUpdatable
(boolean updatable)
Protected Methods
protected
void
initMappingColumn
(String columnName, String propertyName, int length, int precision, int scale, boolean nullable, String sqlType, boolean unique, boolean applyNamingStrategy)
protected
void
setMappingColumn
(Column mappingColumn)