public class PersistenceMappingDefaults extends MappingDefaultsImpl
dict| Constructor and Description |
|---|
PersistenceMappingDefaults() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getPrependFieldNameToJoinTableInverseJoinColumns()
Whether to prepend the field name to the default name of inverse join
columns within join tables.
|
Object |
getStrategy(Discriminator disc,
boolean adapt)
Default discriminator mapping strategy when there is no explicit
strategy.
|
Object |
getStrategy(Version vers,
boolean adapt)
Default version mapping strategy when there is no explicit strategy.
|
DBIdentifier |
getTableIdentifier(FieldMapping fm,
Schema schema)
Return the default secondary table name for the given field.
|
String |
getTableName(ClassMapping cls,
Schema schema)
Return the default table name for the given class.
|
String |
getTableName(FieldMapping fm,
Schema schema)
Return the default secondary table name for the given field.
|
void |
populateColumns(Version vers,
Table table,
Column[] cols)
Fill in default information for the given version columns.
|
void |
populateForeignKeyColumn(ValueMapping vm,
DBIdentifier sName,
Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols)
Fill in default information for the given column used to join a value
to its related type.
|
void |
populateForeignKeyColumn(ValueMapping vm,
String name,
Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols)
Fill in default information for the given column used to join a value
to its related type.
|
void |
populateJoinColumn(FieldMapping fm,
Table local,
Table foreign,
Column col,
Object target,
int pos,
int cols)
Fill in default information for the given column used to join a field
to its defining class' table.
|
void |
setPrependFieldNameToJoinTableInverseJoinColumns(boolean val)
Whether to prepend the field name to the default name of inverse join
columns within join tables.
|
areAllPrimaryKeyColumns, correctName, defaultMissingInfo, endConfiguration, getAddNullIndicator, getBaseClassStrategy, getDataStoreIdColumnIdentifier, getDataStoreIdColumnName, getDeferConstraints, getDiscriminatorColumnIdentifier, getDiscriminatorColumnName, getDiscriminatorStrategy, getDiscriminatorValue, getFieldStrategy, getForeignKey, getForeignKey, getForeignKeyDeleteAction, getIndex, getIndex, getIndex, getIndex, getIndexDiscriminator, getIndexLogicalForeignKeys, getIndexName, getIndexName, getIndexPhysicalForeignKeys, getIndexVersion, getJoinForeignKey, getJoinForeignKey, getJoinForeignKeyDeleteAction, getJoinIndex, getJoinUnique, getNullIndicatorColumnIdentifier, getNullIndicatorColumnName, getOrderColumnIdentifier, getOrderColumnName, getOrderLists, getPrimaryKeyIdentifier, getPrimaryKeyName, getStoreEnumOrdinal, getStoreUnmappedObjectIdString, getStrategy, getStrategy, getSubclassStrategy, getTableIdentifier, getUnique, getUnique, getVersionColumnIdentifier, getVersionColumnName, getVersionStrategy, installPrimaryKey, isRemoveHungarianNotation, populateColumns, populateColumns, populateColumns, populateDataStoreIdColumns, populateJoinColumn, populateNullIndicatorColumns, populateNullIndicatorColumns, populateOrderColumns, removeHungarianNotation, setAddNullIndicator, setBaseClassStrategy, setConfiguration, setDataStoreIdColumnIdentifier, setDataStoreIdColumnName, setDefaultMissingInfo, setDeferConstraints, setDiscriminatorColumnIdentifier, setDiscriminatorColumnName, setDiscriminatorStrategy, setFieldStrategies, setFieldStrategy, setForeignKeyDeleteAction, setForeignKeyDeleteAction, setIndexDiscriminator, setIndexLogicalForeignKeys, setIndexPhysicalForeignKeys, setIndexVersion, setJoinForeignKeyDeleteAction, setJoinForeignKeyDeleteAction, setNullIndicatorColumnIdentifier, setNullIndicatorColumnName, setOrderColumnIdentifier, setOrderColumnName, setOrderLists, setRemoveHungarianNotation, setStoreEnumOrdinal, setStoreUnmappedObjectIdString, setSubclassStrategy, setUseClassCriteria, setVersionColumnIdentifier, setVersionColumnName, setVersionStrategy, startConfiguration, useClassCriteriapublic boolean getPrependFieldNameToJoinTableInverseJoinColumns()
public void setPrependFieldNameToJoinTableInverseJoinColumns(boolean val)
public Object getStrategy(Version vers, boolean adapt)
MappingDefaultsgetStrategy in interface MappingDefaultsgetStrategy in class MappingDefaultsImplvers - the version; will not be mapped, but raw
MappingInfo will be availableadapt - whether we can adapt the mapping or schemapublic Object getStrategy(Discriminator disc, boolean adapt)
MappingDefaultsgetStrategy in interface MappingDefaultsgetStrategy in class MappingDefaultsImpldisc - the discriminator; will not be mapped, but raw
MappingInfo will be availableadapt - whether we can adapt the mapping or schemapublic String getTableName(ClassMapping cls, Schema schema)
MappingDefaultsgetTableName in interface MappingDefaultsgetTableName in class MappingDefaultsImplpublic String getTableName(FieldMapping fm, Schema schema)
MappingDefaultsgetTableName in interface MappingDefaultsgetTableName in class MappingDefaultsImplpublic DBIdentifier getTableIdentifier(FieldMapping fm, Schema schema)
MappingDefaultsgetTableIdentifier in interface MappingDefaultsgetTableIdentifier in class MappingDefaultsImplpublic void populateJoinColumn(FieldMapping fm, Table local, Table foreign, Column col, Object target, int pos, int cols)
MappingDefaultspopulateJoinColumn in interface MappingDefaultspopulateJoinColumn in class MappingDefaultsImpltarget - the target of this column in the join; may be
another column or a constant valuepos - the index of this column in the logical foreign keycols - the number of columns in the logical foreign keypublic void populateForeignKeyColumn(ValueMapping vm, String name, Table local, Table foreign, Column col, Object target, boolean inverse, int pos, int cols)
MappingDefaultspopulateForeignKeyColumn in interface MappingDefaultspopulateForeignKeyColumn in class MappingDefaultsImplname - base name for value, as decided by mappingtarget - the target of this column in the join; may be
another column or a constant valueinverse - whether this is an inverse foreign keypos - the index of this column in the logical foreign keycols - the number of columns in the logical foreign keypublic void populateForeignKeyColumn(ValueMapping vm, DBIdentifier sName, Table local, Table foreign, Column col, Object target, boolean inverse, int pos, int cols)
MappingDefaultspopulateForeignKeyColumn in interface MappingDefaultspopulateForeignKeyColumn in class MappingDefaultsImplsName - base name for value, as decided by mappingtarget - the target of this column in the join; may be
another column or a constant valueinverse - whether this is an inverse foreign keypos - the index of this column in the logical foreign keycols - the number of columns in the logical foreign keypublic void populateColumns(Version vers, Table table, Column[] cols)
MappingDefaultspopulateColumns in interface MappingDefaultspopulateColumns in class MappingDefaultsImplCopyright © 2006–2022 Apache Software Foundation. All rights reserved.