|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.cfg.Ejb3Column org.hibernate.cfg.Ejb3JoinColumn
public class Ejb3JoinColumn
Wrap state of an EJB3 @JoinColumn annotation and build the Hibernate column mapping element
Field Summary | |
---|---|
static int |
NO_REFERENCE
|
static int |
NON_PK_REFERENCE
|
static int |
PK_REFERENCE
|
Fields inherited from class org.hibernate.cfg.Ejb3Column |
---|
DEFAULT_COLUMN_LENGTH, joins, propertyHolder, sqlType |
Method Summary | |
---|---|
protected void |
addColumnBinding(SimpleValue value)
|
void |
addDefaultJoinColumnName(PersistentClass referencedEntity,
String logicalReferencedColumn)
|
static Ejb3JoinColumn |
buildJoinColumn(PrimaryKeyJoinColumn pkJoinAnn,
JoinColumn joinAnn,
Value identifier,
Map<String,Join> joins,
PropertyHolder propertyHolder,
Mappings mappings)
Build JoinColumn for a JOINED hierarchy |
static Ejb3JoinColumn[] |
buildJoinColumns(JoinColumn[] anns,
String mappedBy,
Map<String,Join> joins,
PropertyHolder propertyHolder,
String propertyName,
Mappings mappings)
|
static Ejb3JoinColumn[] |
buildJoinColumnsOrFormulas(JoinColumnsOrFormulas anns,
String mappedBy,
Map<String,Join> joins,
PropertyHolder propertyHolder,
String propertyName,
Mappings mappings)
|
static Ejb3JoinColumn[] |
buildJoinColumnsWithDefaultColumnSuffix(JoinColumn[] anns,
String mappedBy,
Map<String,Join> joins,
PropertyHolder propertyHolder,
String propertyName,
String suffixForDefaultColumnName,
Mappings mappings)
|
static Ejb3JoinColumn |
buildJoinFormula(JoinFormula ann,
String mappedBy,
Map<String,Join> joins,
PropertyHolder propertyHolder,
String propertyName,
Mappings mappings)
build join formula |
static Ejb3JoinColumn[] |
buildJoinTableJoinColumns(JoinColumn[] annJoins,
Map<String,Join> secondaryTables,
PropertyHolder propertyHolder,
String propertyName,
String mappedBy,
Mappings mappings)
|
static void |
checkIfJoinColumn(Object columns,
PropertyHolder holder,
PropertyData property)
|
static int |
checkReferencedColumnsType(Ejb3JoinColumn[] columns,
PersistentClass referencedEntity,
Mappings mappings)
|
void |
copyReferencedStructureAndCreateDefaultJoinColumns(PersistentClass referencedEntity,
Iterator columnIterator,
SimpleValue value)
|
String |
getManyToManyOwnerSideEntityName()
|
String |
getMappedBy()
|
String |
getReferencedColumn()
|
void |
linkValueUsingAColumnCopy(Column column,
SimpleValue value)
used for mappedBy cases |
void |
linkValueUsingDefaultColumnNaming(Column referencedColumn,
PersistentClass referencedEntity,
SimpleValue value)
|
void |
overrideFromReferencedColumnIfNecessary(Column column)
Called to apply column definitions from the referenced FK column to this column. |
void |
redefineColumnName(String columnName,
String propertyName,
boolean applyNamingStrategy)
|
void |
setJoinAnnotation(JoinColumn annJoin,
String defaultName)
|
void |
setJPA2ElementCollection(boolean JPA2ElementCollection)
|
void |
setManyToManyOwnerSideEntityName(String manyToManyOwnerSideEntityName)
|
void |
setMappedBy(String mappedBy)
|
void |
setMappedBy(String entityName,
String logicalTableName,
String mappedByProperty)
|
void |
setPersistentClass(PersistentClass persistentClass,
Map<String,Join> joins,
Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
Override persistent class on oneToMany Cases for late settings Must only be used on second level pass binding |
void |
setReferencedColumn(String referencedColumn)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NO_REFERENCE
public static final int PK_REFERENCE
public static final int NON_PK_REFERENCE
Method Detail |
---|
public void setJPA2ElementCollection(boolean JPA2ElementCollection)
public String getManyToManyOwnerSideEntityName()
public void setManyToManyOwnerSideEntityName(String manyToManyOwnerSideEntityName)
public void setReferencedColumn(String referencedColumn)
public String getMappedBy()
public void setMappedBy(String mappedBy)
public String getReferencedColumn()
public static Ejb3JoinColumn[] buildJoinColumnsOrFormulas(JoinColumnsOrFormulas anns, String mappedBy, Map<String,Join> joins, PropertyHolder propertyHolder, String propertyName, Mappings mappings)
public static Ejb3JoinColumn buildJoinFormula(JoinFormula ann, String mappedBy, Map<String,Join> joins, PropertyHolder propertyHolder, String propertyName, Mappings mappings)
public static Ejb3JoinColumn[] buildJoinColumns(JoinColumn[] anns, String mappedBy, Map<String,Join> joins, PropertyHolder propertyHolder, String propertyName, Mappings mappings)
public static Ejb3JoinColumn[] buildJoinColumnsWithDefaultColumnSuffix(JoinColumn[] anns, String mappedBy, Map<String,Join> joins, PropertyHolder propertyHolder, String propertyName, String suffixForDefaultColumnName, Mappings mappings)
public void setJoinAnnotation(JoinColumn annJoin, String defaultName)
public static Ejb3JoinColumn buildJoinColumn(PrimaryKeyJoinColumn pkJoinAnn, JoinColumn joinAnn, Value identifier, Map<String,Join> joins, PropertyHolder propertyHolder, Mappings mappings)
public void setPersistentClass(PersistentClass persistentClass, Map<String,Join> joins, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
public static void checkIfJoinColumn(Object columns, PropertyHolder holder, PropertyData property)
public void copyReferencedStructureAndCreateDefaultJoinColumns(PersistentClass referencedEntity, Iterator columnIterator, SimpleValue value)
public void linkValueUsingDefaultColumnNaming(Column referencedColumn, PersistentClass referencedEntity, SimpleValue value)
public void addDefaultJoinColumnName(PersistentClass referencedEntity, String logicalReferencedColumn)
public void linkValueUsingAColumnCopy(Column column, SimpleValue value)
protected void addColumnBinding(SimpleValue value)
addColumnBinding
in class Ejb3Column
public static int checkReferencedColumnsType(Ejb3JoinColumn[] columns, PersistentClass referencedEntity, Mappings mappings)
public void overrideFromReferencedColumnIfNecessary(Column column)
column
- the referenced column.public void redefineColumnName(String columnName, String propertyName, boolean applyNamingStrategy)
redefineColumnName
in class Ejb3Column
public static Ejb3JoinColumn[] buildJoinTableJoinColumns(JoinColumn[] annJoins, Map<String,Join> secondaryTables, PropertyHolder propertyHolder, String propertyName, String mappedBy, Mappings mappings)
public void setMappedBy(String entityName, String logicalTableName, String mappedByProperty)
public String toString()
toString
in class Ejb3Column
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |