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, 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, setIndexVersion, setJoinForeignKeyDeleteAction, setJoinForeignKeyDeleteAction, setNullIndicatorColumnIdentifier, setNullIndicatorColumnName, setOrderColumnIdentifier, setOrderColumnName, setOrderLists, setRemoveHungarianNotation, setStoreEnumOrdinal, setStoreUnmappedObjectIdString, setSubclassStrategy, setUseClassCriteria, setVersionColumnIdentifier, setVersionColumnName, setVersionStrategy, startConfiguration, useClassCriteria
public boolean getPrependFieldNameToJoinTableInverseJoinColumns()
public void setPrependFieldNameToJoinTableInverseJoinColumns(boolean val)
public Object getStrategy(Version vers, boolean adapt)
MappingDefaults
getStrategy
in interface MappingDefaults
getStrategy
in class MappingDefaultsImpl
vers
- 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)
MappingDefaults
getStrategy
in interface MappingDefaults
getStrategy
in class MappingDefaultsImpl
disc
- 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)
MappingDefaults
getTableName
in interface MappingDefaults
getTableName
in class MappingDefaultsImpl
public String getTableName(FieldMapping fm, Schema schema)
MappingDefaults
getTableName
in interface MappingDefaults
getTableName
in class MappingDefaultsImpl
public DBIdentifier getTableIdentifier(FieldMapping fm, Schema schema)
MappingDefaults
getTableIdentifier
in interface MappingDefaults
getTableIdentifier
in class MappingDefaultsImpl
public void populateJoinColumn(FieldMapping fm, Table local, Table foreign, Column col, Object target, int pos, int cols)
MappingDefaults
populateJoinColumn
in interface MappingDefaults
populateJoinColumn
in class MappingDefaultsImpl
target
- 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)
MappingDefaults
populateForeignKeyColumn
in interface MappingDefaults
populateForeignKeyColumn
in class MappingDefaultsImpl
name
- 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)
MappingDefaults
populateForeignKeyColumn
in interface MappingDefaults
populateForeignKeyColumn
in class MappingDefaultsImpl
sName
- 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)
MappingDefaults
populateColumns
in interface MappingDefaults
populateColumns
in class MappingDefaultsImpl
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.