public class Ejb3JoinColumn extends Ejb3Column
Modifier and Type | Field and Description |
---|---|
static int |
NO_REFERENCE |
static int |
NON_PK_REFERENCE |
static int |
PK_REFERENCE |
DEFAULT_COLUMN_LENGTH, joins, propertyHolder, sqlType
Modifier and Type | Method and Description |
---|---|
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 jpaEntityName,
String logicalTableName,
String mappedByProperty) |
void |
setPersistentClass(PersistentClass persistentClass,
Map<String,Join> joins,
Map<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() |
addIndex, bind, buildColumnFromAnnotation, buildColumnFromAnnotation, checkPropertyConsistency, forceNotNull, getFormulaString, getJoin, getLength, getLogicalColumnName, getMappingColumn, getMappings, getName, getNamingStrategyDelegate, getNamingStrategyDelegate, getPrecision, getPropertyHolder, getPropertyName, getScale, getSecondaryTableName, getSqlType, getTable, initMappingColumn, isFormula, isImplicit, isInsertable, isNameDeferred, isNullable, isSecondary, isUnique, isUpdatable, linkWithValue, setFormula, setImplicit, setInsertable, setJoins, setLength, setLogicalColumnName, setMappingColumn, setMappings, setNullable, setPrecision, setPropertyHolder, setPropertyName, setScale, setSecondaryTableName, setSqlType, setTable, setUnique, setUpdatable
public static final int NO_REFERENCE
public static final int PK_REFERENCE
public static final int NON_PK_REFERENCE
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<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 jpaEntityName, String logicalTableName, String mappedByProperty)
public String toString()
toString
in class Ejb3Column
Copyright © 2018 JBoss by Red Hat. All rights reserved.