Uses of Class
org.apache.openjpa.jdbc.meta.FieldMapping
-
Packages that use FieldMapping Package Description org.apache.openjpa.jdbc.kernel OpenJPA-JDBC Runtime Kernelorg.apache.openjpa.jdbc.kernel.exps OpenJPA-JDBC Expression Treeorg.apache.openjpa.jdbc.meta OpenJPA-JDBC ORM Metadataorg.apache.openjpa.jdbc.meta.strats OpenJPA-JDBC ORM Strategiesorg.apache.openjpa.jdbc.sql OpenJPA-JDBC SQL Abstractionorg.apache.openjpa.persistence.jdbc OpenJPA JPA-JDBC -
-
Uses of FieldMapping in org.apache.openjpa.jdbc.kernel
Methods in org.apache.openjpa.jdbc.kernel with parameters of type FieldMapping Modifier and Type Method Description protected void
JDBCStoreManager. setMappedBy(OpenJPAStateManager sm, FieldMapping mappedByFieldMapping, java.lang.Object mappedByObject)
-
Uses of FieldMapping in org.apache.openjpa.jdbc.kernel.exps
Fields in org.apache.openjpa.jdbc.kernel.exps declared as FieldMapping Modifier and Type Field Description FieldMapping
PCPath.PathExpState. cmpfield
FieldMapping
PCPath.PathExpState. field
Methods in org.apache.openjpa.jdbc.kernel.exps that return FieldMapping Modifier and Type Method Description FieldMapping
FilterValue. getFieldMapping()
If this is a path to a persistent field, return its mapping, else return null.FieldMapping
PCPath. getFieldMapping(ExpState state)
-
Uses of FieldMapping in org.apache.openjpa.jdbc.meta
Methods in org.apache.openjpa.jdbc.meta with parameters of type FieldMapping Modifier and Type Method Description void
ReverseMappingTool. addJoinConstraints(FieldMapping field)
Add existing unique constraints and indexes to the given field's join.void
FieldMapping. copyMappingInfo(FieldMapping fm)
Copy mapping info from the given instance to this one.void
PropertiesReverseCustomizer. customize(FieldMapping field)
void
ReverseCustomizer. customize(FieldMapping field)
Customize the given field information produced by the reverse mapping tool.protected FieldStrategy
MappingRepository. defaultStrategy(FieldMapping field, boolean installHandlers)
Determine the default strategy to use for the given field.protected FieldStrategy
MappingRepository. defaultStrategy(FieldMapping field, boolean installHandlers, boolean adapting)
Determine the default strategy to use for the given field.protected VersionStrategy
MappingRepository. defaultStrategy(Version vers, FieldMapping vfield)
Return the default version strategy, given a version field.protected FieldStrategy
MappingRepository. defaultTypeStrategy(FieldMapping field, boolean installHandlers, boolean adapting)
Return the built-in strategy for the field's type, or null if none.FieldMapping
MappingRepository. getBi_1ToM_JoinTableField(FieldMapping field)
FieldMapping
MappingRepository. getBi_MTo1_JoinTableField(FieldMapping field)
java.lang.String
PropertiesReverseCustomizer. getDeclaration(FieldMapping field)
java.lang.String
ReverseCustomizer. getDeclaration(FieldMapping field)
Return a code template for the declaration of the given field, or null to use the system-generated default Java code.java.lang.String
PropertiesReverseCustomizer. getFieldCode(FieldMapping field)
java.lang.String
ReverseCustomizer. getFieldCode(FieldMapping field)
Return a code template for the get/set methods of the given field, or null to use the system-generated default Java code.java.lang.String
PropertiesReverseCustomizer. getInitialValue(FieldMapping field)
java.lang.String
ReverseCustomizer. getInitialValue(FieldMapping field)
Return code for the initial value for the given field, or null to use the default generated by the system.ForeignKey
FieldMappingInfo. getJoin(FieldMapping field, Table table, boolean adapt)
Return the join from the field table to the owning class table.ForeignKey
FieldMappingInfo. getJoin(FieldMapping field, Table table, boolean adapt, java.util.List<Column> cols)
ForeignKey
FieldMappingInfo. getJoinForeignKey(FieldMapping field, Table table, boolean adapt)
ForeignKey
MappingDefaults. getJoinForeignKey(FieldMapping fm, Table local, Table foreign)
Return a default foreign key for the join from this field's table to its defining class' table, or null for a logical foreign key only.ForeignKey
MappingDefaultsImpl. getJoinForeignKey(FieldMapping fm, Table local, Table foreign)
ForeignKey
NoneMappingDefaults. getJoinForeignKey(FieldMapping fm, Table local, Table foreign)
Index
FieldMappingInfo. getJoinIndex(FieldMapping field, boolean adapt)
Index on the field join.Index
MappingDefaults. getJoinIndex(FieldMapping fm, Table table, Column[] cols)
Return a default index for the join, or null if the join columns should not be indexed by default.Index
MappingDefaultsImpl. getJoinIndex(FieldMapping fm, Table table, Column[] cols)
Index
NoneMappingDefaults. getJoinIndex(FieldMapping fm, Table table, Column[] cols)
Unique[]
FieldMappingInfo. getJoinTableUniques(FieldMapping field, boolean def, boolean adapt)
Get the unique constraints associated with the Sequence table.Unique
FieldMappingInfo. getJoinUnique(FieldMapping field, boolean def, boolean adapt)
Unique constraint on the field join.Unique
MappingDefaults. getJoinUnique(FieldMapping fm, Table table, Column[] cols)
Return a default constraint for the join, or null if the join columns should not be constrained by default.Unique
MappingDefaultsImpl. getJoinUnique(FieldMapping fm, Table table, Column[] cols)
Unique
NoneMappingDefaults. getJoinUnique(FieldMapping fm, Table table, Column[] cols)
Column
FieldMappingInfo. getOrderColumn(FieldMapping field, Table table, boolean adapt)
Return the ordering column for this field, or null if none.Table
FieldMappingInfo. getTable(FieldMapping field, boolean create, boolean adapt)
Return the table for the given field, or null if no table given.DBIdentifier
MappingDefaults. getTableIdentifier(FieldMapping fm, Schema defaultSchema)
Return the default secondary table name for the given field.DBIdentifier
MappingDefaultsImpl. getTableIdentifier(FieldMapping fm, Schema schema)
DBIdentifier
NoneMappingDefaults. getTableIdentifier(FieldMapping fm, Schema defaultSchema)
java.lang.String
MappingDefaults. getTableName(FieldMapping fm, Schema defaultSchema)
Deprecated.java.lang.String
MappingDefaultsImpl. getTableName(FieldMapping fm, Schema schema)
java.lang.String
NoneMappingDefaults. getTableName(FieldMapping fm, Schema schema)
protected FieldStrategy
MappingRepository. handlerCollectionStrategy(FieldMapping field, ValueHandler ehandler, boolean installHandlers)
Return the collection strategy for the given element handler, or null if none.protected FieldStrategy
MappingRepository. handlerMapStrategy(FieldMapping field, ValueHandler khandler, ValueHandler vhandler, boolean krel, boolean vrel, boolean installHandlers)
Return the map strategy for the given key and value handlers / relations, or null if none.boolean
QueryResultMapping.PCResult. hasEager(java.util.List<MetaDataContext> path, FieldMapping field)
Return true if the mapped result contains eager data for the given field at the given path.boolean
MappingRepository. hasJoinColumn(FieldMapping field)
boolean
MappingRepository. hasJoinTable(FieldMapping field)
void
MappingDefaults. installPrimaryKey(FieldMapping fm, Table table)
If desired, install a primary key on the given secondary table.void
MappingDefaultsImpl. installPrimaryKey(FieldMapping fm, Table table)
void
NoneMappingDefaults. installPrimaryKey(FieldMapping fm, Table table)
void
MappingStrategyInstaller. installStrategy(FieldMapping field)
void
NoneStrategyInstaller. installStrategy(FieldMapping field)
void
RefreshStrategyInstaller. installStrategy(FieldMapping field)
void
RuntimeStrategyInstaller. installStrategy(FieldMapping field)
abstract void
StrategyInstaller. installStrategy(FieldMapping fm)
Install a strategy on the given mapping.boolean
MappingRepository. isBi1To1JT(FieldMapping field)
boolean
MappingRepository. isBidirectional(FieldMapping field)
boolean
MappingRepository. isBiMTo1JT(FieldMapping field)
boolean
MappingRepository. isUni1To1JT(FieldMapping field)
boolean
MappingRepository. isUni1ToMFK(FieldMapping field)
boolean
MappingRepository. isUniMTo1JT(FieldMapping field)
protected FieldStrategy
MappingRepository. namedStrategy(FieldMapping field, boolean installHandlers)
Instantiate the given field's named strategy, or return null if no named strategy.protected FieldMappingInfo
MappingRepository. newMappingInfo(FieldMapping fm)
Create raw mapping info for the given instance.void
MappingDefaults. populateJoinColumn(FieldMapping fm, Table local, Table foreign, Column col, java.lang.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
MappingDefaultsImpl. populateJoinColumn(FieldMapping fm, Table local, Table foreign, Column col, java.lang.Object target, int pos, int cols)
void
NoneMappingDefaults. populateJoinColumn(FieldMapping fm, Table local, Table foreign, Column col, java.lang.Object target, int pos, int cols)
boolean
MappingDefaults. populateOrderColumns(FieldMapping fm, Table table, Column[] cols)
Fill in default information for the given order columns.boolean
MappingDefaultsImpl. populateOrderColumns(FieldMapping fm, Table table, Column[] cols)
boolean
NoneMappingDefaults. populateOrderColumns(FieldMapping fm, Table table, Column[] cols)
void
FieldMapping. setFieldMapping(FieldMapping owner)
void
FieldStrategy. setFieldMapping(FieldMapping owner)
Set the class mapping using this strategy.void
FieldMappingInfo. syncOrderColumn(FieldMapping field)
Synchronize internal order column information with the given field.void
FieldMappingInfo. syncStrategy(FieldMapping field)
Synchronize internal mapping strategy information with the given field.void
FieldMappingInfo. syncWith(FieldMapping field)
Synchronize internal information with the mapping data for the given field.Constructors in org.apache.openjpa.jdbc.meta with parameters of type FieldMapping Constructor Description ValueMappingImpl(FieldMapping owner)
Constructor. -
Uses of FieldMapping in org.apache.openjpa.jdbc.meta.strats
Fields in org.apache.openjpa.jdbc.meta.strats declared as FieldMapping Modifier and Type Field Description protected FieldMapping
AbstractFieldStrategy. field
The owning field mapping.Methods in org.apache.openjpa.jdbc.meta.strats that return FieldMapping Modifier and Type Method Description FieldMapping
HandlerCollectionTableFieldStrategy. getFieldMapping()
FieldMapping
LRSCollectionFieldStrategy. getFieldMapping()
The owning field mapping.FieldMapping
LRSMapFieldStrategy. getFieldMapping()
The owning field mapping.FieldMapping
MapTableFieldStrategy. getFieldMapping()
FieldMapping
RelationCollectionInverseKeyFieldStrategy. getFieldMapping()
FieldMapping
RelationCollectionTableFieldStrategy. getFieldMapping()
FieldMapping
RelationMapInverseKeyFieldStrategy. getFieldMapping()
FieldMapping
RelationMapTableFieldStrategy. getFieldMapping()
Methods in org.apache.openjpa.jdbc.meta.strats with parameters of type FieldMapping Modifier and Type Method Description protected static void
ContainerFieldStrategy. appendJoinCount(SQLBuffer sql, Select sel, Joins joins, DBDictionary dict, FieldMapping field, ForeignKey fk)
static void
ContainerFieldStrategy. appendUnaliasedJoin(SQLBuffer sql, Select sel, Joins joins, DBDictionary dict, FieldMapping field, ForeignKey fk)
static void
EmbedValueHandler. getEmbeddedIdCols(FieldMapping fmd, java.util.List cols)
static void
EmbedValueHandler. getIdColumns(FieldMapping fmd, java.util.List cols)
void
AbstractFieldStrategy. setFieldMapping(FieldMapping owner)
void
LobFieldStrategy. setFieldMapping(FieldMapping owner)
void
NoneFieldStrategy. setFieldMapping(FieldMapping owner)
-
Uses of FieldMapping in org.apache.openjpa.jdbc.sql
Methods in org.apache.openjpa.jdbc.sql that return FieldMapping Modifier and Type Method Description FieldMapping
AbstractResult. getMappedByFieldMapping()
FieldMapping
MergedResult. getMappedByFieldMapping()
FieldMapping
Result. getMappedByFieldMapping()
If this is the result used to select a toMany relationship, the mappedByFieldMapping is field mapping representing the inverse relationship.Methods in org.apache.openjpa.jdbc.sql with parameters of type FieldMapping Modifier and Type Method Description SelectExecutor
LogicalUnion.UnionSelect. eagerClone(FieldMapping key, int eagerType, boolean toMany, int sels)
SelectExecutor
Select. eagerClone(FieldMapping key, int eagerType, boolean toMany, int sels)
Return a select that will be eagerly executed with this one, or null if the select cannot be created for the given key and join type.SelectExecutor
SelectImpl. eagerClone(FieldMapping key, int eagerType, boolean toMany, int sels)
java.lang.Object
AbstractResult. getEager(FieldMapping key)
SelectExecutor
LogicalUnion.UnionSelect. getEager(FieldMapping key)
java.lang.Object
MergedResult. getEager(FieldMapping key)
java.lang.Object
Result. getEager(FieldMapping key)
The eager result for the given key, or null if none.SelectExecutor
Select. getEager(FieldMapping key)
Return the eager select for the given key.SelectExecutor
SelectImpl. getEager(FieldMapping key)
java.lang.Object
SelectImpl.SelectResult. getEager(FieldMapping key)
void
AbstractResult. putEager(FieldMapping key, java.lang.Object res)
void
MergedResult. putEager(FieldMapping key, java.lang.Object res)
void
Result. putEager(FieldMapping key, java.lang.Object res)
The eager result for the given key, or null if none.void
SelectImpl.SelectResult. putEager(FieldMapping key, java.lang.Object res)
void
AbstractResult. setMappedByFieldMapping(FieldMapping fieldMapping)
void
MergedResult. setMappedByFieldMapping(FieldMapping fieldMapping)
void
Result. setMappedByFieldMapping(FieldMapping fieldMapping)
If this is the result used to select a toMany relationship, the mappedByFieldMapping is field mapping representing the inverse relationship. -
Uses of FieldMapping in org.apache.openjpa.persistence.jdbc
Methods in org.apache.openjpa.persistence.jdbc that return FieldMapping Modifier and Type Method Description static FieldMapping
AnnotationPersistenceMappingParser. getAttributeOverrideField(java.lang.String attrName, FieldMapping fm, ClassMapping embed)
static FieldMapping
AnnotationPersistenceMappingParser. getEmbeddedFieldMapping(FieldMapping fm, java.lang.String attrName)
static FieldMapping
AnnotationPersistenceMappingParser. getEmbeddedFieldMapping(FieldMapping fm, java.lang.String attrName, boolean mustExist)
Methods in org.apache.openjpa.persistence.jdbc with parameters of type FieldMapping Modifier and Type Method Description static FieldMapping
AnnotationPersistenceMappingParser. getAttributeOverrideField(java.lang.String attrName, FieldMapping fm, ClassMapping embed)
static java.lang.Class<?>
AnnotationPersistenceMappingParser. getEmbeddedClassType(FieldMapping fm, java.lang.String attrName)
static FieldMapping
AnnotationPersistenceMappingParser. getEmbeddedFieldMapping(FieldMapping fm, java.lang.String attrName)
static FieldMapping
AnnotationPersistenceMappingParser. getEmbeddedFieldMapping(FieldMapping fm, java.lang.String attrName, boolean mustExist)
protected jakarta.persistence.EnumType
AnnotationPersistenceMappingSerializer. getEnumType(FieldMapping field)
Return enum type for the field.protected jakarta.persistence.EnumType
XMLPersistenceMappingSerializer. getEnumType(FieldMapping field)
Return enum type for the field.DBIdentifier
PersistenceMappingDefaults. getTableIdentifier(FieldMapping fm, Schema schema)
java.lang.String
PersistenceMappingDefaults. getTableName(FieldMapping fm, Schema schema)
protected boolean
AnnotationPersistenceMappingParser. handleUnknownMemberMappingAnnotation(FieldMapping fm, java.lang.annotation.Annotation anno)
Allow subclasses to handle unknown annotations.protected void
AnnotationPersistenceMappingParser. parseCollectionTable(FieldMapping fm, jakarta.persistence.CollectionTable ctbl)
Parse @CollectionTable.protected void
AnnotationPersistenceMappingParser. parseColumns(FieldMapping fm, jakarta.persistence.Column... pcols)
Parse @Column(s).protected void
AnnotationPersistenceMappingParser. parseContainerTable(FieldMapping fm, ContainerTable ctbl)
Parse @ContainerTable.protected void
AnnotationPersistenceMappingParser. parseElementJoinColumns(FieldMapping fm, ElementJoinColumn... joins)
Parse @ElementJoinColumn(s).protected void
AnnotationPersistenceMappingParser. parseMapKeyColumn(FieldMapping fm, jakarta.persistence.MapKeyColumn anno)
Parse @MapKeyColumn.protected void
AnnotationPersistenceMappingParser. parseXJoinColumns(FieldMapping fm, MappingInfo info, boolean secondaryAllowed, XJoinColumn... joins)
Parse given @XJoinColumn annotations.void
PersistenceMappingDefaults. populateJoinColumn(FieldMapping fm, Table local, Table foreign, Column col, java.lang.Object target, int pos, int cols)
protected void
AnnotationPersistenceMappingParser. setColumns(FieldMapping fm, MappingInfo info, java.util.List<Column> cols, int unique)
Set the given columns as the columns forfm
.protected void
AnnotationPersistenceMappingParser. setMapKeyColumn(FieldMapping fm, MappingInfo info, Column col, int unique)
Set the given map key column as the map key column forfm
.
-