Uses of Class
org.apache.openjpa.jdbc.meta.FieldMapping
Package
Description
OpenJPA-JDBC Runtime Kernel
OpenJPA-JDBC Expression Tree
OpenJPA-JDBC ORM Metadata
OpenJPA-JDBC ORM Strategies
OpenJPA-JDBC SQL Abstraction
OpenJPA JPA-JDBC
-
Uses of FieldMapping in org.apache.openjpa.jdbc.kernel
Modifier and TypeMethodDescriptionprotected void
JDBCStoreManager.setMappedBy
(OpenJPAStateManager sm, FieldMapping mappedByFieldMapping, Object mappedByObject) -
Uses of FieldMapping in org.apache.openjpa.jdbc.kernel.exps
Modifier and TypeMethodDescriptionFilterValue.getFieldMapping()
If this is a path to a persistent field, return its mapping, else return null.PCPath.getFieldMapping
(ExpState state) -
Uses of FieldMapping in org.apache.openjpa.jdbc.meta
Modifier and TypeMethodDescriptionClassMapping.addDeclaredFieldMapping
(String name, Class type) Convenience method to perform cast fromClassMetaData.addDeclaredField(java.lang.String, java.lang.Class<?>)
.MappingRepository.getBi_1ToM_JoinTableField
(FieldMapping field) FieldMapping.getBi_1ToM_JTField()
MappingRepository.getBi_MTo1_JoinTableField
(FieldMapping field) FieldMapping.getBi_MTo1_JTField()
ClassMapping.getDeclaredFieldMapping
(int index) Convenience method to perform cast fromClassMetaData.getDeclaredField(int)
.ClassMapping.getDeclaredFieldMapping
(String name) Convenience method to perform cast fromClassMetaData.getDeclaredField(int)
.ClassMapping.getDeclaredFieldMappings()
Convenience method to perform cast fromClassMetaData.getDeclaredFields()
.ClassMapping.getDeclaredUnmanagedFieldMappings()
Convenience method to perform cast fromClassMetaData.getDeclaredUnmanagedFields()
.ClassMapping.getDefaultFetchGroupFieldMappings()
Convenience method to perform cast fromClassMetaData.getDefaultFetchGroupFields()
.ClassMapping.getDefinedFieldMappings()
Convenience method to perform cast fromClassMetaData.getDefinedFields()
.ClassMapping.getDefinedFieldMappingsInListingOrder()
Convenience method to perform cast fromClassMetaData.getDefinedFieldsInListingOrder()
.ClassMapping.getFieldMapping
(int index) Convenience method to perform cast fromClassMetaData.getField(int)
.ClassMapping.getFieldMapping
(String name) Convenience method to perform cast fromClassMetaData.getField(int)
.FieldMapping.getFieldMapping()
ValueMapping.getFieldMapping()
Convenience method to perform cast fromValueMetaData.getFieldMetaData()
.ValueMappingImpl.getFieldMapping()
ClassMapping.getFieldMappings()
Convenience method to perform cast fromClassMetaData.getFields()
.ClassMapping.getFieldMappingsInListingOrder()
Convenience method to perform cast fromClassMetaData.getFieldsInListingOrder()
.FieldMapping.getInverseMappings()
Convenience method to perform cast fromFieldMetaData.getInverseMetaDatas()
FieldMapping.getMappedByMapping()
Convenience method to perform cast fromFieldMetaData.getMappedByMetaData()
ClassMapping.getPrimaryKeyFieldMappings()
Convenience method to perform cast fromClassMetaData.getPrimaryKeyFields()
.FieldMapping.getValueMappedByMapping()
ValueMapping.getValueMappedByMapping()
Convenience method to perform cast fromValueMetaData.getValueMappedByMetaData()
.ValueMappingImpl.getValueMappedByMapping()
ClassMapping.getVersionFieldMapping()
Convenience method to perform cast fromClassMetaData.getVersionField()
.ReverseMappingTool.newFieldMapping
(String name, Class type, Column col, ForeignKey fk, ClassMapping dec) Create a field mapping for the given info, or return null if customizer rejects.Modifier and TypeMethodDescriptionvoid
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.MappingRepository.getBi_1ToM_JoinTableField
(FieldMapping field) MappingRepository.getBi_MTo1_JoinTableField
(FieldMapping field) PropertiesReverseCustomizer.getDeclaration
(FieldMapping field) 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.PropertiesReverseCustomizer.getFieldCode
(FieldMapping field) 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.PropertiesReverseCustomizer.getInitialValue
(FieldMapping field) ReverseCustomizer.getInitialValue
(FieldMapping field) Return code for the initial value for the given field, or null to use the default generated by the system.FieldMappingInfo.getJoin
(FieldMapping field, Table table, boolean adapt) Return the join from the field table to the owning class table.FieldMappingInfo.getJoin
(FieldMapping field, Table table, boolean adapt, List<Column> cols) FieldMappingInfo.getJoinForeignKey
(FieldMapping field, Table table, boolean adapt) 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.MappingDefaultsImpl.getJoinForeignKey
(FieldMapping fm, Table local, Table foreign) NoneMappingDefaults.getJoinForeignKey
(FieldMapping fm, Table local, Table foreign) FieldMappingInfo.getJoinIndex
(FieldMapping field, boolean adapt) Index on the field join.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.MappingDefaultsImpl.getJoinIndex
(FieldMapping fm, Table table, Column[] cols) 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.FieldMappingInfo.getJoinUnique
(FieldMapping field, boolean def, boolean adapt) Unique constraint on the field join.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.MappingDefaultsImpl.getJoinUnique
(FieldMapping fm, Table table, Column[] cols) NoneMappingDefaults.getJoinUnique
(FieldMapping fm, Table table, Column[] cols) FieldMappingInfo.getOrderColumn
(FieldMapping field, Table table, boolean adapt) Return the ordering column for this field, or null if none.FieldMappingInfo.getTable
(FieldMapping field, boolean create, boolean adapt) Return the table for the given field, or null if no table given.MappingDefaults.getTableIdentifier
(FieldMapping fm, Schema defaultSchema) Return the default secondary table name for the given field.MappingDefaultsImpl.getTableIdentifier
(FieldMapping fm, Schema schema) NoneMappingDefaults.getTableIdentifier
(FieldMapping fm, Schema defaultSchema) MappingDefaults.getTableName
(FieldMapping fm, Schema defaultSchema) Deprecated.MappingDefaultsImpl.getTableName
(FieldMapping fm, Schema schema) 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
(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, 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, Object target, int pos, int cols) void
NoneMappingDefaults.populateJoinColumn
(FieldMapping fm, Table local, Table foreign, Column col, 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. -
Uses of FieldMapping in org.apache.openjpa.jdbc.meta.strats
Modifier and TypeFieldDescriptionprotected FieldMapping
AbstractFieldStrategy.field
The owning field mapping.Modifier and TypeMethodDescriptionHandlerCollectionTableFieldStrategy.getFieldMapping()
LRSCollectionFieldStrategy.getFieldMapping()
The owning field mapping.LRSMapFieldStrategy.getFieldMapping()
The owning field mapping.MapTableFieldStrategy.getFieldMapping()
RelationCollectionInverseKeyFieldStrategy.getFieldMapping()
RelationCollectionTableFieldStrategy.getFieldMapping()
RelationMapInverseKeyFieldStrategy.getFieldMapping()
RelationMapTableFieldStrategy.getFieldMapping()
Modifier and TypeMethodDescriptionprotected 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, List cols) static void
EmbedValueHandler.getIdColumns
(FieldMapping fmd, 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
Modifier and TypeMethodDescriptionAbstractResult.getMappedByFieldMapping()
MergedResult.getMappedByFieldMapping()
Result.getMappedByFieldMapping()
If this is the result used to select a toMany relationship, the mappedByFieldMapping is field mapping representing the inverse relationship.Modifier and TypeMethodDescriptionLogicalUnion.UnionSelect.eagerClone
(FieldMapping key, int eagerType, boolean toMany, int sels) 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.SelectImpl.eagerClone
(FieldMapping key, int eagerType, boolean toMany, int sels) AbstractResult.getEager
(FieldMapping key) LogicalUnion.UnionSelect.getEager
(FieldMapping key) MergedResult.getEager
(FieldMapping key) Result.getEager
(FieldMapping key) The eager result for the given key, or null if none.Select.getEager
(FieldMapping key) Return the eager select for the given key.SelectImpl.getEager
(FieldMapping key) SelectImpl.SelectResult.getEager
(FieldMapping key) void
AbstractResult.putEager
(FieldMapping key, Object res) void
MergedResult.putEager
(FieldMapping key, Object res) void
Result.putEager
(FieldMapping key, Object res) The eager result for the given key, or null if none.void
SelectImpl.SelectResult.putEager
(FieldMapping key, 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
Modifier and TypeMethodDescriptionstatic FieldMapping
AnnotationPersistenceMappingParser.getAttributeOverrideField
(String attrName, FieldMapping fm, ClassMapping embed) static FieldMapping
AnnotationPersistenceMappingParser.getEmbeddedFieldMapping
(FieldMapping fm, String attrName) static FieldMapping
AnnotationPersistenceMappingParser.getEmbeddedFieldMapping
(FieldMapping fm, String attrName, boolean mustExist) Modifier and TypeMethodDescriptionstatic FieldMapping
AnnotationPersistenceMappingParser.getAttributeOverrideField
(String attrName, FieldMapping fm, ClassMapping embed) static Class<?>
AnnotationPersistenceMappingParser.getEmbeddedClassType
(FieldMapping fm, String attrName) static FieldMapping
AnnotationPersistenceMappingParser.getEmbeddedFieldMapping
(FieldMapping fm, String attrName) static FieldMapping
AnnotationPersistenceMappingParser.getEmbeddedFieldMapping
(FieldMapping fm, 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.PersistenceMappingDefaults.getTableIdentifier
(FieldMapping fm, Schema schema) PersistenceMappingDefaults.getTableName
(FieldMapping fm, Schema schema) protected boolean
AnnotationPersistenceMappingParser.handleUnknownMemberMappingAnnotation
(FieldMapping fm, 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, Object target, int pos, int cols) protected void
AnnotationPersistenceMappingParser.setColumns
(FieldMapping fm, MappingInfo info, 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
.