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,
MetadataBuildingContext context)
Build JoinColumn for a JOINED hierarchy
|
static Ejb3JoinColumn[] |
buildJoinColumns(JoinColumn[] anns,
String mappedBy,
Map<String,Join> joins,
PropertyHolder propertyHolder,
String propertyName,
MetadataBuildingContext buildingContext) |
static Ejb3JoinColumn[] |
buildJoinColumnsOrFormulas(JoinColumnOrFormula[] anns,
String mappedBy,
Map<String,Join> joins,
PropertyHolder propertyHolder,
String propertyName,
MetadataBuildingContext buildingContext) |
static Ejb3JoinColumn[] |
buildJoinColumnsWithDefaultColumnSuffix(JoinColumn[] anns,
String mappedBy,
Map<String,Join> joins,
PropertyHolder propertyHolder,
String propertyName,
String suffixForDefaultColumnName,
MetadataBuildingContext buildingContext) |
static Ejb3JoinColumn |
buildJoinFormula(JoinFormula ann,
String mappedBy,
Map<String,Join> joins,
PropertyHolder propertyHolder,
String propertyName,
MetadataBuildingContext buildingContext)
build join formula
|
static Ejb3JoinColumn[] |
buildJoinTableJoinColumns(JoinColumn[] annJoins,
Map<String,Join> secondaryTables,
PropertyHolder propertyHolder,
String propertyName,
String mappedBy,
MetadataBuildingContext buildingContext) |
static void |
checkIfJoinColumn(Object columns,
PropertyHolder holder,
PropertyData property) |
static int |
checkReferencedColumnsType(Ejb3JoinColumn[] columns,
PersistentClass referencedEntity,
MetadataBuildingContext context) |
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, getBuildingContext, getDefaultValue, getExplicitTableName, getFormulaString, getJoin, getLength, getLogicalColumnName, getMappingColumn, getName, getPrecision, getPropertyHolder, getPropertyName, getScale, getSqlType, getTable, initMappingColumn, isFormula, isImplicit, isInsertable, isNameDeferred, isNullable, isSecondary, isUnique, isUpdatable, linkWithValue, setBuildingContext, setDefaultValue, setExplicitTableName, setFormula, setImplicit, setInsertable, setJoins, setLength, setLogicalColumnName, setMappingColumn, setNullable, setPrecision, setPropertyHolder, setPropertyName, setScale, 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(JoinColumnOrFormula[] anns, String mappedBy, Map<String,Join> joins, PropertyHolder propertyHolder, String propertyName, MetadataBuildingContext buildingContext)
public static Ejb3JoinColumn buildJoinFormula(JoinFormula ann, String mappedBy, Map<String,Join> joins, PropertyHolder propertyHolder, String propertyName, MetadataBuildingContext buildingContext)
public static Ejb3JoinColumn[] buildJoinColumns(JoinColumn[] anns, String mappedBy, Map<String,Join> joins, PropertyHolder propertyHolder, String propertyName, MetadataBuildingContext buildingContext)
public static Ejb3JoinColumn[] buildJoinColumnsWithDefaultColumnSuffix(JoinColumn[] anns, String mappedBy, Map<String,Join> joins, PropertyHolder propertyHolder, String propertyName, String suffixForDefaultColumnName, MetadataBuildingContext buildingContext)
public void setJoinAnnotation(JoinColumn annJoin, String defaultName)
public static Ejb3JoinColumn buildJoinColumn(PrimaryKeyJoinColumn pkJoinAnn, JoinColumn joinAnn, Value identifier, Map<String,Join> joins, PropertyHolder propertyHolder, MetadataBuildingContext context)
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, MetadataBuildingContext context)
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, MetadataBuildingContext buildingContext)
public void setMappedBy(String entityName, String jpaEntityName, String logicalTableName, String mappedByProperty)
public String toString()
toString
in class Ejb3Column
Copyright © 2019 JBoss by Red Hat. All rights reserved.