Uses of Class
org.apache.openjpa.meta.FieldMetaData
Package
Description
OpenJPA Abstract StoreManager Implementation
OpenJPA Data Cache
OpenJPA Enhancer
OpenJPA-JDBC Runtime Kernel
OpenJPA-JDBC Expression Tree
OpenJPA-JDBC ORM Metadata
OpenJPA Runtime Kernel
OpenJPA Expression Tree
OpenJPA Metadata
OpenJPA JPA
OpenJPA JPA-JDBC
OpenJPA MetaModel
OpenJPA Utilities
-
Uses of FieldMetaData in org.apache.openjpa.abstractstore
Modifier and TypeMethodDescriptionAbstractStoreManager.getValueSequence
(FieldMetaData forField) Returns null. -
Uses of FieldMetaData in org.apache.openjpa.datacache
Modifier and TypeMethodDescriptionprotected void
DataCachePCDataImpl.clearInverseRelationCache
(OpenJPAStateManager sm, FieldMetaData fmd) Check if this field is in use of "order by" by other field collections in inverse relation.protected void
DataCachePCDataImpl.storeField
(OpenJPAStateManager sm, FieldMetaData fmd) Store field-level information from the given state manager.protected Object
DataCachePCDataImpl.toData
(FieldMetaData fmd, Object val, StoreContext ctx) -
Uses of FieldMetaData in org.apache.openjpa.enhance
Modifier and TypeMethodDescriptionprotected String
CodeGenerator.getDeclaration
(FieldMetaData field) Return a code template for the declaration of the given field, or null to use the system-generated default Java code.protected List
CodeGenerator.getFieldAnnotations
(FieldMetaData field) Return field-level annotations.protected String
CodeGenerator.getFieldCode
(FieldMetaData field) Return a code template for the get/set methods of the given field, or null to use the system-generated default Java code.protected String
CodeGenerator.getInitialValue
(FieldMetaData field) Return code for the initial value for the given field, or null to use the default generated by the system.protected int
PCDataGenerator.replaceType
(FieldMetaData fmd) Return a validJavaTypes
constant for the given fieldprotected boolean
PCDataGenerator.usesImplData
(FieldMetaData fmd) Whether the given field might have cacheable impl data.protected boolean
PCDataGenerator.usesIntermediate
(FieldMetaData fmd) Whether the given field uses a cacheable intermediate value. -
Uses of FieldMetaData in org.apache.openjpa.jdbc.kernel
Modifier and TypeMethodDescriptionJDBCStoreManager.getValueSequence
(FieldMetaData fmd) DelegatingJDBCFetchConfiguration.traverseJDBC
(FieldMetaData fm) JDBCFetchConfiguration.traverseJDBC
(FieldMetaData fm) Convenience method to cast traversal to store-specific type.JDBCFetchConfigurationImpl.traverseJDBC
(FieldMetaData fm) -
Uses of FieldMetaData in org.apache.openjpa.jdbc.kernel.exps
Modifier and TypeMethodDescriptionvoid
PCPath.get
(FieldMetaData field, boolean nullTraversal) void
PCPath.get
(FieldMetaData fmd, XMLMetaData meta) -
Uses of FieldMetaData in org.apache.openjpa.jdbc.meta
Modifier and TypeClassDescriptionclass
Specialization of metadata for relational databases.Modifier and TypeMethodDescriptionprotected FieldMetaData
MappingRepository.newFieldMetaData
(String name, Class<?> type, ClassMetaData owner) protected FieldMetaData[]
MappingRepository.newFieldMetaDataArray
(int length) Modifier and TypeMethodDescriptionvoid
FieldMapping.copy
(FieldMetaData fmd) protected Order
MappingRepository.newRelatedFieldOrder
(FieldMetaData owner, FieldMetaData rel, boolean asc) protected ValueMetaData
MappingRepository.newValueMetaData
(FieldMetaData owner) protected Order
MappingRepository.newValueOrder
(FieldMetaData owner, boolean asc) -
Uses of FieldMetaData in org.apache.openjpa.kernel
Modifier and TypeMethodDescriptionStateManagerImpl.getMappedByIdFields()
AbstractStoreQuery.AbstractExecutor.getUpdates
(StoreQuery q) QueryContext.getUpdates()
If this query is a bulk update, return a map of theFieldMetaData
s toConstant
s.StoreQuery.Executor.getUpdates
(StoreQuery q) Return a map ofFieldMetaData
to updateConstant
s, in cases where this query is for a bulk update.Modifier and TypeMethodDescriptionprotected void
InverseManager.addToCollection
(OpenJPAStateManager sm, FieldMetaData fmd, Object val) Add the given value to the collection at the selected field.protected void
InverseManager.clearInverseRelations
(OpenJPAStateManager sm, Object val, FieldMetaData fmd, FieldMetaData[] inverses) Clear all inverse the relations fromval
to the instance managed bysm
.protected void
InverseManager.clearInverseRelations
(OpenJPAStateManager sm, FieldMetaData fmd, FieldMetaData[] inverses, Object newValue) Remove all relations between the initial value offmd
for the instance managed bysm
and its inverses.void
InverseManager.correctRelations
(OpenJPAStateManager sm, FieldMetaData fmd, Object value) Correct relations from the given dirty field to inverse instances.protected void
InverseManager.createInverseRelations
(StoreContext ctx, Object fromRef, Object toRef, FieldMetaData fmd, FieldMetaData[] inverses) Create the inverse relations for all the given inverse fields.Broker.getValueSequence
(FieldMetaData fmd) Returns aSeq
for the generated values of the specified field, or null if the field is not generated.BrokerImpl.getValueSequence
(FieldMetaData fmd) DelegatingBroker.getValueSequence
(FieldMetaData fmd) DelegatingStoreManager.getValueSequence
(FieldMetaData fmd) StoreManager.getValueSequence
(FieldMetaData forField) Return a sequence that generates values for the given field.protected static boolean
DetachedStateManager.ignoreLoaded
(FieldMetaData fmd) Ignore if the field is not dirty but loadedprotected void
PCDataImpl.loadField
(OpenJPAStateManager sm, FieldMetaData fmd, FetchConfiguration fetch, Object context) Set field-level information into the given state manager.protected void
PCDataImpl.loadImplData
(OpenJPAStateManager sm, FieldMetaData fmd) Set field-level impl data into the given state manager.protected void
PCDataImpl.loadIntermediate
(OpenJPAStateManager sm, FieldMetaData fmd) Set intermediate information for the given field into the state manager.protected void
InverseManager.removeFromCollection
(OpenJPAStateManager sm, FieldMetaData fmd, Object val) Remove the given instance from the collection.int
DelegatingFetchConfiguration.requiresFetch
(FieldMetaData fmd) int
FetchConfiguration.requiresFetch
(FieldMetaData fm) Affirms if the given field requires to be fetched in the context of current fetch operation.int
FetchConfigurationImpl.requiresFetch
(FieldMetaData fm) boolean
StateManagerImpl.requiresFetch
(FieldMetaData fmd) protected void
InverseManager.storeField
(OpenJPAStateManager sm, FieldMetaData fmd, Object compare, Object val) Store a given value at the given field.protected void
PCDataImpl.storeField
(OpenJPAStateManager sm, FieldMetaData fmd) Store field-level information from the given state manager.protected void
PCDataImpl.storeImplData
(OpenJPAStateManager sm, FieldMetaData fmd, boolean fieldLoaded) Store impl data for the given field.protected void
PCDataImpl.storeIntermediate
(OpenJPAStateManager sm, FieldMetaData fmd) Store the intermediate field value for the given field.protected void
InverseManager.storeNull
(OpenJPAStateManager sm, FieldMetaData fmd, Object compare) Store null value at the given field.protected void
InverseManager.throwException
(OpenJPAStateManager sm, FieldMetaData fmd) Throw an inconsistency exceptionprotected Object
AbstractPCData.toData
(FieldMetaData fmd, Object val, StoreContext ctx) Transform the given field value to a data value for caching.protected Object
AbstractPCData.toField
(OpenJPAStateManager sm, FieldMetaData fmd, Object data, FetchConfiguration fetch, Object context) Transform the given data value into its field value.DelegatingFetchConfiguration.traverse
(FieldMetaData fmd) FetchConfiguration.traverse
(FieldMetaData fm) Traverse the given field to generate (possibly) a new configuration state.FetchConfigurationImpl.traverse
(FieldMetaData fm) protected void
InverseManager.warnConsistency
(OpenJPAStateManager sm, FieldMetaData fmd) Log an inconsistency warning -
Uses of FieldMetaData in org.apache.openjpa.kernel.exps
Modifier and TypeMethodDescriptionCandidatePath.last()
Path.last()
Return the last field in the path, or null if the path does not not contain a final field.Modifier and TypeMethodDescriptionQueryExpressions.getParameterizedFields()
Gets the fields that are bound to parameters.Modifier and TypeMethodDescriptionvoid
CandidatePath.get
(FieldMetaData field, boolean nullTraversal) Traverse into the given field of the current object, and update the current object to that field value.void
CandidatePath.get
(FieldMetaData fmd, XMLMetaData meta) void
Path.get
(FieldMetaData field, boolean nullTraversal) Traverse into the given field of the current object, and update the current object to that field value.void
Path.get
(FieldMetaData fmd, XMLMetaData meta) Traverse into the given field that maps to xml column, and update the current object to that field value. -
Uses of FieldMetaData in org.apache.openjpa.meta
Modifier and TypeMethodDescriptionClassMetaData.addDeclaredField
(String name, Class<?> type) Add a new field metadata to this class.ClassMetaData.addDefinedSuperclassField
(String name, Class<?> type, Class<?> sup) Add a new defined superclass field metadata to this class.ClassMetaData.getDeclaredField
(int index) Return the metadata for the persistent or transactional field with the given relative index.ClassMetaData.getDeclaredField
(String name) Return the metadata for the persistent or transactional field with the given name, without including superclass fields.ClassMetaData.getDeclaredFields()
Return only the fields for this class, without superclass fields.FetchGroup.getDeclaredRecursionDepthFields()
Return the fields with declared recursion depths in this group.ClassMetaData.getDeclaredUnmanagedFields()
Return any fields that were added as non-managed.ClassMetaData.getDefaultFetchGroupFields()
Return the list of fields in the default fetch group, including superclass fields, or an empty array if none.ClassMetaData.getDefinedFields()
Returns an array of all the fields defined by this class.ClassMetaData.getDefinedFieldsInListingOrder()
Returns all fields defined by this class in the order they are listed in the metadata file.ClassMetaData.getDefinedSuperclassField
(String name) Return the defined superclass field with the given name, or null if none.ClassMetaData.getField
(int index) Return the metadata for the persistent or transactional field with the given absolute index.Return the metadata for the persistent or transactional field with the given name.FieldMetaData.getFieldMetaData()
ValueMetaData.getFieldMetaData()
Return the owning field for this value.ValueMetaDataImpl.getFieldMetaData()
ClassMetaData.getFields()
Return all field metadata, including superclass fields.ClassMetaData.getFieldsInListingOrder()
Returns all fields in the order they are listed in the metadata file.FieldMetaData.getInverseMetaDatas()
Return all inverses of this field.ClassMetaData.getLrsFields()
Return all large result set fields.FieldMetaData.getMappedByField
(ClassMetaData meta, String mappedBy) FieldMetaData.getMappedByMetaData()
The field that this field shares a mapping with.MetaDataRepository.getOrderByField
(ClassMetaData meta, String orderBy) ClassMetaData.getPrimaryKeyFields()
Return primary key fields, or empty array if none.ClassMetaData.getProxyFields()
Return all fields that are types that need to be wrappered by a proxy.protected FieldMetaData
ClassMetaData.getSuperclassField
(FieldMetaData supField) Return the superclass copy of the given field.FieldMetaData.getValueMappedByMetaData()
ValueMetaData.getValueMappedByMetaData()
The field that this value shares a mapping with.ValueMetaDataImpl.getValueMappedByMetaData()
ClassMetaData.getVersionField()
Return the version field for this class, if any.protected FieldMetaData
MetaDataRepository.newFieldMetaData
(String name, Class<?> type, ClassMetaData owner) Create a new field metadata instance.protected FieldMetaData[]
MetaDataRepository.newFieldMetaDataArray
(int length) Create a new array of the proper field metadata subclass.Modifier and TypeMethodDescriptionvoid
FieldMetaData.copy
(FieldMetaData field) Copy state from the given field to this one.AbstractMetaDataDefaults.getBackingMember
(FieldMetaData fmd) Gets the backing member of the given field.MetaDataDefaults.getBackingMember
(FieldMetaData field) Return the backing member for the given field metadata.NoneMetaDataFactory.getBackingMember
(FieldMetaData fmd) int
FetchGroup.getDeclaredRecursionDepth
(FieldMetaData fm) Return the recursion depth declared for the given field, or 0 if none.int
FetchGroup.getRecursionDepth
(FieldMetaData fm) Recursion depth for the given field.protected FieldMetaData
ClassMetaData.getSuperclassField
(FieldMetaData supField) Return the superclass copy of the given field.static boolean
AccessCode.isField
(FieldMetaData meta) static boolean
AccessCode.isProperty
(FieldMetaData meta) static boolean
AccessCode.isUnknown
(FieldMetaData meta) static boolean
JavaTypes.maybePC
(FieldMetaData field) Return true if the (possibly unresolved) field or its elements might be persistence capable objects.static int
AccessCode.mergeFieldCode
(ClassMetaData meta, FieldMetaData fmd, int fCode) protected Order
MetaDataRepository.newOrder
(FieldMetaData owner, String name, boolean asc) Create anOrder
for the given field and declaration.protected Order
MetaDataRepository.newRelatedFieldOrder
(FieldMetaData owner, FieldMetaData rel, boolean asc) Order by a field of the related type.protected ValueMetaData
MetaDataRepository.newValueMetaData
(FieldMetaData owner) Create a new value metadata instance.protected Order
MetaDataRepository.newValueOrder
(FieldMetaData owner, boolean asc) Order by the field value.protected void
AbstractMetaDataDefaults.populate
(FieldMetaData fmd) boolean
ClassMetaData.removeDeclaredField
(FieldMetaData field) Remove the given field from management.boolean
ClassMetaData.removeDefinedSuperclassField
(FieldMetaData field) Remove the given field from management.void
FetchGroup.setRecursionDepth
(FieldMetaData fm, int depth) Recursion depth for the given field. -
Uses of FieldMetaData in org.apache.openjpa.persistence
Modifier and TypeMethodDescriptionprotected AnnotationBuilder
AnnotationPersistenceMetaDataSerializer.addAnnotation
(Class<? extends Annotation> annType, FieldMetaData meta) Creates an an annotation builder for the specified class metadata and adds it to list of builders.protected void
AnnotationPersistenceMetaDataSerializer.addAnnotation
(AnnotationBuilder ab, FieldMetaData meta) Add an annotation builder to list of builders for the specified field metadata.protected void
AnnotationPersistenceMetaDataSerializer.addFieldMappingAttributes
(FieldMetaData fmd, FieldMetaData orig, AnnotationBuilder ab) Add mapping attributes for the given field.protected void
XMLPersistenceMetaDataSerializer.addFieldMappingAttributes
(FieldMetaData fmd, FieldMetaData orig) Add mapping attributes for the given field.protected void
AnnotationPersistenceMetaDataSerializer.addStrategyMappingAttributes
(FieldMetaData fmd, AnnotationBuilder ab) Set mapping attributes for strategy.protected void
XMLPersistenceMetaDataSerializer.addStrategyMappingAttributes
(FieldMetaData fmd) Set mapping attributes for strategy.protected void
XMLPersistenceMetaDataParser.endFieldMapping
(FieldMetaData field) Implement to finalize field mapping.static PersistenceStrategy
PersistenceMetaDataDefaults.getPersistenceStrategy
(FieldMetaData fmd, Member member) Return the code for the strategy of the given member.static PersistenceStrategy
PersistenceMetaDataDefaults.getPersistenceStrategy
(FieldMetaData fmd, Member member, boolean ignoreTransient) Return the code for the strategy of the given member.protected PersistenceStrategy
AnnotationPersistenceMetaDataSerializer.getStrategy
(FieldMetaData fmd) Return the serialized strategy name.protected PersistenceStrategy
XMLPersistenceMetaDataSerializer.getStrategy
(FieldMetaData fmd) Return the serialized strategy name.protected boolean
AnnotationPersistenceMetaDataParser.handleUnknownMemberAnnotation
(FieldMetaData fmd, Annotation anno) Allow subclasses to handle unknown annotations.protected void
XMLPersistenceMetaDataParser.parseBasic
(FieldMetaData fmd, Attributes attrs) Parse basic.protected void
XMLPersistenceMetaDataParser.parseEagerFetchModeAttr
(FieldMetaData fmd, Attributes attrs) protected void
XMLPersistenceMetaDataParser.parseElementClassCriteriaAttr
(FieldMetaData fmd, Attributes attrs) protected void
XMLPersistenceMetaDataParser.parseElementCollection
(FieldMetaData fmd, Attributes attrs) protected void
XMLPersistenceMetaDataParser.parseEmbedded
(FieldMetaData fmd, Attributes attrs) Parse embedded.protected void
AnnotationPersistenceMetaDataParser.parseLobMapping
(FieldMetaData fmd) Setup the field as a LOB mapping.protected void
XMLPersistenceMetaDataParser.parseManyToMany
(FieldMetaData fmd, Attributes attrs) Parse many-to-many.protected void
XMLPersistenceMetaDataParser.parseManyToOne
(FieldMetaData fmd, Attributes attrs) Parse many-to-one.protected void
AnnotationPersistenceMetaDataParser.parseMemberMappingAnnotations
(FieldMetaData fmd) Parse member mapping components.protected void
XMLPersistenceMetaDataParser.parseOneToMany
(FieldMetaData fmd, Attributes attrs) Parse one-to-many.protected void
XMLPersistenceMetaDataParser.parseOneToOne
(FieldMetaData fmd, Attributes attrs) Parse one-to-one.protected void
XMLPersistenceMetaDataParser.parseStrategy
(FieldMetaData fmd, Attributes attrs) protected void
PersistenceMetaDataDefaults.populate
(FieldMetaData fmd) protected boolean
AnnotationPersistenceMetaDataSerializer.serializeAttributeOverride
(FieldMetaData fmd, FieldMetaData orig) Always returns false by default.protected boolean
XMLPersistenceMetaDataSerializer.serializeAttributeOverride
(FieldMetaData fmd, FieldMetaData orig) Always returns false by default.protected void
AnnotationPersistenceMetaDataSerializer.serializeAttributeOverrideMappingContent
(FieldMetaData fmd, FieldMetaData orig, AnnotationBuilder ab) Serialize attribute override mapping content.protected void
XMLPersistenceMetaDataSerializer.serializeAttributeOverrideMappingContent
(FieldMetaData fmd, FieldMetaData orig) Serialize attribute override mapping content.protected void
AnnotationPersistenceMetaDataSerializer.serializeFieldMappingContent
(FieldMetaData fmd, PersistenceStrategy strategy, AnnotationBuilder ab) Serialize field mapping content; this will be called before#serializeValueMappingContent
.protected void
XMLPersistenceMetaDataSerializer.serializeFieldMappingContent
(FieldMetaData fmd, PersistenceStrategy strategy) Serialize field mapping content; this will be called before#serializeValueMappingContent
.protected void
XMLPersistenceMetaDataSerializer.serializeOrderColumn
(FieldMetaData fmd) Order column is not processed as meta data, instead it can be processed as mapping data if in mapping mode.protected void
XMLPersistenceMetaDataParser.setCascades
(FieldMetaData fmd) Set the cached cascades into the field.protected void
XMLPersistenceMetaDataParser.startFieldMapping
(FieldMetaData field, Attributes attrs) Implement to add field mapping data. -
Uses of FieldMetaData in org.apache.openjpa.persistence.jdbc
Modifier and TypeMethodDescriptionprotected void
XMLPersistenceMappingParser.endFieldMapping
(FieldMetaData field) Extend to set the columns.protected PersistenceStrategy
AnnotationPersistenceMappingSerializer.getStrategy
(FieldMetaData fmd) protected PersistenceStrategy
XMLPersistenceMappingSerializer.getStrategy
(FieldMetaData fmd) protected void
XMLPersistenceMappingParser.parseEagerFetchModeAttr
(FieldMetaData fmd, Attributes attrs) protected void
XMLPersistenceMappingParser.parseElementClassCriteriaAttr
(FieldMetaData fmd, Attributes attrs) protected void
AnnotationPersistenceMappingParser.parseLobMapping
(FieldMetaData fmd) protected void
AnnotationPersistenceMappingParser.parseMemberMappingAnnotations
(FieldMetaData fmd) protected void
XMLPersistenceMappingParser.parseStrategy
(FieldMetaData fmd, Attributes attrs) protected boolean
AnnotationPersistenceMappingSerializer.serializeAttributeOverride
(FieldMetaData fmd, FieldMetaData orig) protected boolean
XMLPersistenceMappingSerializer.serializeAttributeOverride
(FieldMetaData fmd, FieldMetaData orig) protected void
AnnotationPersistenceMappingSerializer.serializeAttributeOverrideMappingContent
(FieldMetaData fmd, FieldMetaData orig, AnnotationBuilder ab) protected void
XMLPersistenceMappingSerializer.serializeAttributeOverrideMappingContent
(FieldMetaData fmd, FieldMetaData orig) protected void
AnnotationPersistenceMappingSerializer.serializeFieldMappingContent
(FieldMetaData fmd, PersistenceStrategy strategy, AnnotationBuilder ab) protected void
XMLPersistenceMappingSerializer.serializeFieldMappingContent
(FieldMetaData fmd, PersistenceStrategy strategy) protected void
XMLPersistenceMappingSerializer.serializeOrderColumn
(FieldMetaData fmd) Serialize order column.protected void
XMLPersistenceMappingParser.startFieldMapping
(FieldMetaData field, Attributes attrs) Extend to clear annotation mapping info. -
Uses of FieldMetaData in org.apache.openjpa.persistence.meta
ModifierConstructorDescriptionCollectionAttributeImpl
(AbstractManagedType<X> owner, FieldMetaData fmd) KeyAttributeImpl
(AbstractManagedType<X> owner, FieldMetaData fmd) ListAttributeImpl
(AbstractManagedType<X> owner, FieldMetaData fmd) MapAttributeImpl
(AbstractManagedType<X> owner, FieldMetaData fmd) protected
Member
(AbstractManagedType<X> owner, FieldMetaData fmd) Supply immutable parts.PluralAttributeImpl
(AbstractManagedType<X> owner, FieldMetaData fmd) SetAttributeImpl
(AbstractManagedType<X> owner, FieldMetaData fmd) SingularAttributeImpl
(AbstractManagedType<X> owner, FieldMetaData fmd) -
Uses of FieldMetaData in org.apache.openjpa.util
Modifier and TypeMethodDescriptionstatic Object
ImplHelper.generateFieldValue
(StoreContext ctx, FieldMetaData fmd) Generate a value for the given metadata, or return null.static Object
ApplicationIds.get
(Object oid, FieldMetaData fmd) Return the given primary key field value from the given oid.