public class Ejb3Column extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_COLUMN_LENGTH |
protected Map<String,Join> |
joins |
protected PropertyHolder |
propertyHolder |
String |
sqlType |
Constructor and Description |
---|
Ejb3Column() |
Modifier and Type | Method and Description |
---|---|
protected void |
addColumnBinding(SimpleValue value) |
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() |
protected Mappings |
getMappings() |
String |
getName() |
protected NamingStrategyDelegate |
getNamingStrategyDelegate() |
protected static NamingStrategyDelegate |
getNamingStrategyDelegate(Mappings mappings) |
int |
getPrecision() |
PropertyHolder |
getPropertyHolder() |
String |
getPropertyName() |
int |
getScale() |
String |
getSecondaryTableName() |
String |
getSqlType() |
Table |
getTable()
Find appropriate table of the column.
|
protected void |
initMappingColumn(String columnName,
String propertyName,
int length,
int precision,
int scale,
boolean nullable,
String sqlType,
boolean unique,
boolean applyNamingStrategy) |
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) |
protected void |
setMappingColumn(Column mappingColumn) |
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() |
protected PropertyHolder propertyHolder
public static final int DEFAULT_COLUMN_LENGTH
public String sqlType
public void setTable(Table table)
public String getLogicalColumnName()
public String getSqlType()
public int getLength()
public int getPrecision()
public int getScale()
public boolean isUnique()
public boolean isFormula()
public String getFormulaString()
public String getSecondaryTableName()
public void setFormula(String formula)
public boolean isImplicit()
public void setInsertable(boolean insertable)
public void setUpdatable(boolean updatable)
protected Mappings getMappings()
public void setMappings(Mappings mappings)
public void setImplicit(boolean implicit)
public void setSqlType(String sqlType)
public void setLength(int length)
public void setPrecision(int precision)
public void setScale(int scale)
public void setLogicalColumnName(String logicalColumnName)
public void setPropertyName(String propertyName)
public String getPropertyName()
public void setUnique(boolean unique)
public boolean isNullable()
public void bind()
protected void initMappingColumn(String columnName, String propertyName, int length, int precision, int scale, boolean nullable, String sqlType, boolean unique, boolean applyNamingStrategy)
public boolean isNameDeferred()
public void redefineColumnName(String columnName, String propertyName, boolean applyNamingStrategy)
public String getName()
public Column getMappingColumn()
public boolean isInsertable()
public boolean isUpdatable()
public void setNullable(boolean nullable)
public PropertyHolder getPropertyHolder()
public void setPropertyHolder(PropertyHolder propertyHolder)
protected void setMappingColumn(Column mappingColumn)
public void linkWithValue(SimpleValue value)
protected void addColumnBinding(SimpleValue value)
protected NamingStrategyDelegate getNamingStrategyDelegate()
protected static NamingStrategyDelegate getNamingStrategyDelegate(Mappings mappings)
public Table getTable()
AnnotationException
- missing secondary tablepublic boolean isSecondary()
public Join getJoin()
public void forceNotNull()
public void setSecondaryTableName(String secondaryTableName)
public static Ejb3Column[] buildColumnFromAnnotation(Column[] anns, Formula formulaAnn, Nullability nullability, PropertyHolder propertyHolder, PropertyData inferredData, Map<String,Join> secondaryTables, Mappings mappings)
public static Ejb3Column[] buildColumnFromAnnotation(Column[] anns, Formula formulaAnn, Nullability nullability, PropertyHolder propertyHolder, PropertyData inferredData, String suffixForDefaultColumnName, Map<String,Join> secondaryTables, Mappings mappings)
public static void checkPropertyConsistency(Ejb3Column[] columns, String propertyName)
public void addIndex(Index index, boolean inSecondPass)
Copyright © 2018 JBoss by Red Hat. All rights reserved.