Uses of Class
org.apache.openjpa.meta.ClassMetaData
-
-
Uses of ClassMetaData in org.apache.openjpa.abstractstore
Methods in org.apache.openjpa.abstractstore with parameters of type ClassMetaData Modifier and Type Method Description java.lang.Object
AbstractStoreManager. copyDataStoreId(java.lang.Object oid, ClassMetaData meta)
abstract ResultObjectProvider
AbstractStoreManager. executeExtent(ClassMetaData meta, boolean subs, FetchConfiguration fetch)
Create aResultObjectProvider
that can return all instances oftype
, optionally including subclasses as defined bysubclasses
.Seq
AbstractStoreManager. getDataStoreIdSequence(ClassMetaData forClass)
Returns the system-configured sequence.java.lang.Class<?>
AbstractStoreManager. getDataStoreIdType(ClassMetaData meta)
java.lang.Object
AbstractStoreManager. newDataStoreId(java.lang.Object val, ClassMetaData meta)
-
Uses of ClassMetaData in org.apache.openjpa.datacache
Methods in org.apache.openjpa.datacache with parameters of type ClassMetaData Modifier and Type Method Description protected void
DataCachePCDataGenerator. decorate(ClassNodeTracker cnt, ClassMetaData meta)
protected void
DataCachePCDataGenerator. finish(PCDataGenerator.DynamicPCData data, ClassMetaData meta)
boolean
DataCacheManagerImpl. isCachable(ClassMetaData meta)
Affirms if the given type is eligible for cache.StoreQuery.Executor
QueryCacheStoreQuery. newDataStoreExecutor(ClassMetaData meta, boolean subs)
StoreQuery.Executor
QueryCacheStoreQuery. newInMemoryExecutor(ClassMetaData meta, boolean subs)
Constructors in org.apache.openjpa.datacache with parameters of type ClassMetaData Constructor Description DataCachePCDataImpl(java.lang.Object oid, ClassMetaData meta)
DataCachePCDataImpl(java.lang.Object oid, ClassMetaData meta, java.lang.String name)
Constructor. -
Uses of ClassMetaData in org.apache.openjpa.enhance
Methods in org.apache.openjpa.enhance that return ClassMetaData Modifier and Type Method Description ClassMetaData
ApplicationIdTool. getMetaData()
Return metadata for the type we are generating an application id for.ClassMetaData
CodeGenerator. getMetaData()
Return metadata for the type being generated.ClassMetaData
PCEnhancer. getMetaData()
Return the metadata for the class being manipulated, or null if not a persistent type.Methods in org.apache.openjpa.enhance with parameters of type ClassMetaData Modifier and Type Method Description protected void
PCDataGenerator. decorate(ClassNodeTracker bc, ClassMetaData meta)
Apply additional decoration to generated class.protected void
PCDataGenerator. finish(PCDataGenerator.DynamicPCData data, ClassMetaData meta)
Perform any final actions before the pcdata is returned to client code.PCData
PCDataGenerator. generatePCData(java.lang.Object oid, ClassMetaData meta)
Return aPCData
instance for the given oid and metadata.java.lang.Class
PCEnhancer. getType(ClassMetaData meta)
Return the concrete type for the given class, i.e. impl for managed interfacesvoid
PCEnhancer.AuxiliaryEnhancer. run(org.apache.xbean.asm9.tree.ClassNode classNode, ClassMetaData meta)
protected boolean
PCDataGenerator. usesImplData(ClassMetaData meta)
Whether the given type might have cacheable class-level impl data.Constructors in org.apache.openjpa.enhance with parameters of type ClassMetaData Constructor Description ApplicationIdTool(OpenJPAConfiguration conf, java.lang.Class type, ClassMetaData meta)
Constructs a new tool instance capable of generating an object id class formeta
.CodeGenerator(ClassMetaData meta)
Constructor.PCEnhancer(OpenJPAConfiguration conf, ClassMetaData meta)
Constructor.PCEnhancer(MetaDataRepository repos, ClassNodeTracker type, ClassMetaData meta)
Constructor.PCSubclassValidator(ClassMetaData meta, org.apache.xbean.asm9.tree.ClassNode classNode, Log log, boolean enforceContractViolations)
-
Uses of ClassMetaData in org.apache.openjpa.enhance.stats
Methods in org.apache.openjpa.enhance.stats with parameters of type ClassMetaData Modifier and Type Method Description static void
FetchStatsCollector. registerEntity(ClassMetaData cmd)
void
FetchStatisticsAuxEnhancer. run(org.apache.xbean.asm9.tree.ClassNode classNode, ClassMetaData cmd)
-
Uses of ClassMetaData in org.apache.openjpa.event
Methods in org.apache.openjpa.event with parameters of type ClassMetaData Modifier and Type Method Description java.lang.Exception[]
LifecycleEventManager. fireEvent(java.lang.Object source, java.lang.Object related, ClassMetaData meta, int type)
Fire lifecycle event to all registered listeners.java.lang.Exception[]
LifecycleEventManager. fireEvent(java.lang.Object source, ClassMetaData meta, int type)
Fire lifecycle event to all registered listeners without an argument.boolean
LifecycleEventManager. hasAttachListeners(java.lang.Object source, ClassMetaData meta)
Return whether there are listeners or callbacks for the given source.boolean
LifecycleEventManager. hasClearListeners(java.lang.Object source, ClassMetaData meta)
Return whether there are listeners or callbacks for the given source.boolean
LifecycleEventManager. hasDeleteListeners(java.lang.Object source, ClassMetaData meta)
Return whether there are listeners or callbacks for the given source.boolean
LifecycleEventManager. hasDetachListeners(java.lang.Object source, ClassMetaData meta)
Return whether there are listeners or callbacks for the given source.boolean
LifecycleEventManager. hasDirtyListeners(java.lang.Object source, ClassMetaData meta)
Return whether there are listeners or callbacks for the given source.boolean
LifecycleEventManager. hasLoadListeners(java.lang.Object source, ClassMetaData meta)
Return whether there are listeners or callbacks for the given source.boolean
LifecycleEventManager. hasPersistListeners(java.lang.Object source, ClassMetaData meta)
Return whether there are listeners or callbacks for the given source.boolean
LifecycleEventManager. hasStoreListeners(java.lang.Object source, ClassMetaData meta)
Return whether there are listeners or callbacks for the given source.boolean
LifecycleEventManager. hasUpdateListeners(java.lang.Object source, ClassMetaData meta)
Return whether there are listeners or callbacks for the given source.boolean
LifecycleEventManager. isActive(ClassMetaData meta)
Whether this LifeCycleEventManager has had at least one listener or callback registered. -
Uses of ClassMetaData in org.apache.openjpa.jdbc.kernel
Methods in org.apache.openjpa.jdbc.kernel that return ClassMetaData Modifier and Type Method Description protected ClassMetaData[]
JDBCStoreQuery. getIndependentExpressionCandidates(ClassMetaData meta, boolean subclasses)
Methods in org.apache.openjpa.jdbc.kernel with parameters of type ClassMetaData Modifier and Type Method Description void
AbstractJDBCSeq. allocate(int additional, StoreContext ctx, ClassMetaData meta)
java.lang.Object
JDBCStoreManager. copyDataStoreId(java.lang.Object oid, ClassMetaData meta)
java.lang.Object
AbstractJDBCSeq. current(StoreContext ctx, ClassMetaData meta)
protected java.lang.Number
JDBCStoreQuery. executeDelete(StoreQuery.Executor ex, ClassMetaData base, ClassMetaData[] metas, boolean subclasses, ExpressionFactory[] facts, QueryExpressions[] exps, java.lang.Object[] params)
ResultObjectProvider
JDBCStoreManager. executeExtent(ClassMetaData meta, boolean subclasses, FetchConfiguration fetch)
protected ResultObjectProvider
JDBCStoreQuery. executeQuery(StoreQuery.Executor ex, ClassMetaData base, ClassMetaData[] metas, boolean subclasses, ExpressionFactory[] facts, QueryExpressions[] exps, java.lang.Object[] params, StoreQuery.Range range)
protected java.lang.Number
JDBCStoreQuery. executeUpdate(StoreQuery.Executor ex, ClassMetaData base, ClassMetaData[] metas, boolean subclasses, ExpressionFactory[] facts, QueryExpressions[] exps, java.lang.Object[] params)
protected java.lang.Number
JDBCStoreQuery. executeUpdate(ClassMetaData base, ClassMetaData[] metas, boolean subclasses, ExpressionFactory[] facts, QueryExpressions[] parsed, java.lang.Object[] params)
protected java.lang.String[]
JDBCStoreQuery. getDataStoreActions(ClassMetaData base, ClassMetaData[] metas, boolean subclasses, ExpressionFactory[] facts, QueryExpressions[] exps, java.lang.Object[] params, StoreQuery.Range range)
Seq
JDBCStoreManager. getDataStoreIdSequence(ClassMetaData meta)
java.lang.Class<?>
JDBCStoreManager. getDataStoreIdType(ClassMetaData meta)
protected ExpressionFactory
JDBCStoreQuery. getExpressionFactory(ClassMetaData meta)
protected ClassMetaData[]
JDBCStoreQuery. getIndependentExpressionCandidates(ClassMetaData meta, boolean subclasses)
StoreQuery.Executor
PreparedSQLStoreQuery. newDataStoreExecutor(ClassMetaData meta, boolean subclasses)
StoreQuery.Executor
SQLStoreQuery. newDataStoreExecutor(ClassMetaData meta, boolean subclasses)
StoreQuery.Executor
StoredProcedureQuery. newDataStoreExecutor(ClassMetaData meta, boolean subclasses)
java.lang.Object
JDBCStoreManager. newDataStoreId(java.lang.Object val, ClassMetaData meta)
java.lang.Object
AbstractJDBCSeq. next(StoreContext ctx, ClassMetaData meta)
Constructors in org.apache.openjpa.jdbc.kernel with parameters of type ClassMetaData Constructor Description PreparedSQLExecutor(PreparedSQLStoreQuery q, ClassMetaData candidate)
SQLExecutor(SQLStoreQuery q, ClassMetaData candidate)
-
Uses of ClassMetaData in org.apache.openjpa.jdbc.kernel.exps
Methods in org.apache.openjpa.jdbc.kernel.exps that return ClassMetaData Modifier and Type Method Description ClassMetaData
Args. getMetaData()
ClassMetaData
CoalesceExpression. getMetaData()
ClassMetaData
Concat. getMetaData()
ClassMetaData
GeneralCaseExpression. getMetaData()
ClassMetaData
IndexOf. getMetaData()
ClassMetaData
MapEntry. getMetaData()
ClassMetaData
MapKey. getMetaData()
ClassMetaData
Math. getMetaData()
ClassMetaData
NullIfExpression. getMetaData()
ClassMetaData
PCPath. getMetaData()
ClassMetaData
SimpleCaseExpression. getMetaData()
ClassMetaData
SubQ. getMetaData()
ClassMetaData
Substring. getMetaData()
ClassMetaData
Trim. getMetaData()
Methods in org.apache.openjpa.jdbc.kernel.exps with parameters of type ClassMetaData Modifier and Type Method Description Subquery
JDBCExpressionFactory. newSubquery(ClassMetaData candidate, boolean subs, java.lang.String alias)
void
Args. setMetaData(ClassMetaData meta)
void
CoalesceExpression. setMetaData(ClassMetaData meta)
void
Concat. setMetaData(ClassMetaData meta)
void
GeneralCaseExpression. setMetaData(ClassMetaData meta)
void
IndexOf. setMetaData(ClassMetaData meta)
void
MapEntry. setMetaData(ClassMetaData meta)
void
MapKey. setMetaData(ClassMetaData meta)
void
Math. setMetaData(ClassMetaData meta)
void
NullIfExpression. setMetaData(ClassMetaData meta)
void
PCPath. setMetaData(ClassMetaData meta)
void
SimpleCaseExpression. setMetaData(ClassMetaData meta)
void
SubQ. setMetaData(ClassMetaData meta)
void
Substring. setMetaData(ClassMetaData meta)
void
Trim. setMetaData(ClassMetaData meta)
-
Uses of ClassMetaData in org.apache.openjpa.jdbc.meta
Subclasses of ClassMetaData in org.apache.openjpa.jdbc.meta Modifier and Type Class Description class
ClassMapping
Specialization of metadata for relational databases.Methods in org.apache.openjpa.jdbc.meta that return ClassMetaData Modifier and Type Method Description protected ClassMetaData
MappingRepository. newClassMetaData(java.lang.Class<?> type)
protected ClassMetaData[]
MappingRepository. newClassMetaDataArray(int length)
protected ClassMetaData
MappingRepository. newEmbeddedClassMetaData(ValueMetaData owner)
Methods in org.apache.openjpa.jdbc.meta with parameters of type ClassMetaData Modifier and Type Method Description void
ClassMapping. copy(ClassMetaData cls)
protected FieldMetaData
MappingRepository. newFieldMetaData(java.lang.String name, java.lang.Class<?> type, ClassMetaData owner)
protected void
MappingRepository. prepareMapping(ClassMetaData meta)
boolean
MetaDataPlusMappingFactory. store(ClassMetaData[] metas, QueryMetaData[] queries, SequenceMetaData[] seqs, int mode, java.util.Map output)
-
Uses of ClassMetaData in org.apache.openjpa.kernel
Fields in org.apache.openjpa.kernel declared as ClassMetaData Modifier and Type Field Description protected ClassMetaData
StateManagerImpl. _meta
static ClassMetaData[]
StoreQuery. EMPTY_METAS
Methods in org.apache.openjpa.kernel that return ClassMetaData Modifier and Type Method Description ClassMetaData[]
AbstractStoreQuery.AbstractExecutor. getAccessPathMetaDatas(StoreQuery q)
ClassMetaData[]
DelegatingQuery. getAccessPathMetaDatas()
ClassMetaData[]
ExpressionStoreQuery.AbstractExpressionExecutor. getAccessPathMetaDatas(StoreQuery q)
ClassMetaData[]
QueryContext. getAccessPathMetaDatas()
Return the classes that affect this query.ClassMetaData[]
QueryImpl. getAccessPathMetaDatas()
ClassMetaData[]
StoreQuery.Executor. getAccessPathMetaDatas(StoreQuery q)
Return an array of all persistent classes used in this query, or empty array if unknown.protected ClassMetaData[]
ExpressionStoreQuery. getIndependentExpressionCandidates(ClassMetaData type, boolean subclasses)
Return the assignable types for the given metadata whose expression trees must be compiled independently.ClassMetaData
DetachedStateManager. getMetaData()
ClassMetaData
DetachedValueStateManager. getMetaData()
ClassMetaData
ObjectIdStateManager. getMetaData()
ClassMetaData
OpenJPAStateManager. getMetaData()
Get the metadata for this instance.ClassMetaData
StateManagerImpl. getMetaData()
Methods in org.apache.openjpa.kernel that return types with arguments of type ClassMetaData Modifier and Type Method Description static java.util.List<ClassMetaData>
Filters. addAccessPathMetaDatas(java.util.List<ClassMetaData> metas, ClassMetaData[] path)
Add the given access path metadatas to the full path list, making sure to maintain only base metadatas in the list.Methods in org.apache.openjpa.kernel with parameters of type ClassMetaData Modifier and Type Method Description static java.util.List<ClassMetaData>
Filters. addAccessPathMetaDatas(java.util.List<ClassMetaData> metas, ClassMetaData[] path)
Add the given access path metadatas to the full path list, making sure to maintain only base metadatas in the list.void
DelegatingSeq. allocate(int additional, StoreContext ctx, ClassMetaData meta)
void
Seq. allocate(int additional, StoreContext ctx, ClassMetaData cls)
Allocate additional values efficiently.void
TimeSeededSeq. allocate(int additional, StoreContext ctx, ClassMetaData meta)
void
UUIDHexSeq. allocate(int additional, StoreContext ctx, ClassMetaData meta)
void
UUIDStringSeq. allocate(int additional, StoreContext ctx, ClassMetaData meta)
void
UUIDType4HexSeq. allocate(int additional, StoreContext ctx, ClassMetaData meta)
void
UUIDType4StringSeq. allocate(int additional, StoreContext ctx, ClassMetaData meta)
java.lang.Object
DetachedStateManager. attach(AttachManager manager, java.lang.Object toAttach, ClassMetaData meta, PersistenceCapable into, OpenJPAStateManager owner, ValueMetaData ownerMeta, boolean explicit)
protected void
BrokerImpl. checkForDuplicateId(java.lang.Object id, java.lang.Object obj, ClassMetaData meta)
This method makes sure we don't already have the instance cachedjava.lang.Object
DelegatingStoreManager. copyDataStoreId(java.lang.Object oid, ClassMetaData meta)
java.lang.Object
StoreManager. copyDataStoreId(java.lang.Object oid, ClassMetaData meta)
Copy the given object id value.java.lang.Object
DelegatingSeq. current(StoreContext ctx, ClassMetaData meta)
java.lang.Object
Seq. current(StoreContext ctx, ClassMetaData cls)
Return the current value of the sequence, or null if not available.java.lang.Object
TimeSeededSeq. current(StoreContext ctx, ClassMetaData meta)
java.lang.Object
UUIDHexSeq. current(StoreContext ctx, ClassMetaData meta)
java.lang.Object
UUIDStringSeq. current(StoreContext ctx, ClassMetaData meta)
java.lang.Object
UUIDType4HexSeq. current(StoreContext ctx, ClassMetaData meta)
java.lang.Object
UUIDType4StringSeq. current(StoreContext ctx, ClassMetaData meta)
protected java.lang.Number
ExpressionStoreQuery. executeDelete(StoreQuery.Executor ex, ClassMetaData base, ClassMetaData[] types, boolean subclasses, ExpressionFactory[] facts, QueryExpressions[] parsed, java.lang.Object[] params)
Execute the given expression against the given candidate extent and delete the instances.ResultObjectProvider
DelegatingStoreManager. executeExtent(ClassMetaData meta, boolean subclasses, FetchConfiguration fetch)
ResultObjectProvider
StoreManager. executeExtent(ClassMetaData meta, boolean subclasses, FetchConfiguration fetch)
Return a provider for all instances of the given candidate class, optionally including subclasses.protected ResultObjectProvider
ExpressionStoreQuery. executeQuery(StoreQuery.Executor ex, ClassMetaData base, ClassMetaData[] types, boolean subclasses, ExpressionFactory[] facts, QueryExpressions[] parsed, java.lang.Object[] params, StoreQuery.Range range)
Execute the given expression against the given candidate extent.protected java.lang.Number
ExpressionStoreQuery. executeUpdate(StoreQuery.Executor ex, ClassMetaData base, ClassMetaData[] types, boolean subclasses, ExpressionFactory[] facts, QueryExpressions[] parsed, java.lang.Object[] params)
Execute the given expression against the given candidate extent and updates the instances.protected java.lang.String[]
ExpressionStoreQuery. getDataStoreActions(ClassMetaData base, ClassMetaData[] types, boolean subclasses, ExpressionFactory[] facts, QueryExpressions[] parsed, java.lang.Object[] params, StoreQuery.Range range)
Return the commands that will be sent to the datastore in order to execute the query, typically in the database's native language.Seq
DelegatingStoreManager. getDataStoreIdSequence(ClassMetaData forClass)
Seq
StoreManager. getDataStoreIdSequence(ClassMetaData forClass)
Return a sequence that generates datastore identity values for the given class.java.lang.Class<?>
DelegatingStoreManager. getDataStoreIdType(ClassMetaData meta)
java.lang.Class<?>
StoreManager. getDataStoreIdType(ClassMetaData meta)
Return the class used by this StoreManager for datastore identity values.protected ExpressionFactory
ExpressionStoreQuery. getExpressionFactory(ClassMetaData type)
Return anExpressionFactory
to use to create an expression to be executed against an extent.Seq
Broker. getIdentitySequence(ClassMetaData meta)
Returns aSeq
for the datastore identity values of the specified persistent class, or null if the class' identity cannot be represented as a sequence.Seq
BrokerImpl. getIdentitySequence(ClassMetaData meta)
Seq
DelegatingBroker. getIdentitySequence(ClassMetaData meta)
protected ClassMetaData[]
ExpressionStoreQuery. getIndependentExpressionCandidates(ClassMetaData type, boolean subclasses)
Return the assignable types for the given metadata whose expression trees must be compiled independently.protected abstract java.lang.Object
AbstractPCResultObjectProvider. getObjectId(ClassMetaData meta)
Implement this method to extract the object id value from the current record of the input.static boolean
QueryImpl. isAccessPathDirty(Broker broker, ClassMetaData[] accessMetas)
StoreQuery.Executor
AbstractStoreQuery. newDataStoreExecutor(ClassMetaData meta, boolean subs)
StoreQuery.Executor
ExpressionStoreQuery. newDataStoreExecutor(ClassMetaData meta, boolean subs)
StoreQuery.Executor
MethodStoreQuery. newDataStoreExecutor(ClassMetaData meta, boolean subs)
StoreQuery.Executor
StoreQuery. newDataStoreExecutor(ClassMetaData meta, boolean subs)
Return an executor for datastore execution of this query.java.lang.Object
DelegatingStoreManager. newDataStoreId(java.lang.Object oidVal, ClassMetaData meta)
java.lang.Object
StoreManager. newDataStoreId(java.lang.Object oidVal, ClassMetaData meta)
Create a new unique datastore identity for the given type from the given oid value (presumably pk, stringified oid, or oid instance).StoreQuery.Executor
AbstractStoreQuery. newInMemoryExecutor(ClassMetaData meta, boolean subs)
StoreQuery.Executor
ExpressionStoreQuery. newInMemoryExecutor(ClassMetaData meta, boolean subs)
StoreQuery.Executor
MethodStoreQuery. newInMemoryExecutor(ClassMetaData meta, boolean subs)
StoreQuery.Executor
StoreQuery. newInMemoryExecutor(ClassMetaData meta, boolean subs)
Return an executor for in-memory execution of this query.protected StateManagerImpl
BrokerImpl. newStateManagerImpl(java.lang.Object oid, ClassMetaData meta)
Create a state manager for the given oid and metadata.java.lang.Object
DelegatingSeq. next(StoreContext ctx, ClassMetaData meta)
java.lang.Object
Seq. next(StoreContext ctx, ClassMetaData cls)
Return the next value in the sequence.java.lang.Object
TimeSeededSeq. next(StoreContext ctx, ClassMetaData meta)
java.lang.Object
UUIDHexSeq. next(StoreContext ctx, ClassMetaData meta)
java.lang.Object
UUIDStringSeq. next(StoreContext ctx, ClassMetaData meta)
java.lang.Object
UUIDType4HexSeq. next(StoreContext ctx, ClassMetaData meta)
java.lang.Object
UUIDType4StringSeq. next(StoreContext ctx, ClassMetaData meta)
Method parameters in org.apache.openjpa.kernel with type arguments of type ClassMetaData Modifier and Type Method Description static java.util.List<ClassMetaData>
Filters. addAccessPathMetaDatas(java.util.List<ClassMetaData> metas, ClassMetaData[] path)
Add the given access path metadatas to the full path list, making sure to maintain only base metadatas in the list.Constructors in org.apache.openjpa.kernel with parameters of type ClassMetaData Constructor Description DataStoreExecutor(ExpressionStoreQuery q, ClassMetaData meta, boolean subclasses, ExpressionParser parser, java.lang.Object parsed)
DetachedValueStateManager(PersistenceCapable pc, ClassMetaData meta, StoreContext ctx)
InMemoryExecutor(ExpressionStoreQuery q, ClassMetaData candidate, boolean subclasses, ExpressionParser parser, java.lang.Object parsed, InMemoryExpressionFactory factory)
PCDataImpl(java.lang.Object oid, ClassMetaData meta)
PCDataImpl(java.lang.Object oid, ClassMetaData meta, java.lang.String name)
Constructor.StateManagerImpl(java.lang.Object id, ClassMetaData meta, BrokerImpl broker)
Constructor; supply id, type metadata, and owning persistence manager. -
Uses of ClassMetaData in org.apache.openjpa.kernel.exps
Fields in org.apache.openjpa.kernel.exps declared as ClassMetaData Modifier and Type Field Description ClassMetaData[]
QueryExpressions. accessPath
ClassMetaData
Context. meta
Methods in org.apache.openjpa.kernel.exps that return ClassMetaData Modifier and Type Method Description protected ClassMetaData
AbstractExpressionBuilder. addAccessPath(ClassMetaData meta)
Register the specified metadata as being in the query's access path.protected ClassMetaData[]
AbstractExpressionBuilder. getAccessPath()
Return the recorded query access path.protected ClassMetaData
AbstractExpressionBuilder. getMetaData(java.lang.Class<?> c, boolean required)
Convenience method to get metadata for the given type.protected ClassMetaData
AbstractExpressionBuilder. getMetaData(java.lang.Class<?> c, boolean required, java.lang.ClassLoader loader)
Convenience method to get metadata for the given type.ClassMetaData
Val. getMetaData()
ClassMetaData
Value. getMetaData()
Return any associated persistent type.ClassMetaData
Context. getSchema(java.lang.String id)
ClassMetaData
Context. meta()
Methods in org.apache.openjpa.kernel.exps that return types with arguments of type ClassMetaData Modifier and Type Method Description java.util.Map<java.lang.String,ClassMetaData>
Context. getSchemas()
Methods in org.apache.openjpa.kernel.exps with parameters of type ClassMetaData Modifier and Type Method Description protected ClassMetaData
AbstractExpressionBuilder. addAccessPath(ClassMetaData meta)
Register the specified metadata as being in the query's access path.void
Context. addSchema(java.lang.String id, ClassMetaData meta)
protected abstract void
AbstractExpressionBuilder. addSchemaToContext(java.lang.String alias, ClassMetaData meta)
Register the schema alias to the current JPQL query context.QueryExpressions
ExpressionParser. eval(java.lang.Object parsed, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
Parse the given query string.Value[]
ExpressionParser. eval(java.lang.String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
Parse the given value clauses.boolean
InMemoryExpressionFactory. matches(QueryExpressions exps, ClassMetaData type, boolean subs, java.lang.Object candidate, StoreContext ctx, java.lang.Object[] params)
Tests whether the given candidate matches the given type and this expression.Subquery
ExpressionFactory. newSubquery(ClassMetaData candidate, boolean subs, java.lang.String alias)
Return a subquery.Subquery
InMemoryExpressionFactory. newSubquery(ClassMetaData candidate, boolean subs, java.lang.String alias)
void
Val. setMetaData(ClassMetaData meta)
void
Value. setMetaData(ClassMetaData meta)
Associate a persistent type with this value.Method parameters in org.apache.openjpa.kernel.exps with type arguments of type ClassMetaData Modifier and Type Method Description void
Context. setSchemas(java.util.Map<java.lang.String,ClassMetaData> schemas)
-
Uses of ClassMetaData in org.apache.openjpa.kernel.jpql
Methods in org.apache.openjpa.kernel.jpql that return ClassMetaData Modifier and Type Method Description protected ClassMetaData
JPQLExpressionBuilder. getCandidateMetaData(JPQLExpressionBuilder.JPQLNode node)
protected ClassMetaData
JPQLExpressionBuilder. resolveClassMetaData(JPQLExpressionBuilder.JPQLNode node)
Methods in org.apache.openjpa.kernel.jpql with parameters of type ClassMetaData Modifier and Type Method Description protected void
JPQLExpressionBuilder. addSchemaToContext(java.lang.String id, ClassMetaData meta)
QueryExpressions
JPQLParser. eval(java.lang.Object parsed, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
Value[]
JPQLParser. eval(java.lang.String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
-
Uses of ClassMetaData in org.apache.openjpa.meta
Fields in org.apache.openjpa.meta declared as ClassMetaData Modifier and Type Field Description protected ClassMetaData[]
MetaDataRepository. EMPTY_METAS
Methods in org.apache.openjpa.meta that return ClassMetaData Modifier and Type Method Description ClassMetaData
FieldMetaData. addEmbeddedMetaData()
ClassMetaData
FieldMetaData. addEmbeddedMetaData(int access)
ClassMetaData
ValueMetaData. addEmbeddedMetaData()
Add embedded metadata for this value.ClassMetaData
ValueMetaData. addEmbeddedMetaData(int access)
Add embedded metadata for this value with the given access typeClassMetaData
ValueMetaDataImpl. addEmbeddedMetaData()
ClassMetaData
ValueMetaDataImpl. addEmbeddedMetaData(int access)
ClassMetaData
MetaDataRepository. addMetaData(java.lang.Class<?> cls)
Create a new metadata, populate it with default information, add it to the repository, and return it.ClassMetaData
MetaDataRepository. addMetaData(java.lang.Class<?> cls, int access)
Create a new metadata, populate it with default information, add it to the repository, and return it.ClassMetaData
MetaDataRepository. addMetaData(java.lang.Class<?> cls, int access, boolean ignoreTransient)
Create a new metadata, populate it with default information, add it to the repository, and return it.ClassMetaData
MetaDataRepository. getCachedMetaData(java.lang.Class<?> cls)
Return the cached metadata for the given class, without any resolution.ClassMetaData
MetaDataRepository. getCachedMetaData(java.lang.String typeName)
This method returns the ClassMetaData whose described type name matches the typeName parameter.ClassMetaData
FieldMetaData. getDeclaredTypeMetaData()
ClassMetaData
ValueMetaData. getDeclaredTypeMetaData()
Return metadata for the value's class, if the type is persistent.ClassMetaData
ValueMetaDataImpl. getDeclaredTypeMetaData()
ClassMetaData
FieldMetaData. getDeclaringMetaData()
The declaring class.protected ClassMetaData
AbstractCFMetaDataFactory. getDefiningMetaData(QueryMetaData query, java.util.Map clsNames)
Return the metadata that defines the given query, if any.ClassMetaData
FieldMetaData. getDefiningMetaData()
The class that defines the metadata for this field.ClassMetaData
FieldMetaData. getEmbeddedMetaData()
ClassMetaData
ValueMetaData. getEmbeddedMetaData()
The embedded class metadata for the value.ClassMetaData
ValueMetaDataImpl. getEmbeddedMetaData()
ClassMetaData[]
MetaDataRepository. getImplementorMetaDatas(java.lang.Class<?> cls, java.lang.ClassLoader envLoader, boolean mustExist)
Return all least-derived metadatas with some mapped assignable type that implement the given class.ClassMetaData[]
ClassMetaData. getMappedPCSubclassMetaDatas()
Return all mapped subclasses.ClassMetaData
ClassMetaData. getMappedPCSuperclassMetaData()
Return the closest mapped superclass.ClassMetaData
MetaDataRepository. getMetaData(java.lang.Class<?> cls, java.lang.ClassLoader envLoader, boolean mustExist)
Return the metadata for the given class.ClassMetaData
MetaDataRepository. getMetaData(java.lang.Object oid, java.lang.ClassLoader envLoader, boolean mustExist)
Return the least-derived class metadata for the given application identity object.ClassMetaData
MetaDataRepository. getMetaData(java.lang.String alias, java.lang.ClassLoader envLoader, boolean mustExist)
Return the metadata for the given alias name.ClassMetaData[]
MetaDataRepository. getMetaDatas()
Return all the metadata instances currently in the repository.ClassMetaData[]
ClassMetaData. getPCSubclassMetaDatas()
Return the metadata for the known persistence capable subclasses of the described type, or empty array if none or if this is embedded metadata.ClassMetaData
ClassMetaData. getPCSuperclassMetaData()
The metadata for this class' superclass.ClassMetaData
FieldMetaData. getTypeMetaData()
ClassMetaData
ValueMetaData. getTypeMetaData()
The metadata for the value class, if the type is persistent.ClassMetaData
ValueMetaDataImpl. getTypeMetaData()
protected ClassMetaData
MetaDataRepository. newClassMetaData(java.lang.Class<?> type)
Create a new class metadata instance.protected ClassMetaData[]
MetaDataRepository. newClassMetaDataArray(int length)
Create a new array of the proper class metadata subclass.protected ClassMetaData
MetaDataRepository. newEmbeddedClassMetaData(ValueMetaData owner)
Create a new embedded class metadata instance.Methods in org.apache.openjpa.meta with parameters of type ClassMetaData Modifier and Type Method Description void
AbstractCFMetaDataFactory.Serializer. addMetaData(ClassMetaData meta)
Add a class meta data to the set to be serialized.static java.lang.Class<?>
JavaTypes. classForName(java.lang.String name, ClassMetaData context)
Check the given name against the same set of standard packages used when parsing metadata.static java.lang.Class<?>
JavaTypes. classForName(java.lang.String name, ClassMetaData context, java.lang.ClassLoader loader)
Check the given name against the same set of standard packages used when parsing metadata.static java.lang.Class<?>
JavaTypes. classForName(java.lang.String name, ClassMetaData context, java.lang.ClassLoader loader, boolean mustExist)
Check the given name against the same set of standard packages used when parsing metadata.protected void
AbstractCFMetaDataFactory. clearMapping(ClassMetaData meta)
Clear mapping information from the given metadata.int
ClassMetaData. compareTo(ClassMetaData other)
void
ClassMetaData. copy(ClassMetaData meta)
Copy the metadata from the given instance to this one.protected abstract java.io.File
AbstractCFMetaDataFactory. defaultSourceFile(ClassMetaData meta)
Return the default file for the given metadata.protected java.util.List<java.lang.String>
AbstractMetaDataDefaults. getFieldAccessNames(ClassMetaData meta)
Return the list of fields inmeta
that use field access, ornull
if a list of fields is unobtainable.FieldMetaData
FieldMetaData. getMappedByField(ClassMetaData meta, java.lang.String mappedBy)
java.lang.reflect.Member
MetaDataDefaults. getMemberByProperty(ClassMetaData meta, java.lang.String attribute, int access, boolean scanAnnotation)
Get the field or getter for the given attribute of the given class.java.lang.reflect.Member
NoneMetaDataFactory. getMemberByProperty(ClassMetaData meta, java.lang.String property, int access, boolean scan)
java.lang.Class<?>
MetaDataRepository. getMetaModel(ClassMetaData meta, boolean load)
Gets the meta class corresponding to the given persistent class.FieldMetaData
MetaDataRepository. getOrderByField(ClassMetaData meta, java.lang.String orderBy)
protected abstract java.util.List<java.lang.reflect.Member>
AbstractMetaDataDefaults. getPersistentMembers(ClassMetaData meta, boolean ignoreTransient)
protected java.util.List<java.lang.String>
AbstractMetaDataDefaults. getPropertyAccessNames(ClassMetaData meta)
Return the list of methods inmeta
that use property access, ornull
if a list of methods is unobtainable.protected java.io.File
AbstractCFMetaDataFactory. getSourceFile(ClassMetaData meta)
Return the current source file of the given metadata.protected abstract boolean
AbstractMetaDataDefaults. isDefaultPersistent(ClassMetaData meta, java.lang.reflect.Member member, java.lang.String name, boolean ignoreTransient)
Return true if the given member is persistent by default.static boolean
AccessCode. isEmpty(ClassMetaData meta)
static boolean
AccessCode. isField(ClassMetaData meta)
static boolean
AccessCode. isProperty(ClassMetaData meta)
static boolean
AccessCode. isUnknown(ClassMetaData meta)
static int
AccessCode. mergeFieldCode(ClassMetaData meta, FieldMetaData fmd, int fCode)
protected FieldMetaData
MetaDataRepository. newFieldMetaData(java.lang.String name, java.lang.Class<?> type, ClassMetaData owner)
Create a new field metadata instance.void
AbstractMetaDataDefaults. populate(ClassMetaData meta, int access)
void
AbstractMetaDataDefaults. populate(ClassMetaData meta, int access, boolean ignoreTransient)
void
MetaDataDefaults. populate(ClassMetaData meta, int access)
Populate the given metadata with default settings.void
MetaDataDefaults. populate(ClassMetaData meta, int access, boolean ignoreTransient)
Populate the given metadata with default settings.void
NoneMetaDataFactory. populate(ClassMetaData meta, int access)
void
NoneMetaDataFactory. populate(ClassMetaData meta, int access, boolean ignoreTransient)
protected void
MetaDataRepository. prepareMapping(ClassMetaData meta)
Prepare metadata for mapping resolution.boolean
AbstractCFMetaDataFactory.Serializer. removeMetaData(ClassMetaData meta)
Remove a class meta data from the set to be serialized.boolean
MetaDataRepository. removeMetaData(ClassMetaData meta)
Remove a metadata instance from the repository.void
MetaDataRepository. setMetaModel(ClassMetaData meta, java.lang.Class<?> m2)
Puts the meta class corresponding to the given persistent class.void
ClassMetaData. setPCSuperclassMetaData(ClassMetaData meta)
The metadata for this class' superclass.protected void
AbstractCFMetaDataFactory. setSourceFile(ClassMetaData meta, java.io.File sourceFile)
Set the current source file of the given metadata.boolean
AbstractCFMetaDataFactory. store(ClassMetaData[] metas, QueryMetaData[] queries, SequenceMetaData[] seqs, int mode, java.util.Map<java.io.File,java.lang.String> output)
boolean
AbstractMetaDataFactory. store(ClassMetaData[] metas, QueryMetaData[] queries, SequenceMetaData[] seqs, int mode, java.util.Map<java.io.File,java.lang.String> output)
boolean
DelegatingMetaDataFactory. store(ClassMetaData[] metas, QueryMetaData[] queries, SequenceMetaData[] seqs, int mode, java.util.Map output)
boolean
MetaDataFactory. store(ClassMetaData[] metas, QueryMetaData[] queries, SequenceMetaData[] seqs, int mode, java.util.Map<java.io.File,java.lang.String> output)
Store the given metadata.boolean
NoneMetaDataFactory. store(ClassMetaData[] metas, QueryMetaData[] queries, SequenceMetaData[] seqs, int mode, java.util.Map output)
Constructors in org.apache.openjpa.meta with parameters of type ClassMetaData Constructor Description FieldMetaData(java.lang.String name, java.lang.Class<?> type, ClassMetaData owner)
Constructor. -
Uses of ClassMetaData in org.apache.openjpa.persistence
Methods in org.apache.openjpa.persistence that return ClassMetaData Modifier and Type Method Description static ClassMetaData
JPAFacadeHelper. getMetaData(jakarta.persistence.EntityManagerFactory emf, java.lang.Class cls)
Returns theClassMetaData
associated with the persistent typecls
.static ClassMetaData
JPAFacadeHelper. getMetaData(jakarta.persistence.EntityManager em, java.lang.Class cls)
Returns theClassMetaData
associated with the persistent typecls
.static ClassMetaData
JPAFacadeHelper. getMetaData(java.lang.Object o)
Returns theClassMetaData
associated with the persistent objecto
.static ClassMetaData
OpenJPAPersistence. getMetaData(jakarta.persistence.EntityManagerFactory factory, java.lang.Class cls)
Deprecated.useJPAFacadeHelper
instead.static ClassMetaData
OpenJPAPersistence. getMetaData(jakarta.persistence.EntityManager em, java.lang.Class cls)
Deprecated.useJPAFacadeHelper
instead.static ClassMetaData
OpenJPAPersistence. getMetaData(java.lang.Object o)
Deprecated.useJPAFacadeHelper
instead.Methods in org.apache.openjpa.persistence that return types with arguments of type ClassMetaData Modifier and Type Method Description java.util.Map<java.lang.String,ClassMetaData>
AnnotationPersistenceMetaDataSerializer. getClassMetaData()
Returns the stored ClassMetaDatajava.util.Map<java.lang.String,ClassMetaData>
XMLPersistenceMetaDataSerializer. getClassMetaData()
Returns the stored ClassMetaDataMethods in org.apache.openjpa.persistence with parameters of type ClassMetaData Modifier and Type Method Description protected AnnotationBuilder
AnnotationPersistenceMetaDataSerializer. addAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annType, ClassMetaData meta)
Creates an an annotation builder for the specified class metadata and adds it to list of builders.protected void
AnnotationPersistenceMetaDataSerializer. addAnnotation(AnnotationBuilder ab, ClassMetaData meta)
Add an annotation builder to list of builders for the specified class metadata.protected void
AnnotationPersistenceMetaDataSerializer. addClassMappingAnnotations(ClassMetaData mapping)
Add mapping attributes for the given class.protected void
XMLPersistenceMetaDataSerializer. addClassMappingAttributes(ClassMetaData mapping)
Add mapping attributes for the given class.void
AnnotationPersistenceMetaDataSerializer. addMetaData(ClassMetaData meta)
Add a class meta data to the set to be serialized.void
XMLPersistenceMetaDataSerializer. addMetaData(ClassMetaData meta)
Add a class meta data to the set to be serialized.protected java.io.File
PersistenceMetaDataFactory. defaultSourceFile(ClassMetaData meta)
protected void
XMLPersistenceMetaDataParser. endClassMapping(ClassMetaData mapping)
Implement to finalize class mapping.protected java.util.List<java.lang.String>
PersistenceMetaDataDefaults. getFieldAccessNames(ClassMetaData meta)
java.lang.reflect.Member
PersistenceMetaDataDefaults. getMemberByProperty(ClassMetaData meta, java.lang.String property, int access, boolean applyDefaultRule)
Gets either the instance field or the getter method depending upon the access style of the given meta-data.java.util.List<java.lang.reflect.Member>
PersistenceMetaDataDefaults. getPersistentMembers(ClassMetaData meta, boolean ignoreTransient)
Gets the members that are backing members for attributes being persisted.protected java.util.List<java.lang.String>
PersistenceMetaDataDefaults. getPropertyAccessNames(ClassMetaData meta)
protected boolean
AnnotationPersistenceMetaDataParser. handleUnknownClassAnnotation(ClassMetaData meta, java.lang.annotation.Annotation anno)
Allow subclasses to handle unknown annotations.protected boolean
PersistenceMetaDataDefaults. isDefaultPersistent(ClassMetaData meta, java.lang.reflect.Member member, java.lang.String name)
protected boolean
PersistenceMetaDataDefaults. isDefaultPersistent(ClassMetaData meta, java.lang.reflect.Member member, java.lang.String name, boolean ignoreTransient)
protected boolean
XMLPersistenceMetaDataParser. isDuplicateClass(ClassMetaData meta)
Determines whether the ClassMetaData has been resolved more than once.protected boolean
AnnotationPersistenceMetaDataSerializer. isMappingMode(ClassMetaData meta)
Convenience method for interpretingAnnotationPersistenceMetaDataSerializer.getMode()
.protected boolean
XMLPersistenceMetaDataSerializer. isMappingMode(ClassMetaData meta)
Convenience method for interpretingXMLPersistenceMetaDataSerializer.getMode()
.protected void
AnnotationPersistenceMetaDataParser. parseClassMappingAnnotations(ClassMetaData meta)
Parse class mapping annotations.void
PersistenceMetaDataDefaults. populate(ClassMetaData meta, int access)
Populates the given class metadata.void
PersistenceMetaDataDefaults. populate(ClassMetaData meta, int access, boolean ignoreTransient)
Populates the given class metadata.boolean
AnnotationPersistenceMetaDataSerializer. removeMetaData(ClassMetaData meta)
Remove a metadata from the set to be serialized.boolean
XMLPersistenceMetaDataSerializer. removeMetaData(ClassMetaData meta)
Remove a metadata from the set to be serialized.protected void
AnnotationPersistenceMetaDataSerializer. serializeClass(ClassMetaData meta)
Serialize class metadata.protected void
XMLPersistenceMetaDataSerializer. serializeClass(ClassMetaData meta, boolean access)
Serialize class metadata.protected void
AnnotationPersistenceMetaDataSerializer. serializeClassMappingContent(ClassMetaData mapping)
Serialize class mapping content.protected void
XMLPersistenceMetaDataSerializer. serializeClassMappingContent(ClassMetaData mapping)
Serialize class mapping content.protected void
AnnotationPersistenceMetaDataSerializer. serializeInheritanceContent(ClassMetaData mapping)
Serialize inheritance content.protected void
XMLPersistenceMetaDataSerializer. serializeInheritanceContent(ClassMetaData mapping)
Serialize inheritance content.protected void
AnnotationPersistenceMetaDataSerializer. serializeQueryMappings(ClassMetaData meta)
Serialize query mappings.protected void
XMLPersistenceMetaDataSerializer. serializeQueryMappings(ClassMetaData meta)
Serialize query mappings.protected void
XMLPersistenceMetaDataParser. startClassMapping(ClassMetaData mapping, boolean mappedSuper, org.xml.sax.Attributes attrs)
Implement to add mapping attributes to class.static java.lang.Object
JPAFacadeHelper. toOpenJPAObjectId(ClassMetaData meta, java.lang.Object oid)
Translate from a Persistence identity object to a OpenJPA one.static java.lang.Object
OpenJPAPersistence. toOpenJPAObjectId(ClassMetaData meta, java.lang.Object oid)
Deprecated.useJPAFacadeHelper
instead.static java.lang.Object[]
JPAFacadeHelper. toOpenJPAObjectIds(ClassMetaData meta, java.lang.Object... oids)
Return an array of OpenJPA oids for the given native oid array.static java.util.Collection<java.lang.Object>
JPAFacadeHelper. toOpenJPAObjectIds(ClassMetaData meta, java.util.Collection<java.lang.Object> oids)
Return a collection of OpenJPA oids for the given native oid collection.static java.lang.Object[]
OpenJPAPersistence. toOpenJPAObjectIds(ClassMetaData meta, java.lang.Object... oids)
Deprecated.useJPAFacadeHelper
instead.static java.util.Collection
OpenJPAPersistence. toOpenJPAObjectIds(ClassMetaData meta, java.util.Collection oids)
Deprecated.useJPAFacadeHelper
instead.Constructors in org.apache.openjpa.persistence with parameters of type ClassMetaData Constructor Description GeneratorImpl(Seq seq, java.lang.String name, StoreContext ctx, ClassMetaData meta)
Constructor; supply delegate. -
Uses of ClassMetaData in org.apache.openjpa.persistence.criteria
Methods in org.apache.openjpa.persistence.criteria with parameters of type ClassMetaData Modifier and Type Method Description QueryExpressions
CriteriaBuilderImpl. eval(java.lang.Object parsed, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
Value[]
CriteriaBuilderImpl. eval(java.lang.String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
-
Uses of ClassMetaData in org.apache.openjpa.persistence.jdbc
Methods in org.apache.openjpa.persistence.jdbc with parameters of type ClassMetaData Modifier and Type Method Description protected void
XMLPersistenceMappingParser. endClassMapping(ClassMetaData meta)
protected void
AnnotationPersistenceMappingParser. parseClassMappingAnnotations(ClassMetaData meta)
protected void
AnnotationPersistenceMappingSerializer. serializeClass(ClassMetaData meta)
protected void
XMLPersistenceMappingSerializer. serializeClass(ClassMetaData meta, boolean access)
protected void
AnnotationPersistenceMappingSerializer. serializeClassMappingContent(ClassMetaData mapping)
protected void
XMLPersistenceMappingSerializer. serializeClassMappingContent(ClassMetaData mapping)
protected void
AnnotationPersistenceMappingSerializer. serializeInheritanceContent(ClassMetaData mapping)
protected void
XMLPersistenceMappingSerializer. serializeInheritanceContent(ClassMetaData mapping)
protected void
AnnotationPersistenceMappingSerializer. serializeQueryMappings(ClassMetaData meta)
protected void
XMLPersistenceMappingSerializer. serializeQueryMappings(ClassMetaData meta)
protected void
XMLPersistenceMappingParser. startClassMapping(ClassMetaData meta, boolean mappedSuper, org.xml.sax.Attributes attrs)
-
Uses of ClassMetaData in org.apache.openjpa.persistence.jest
Methods in org.apache.openjpa.persistence.jest that return ClassMetaData Modifier and Type Method Description ClassMetaData
JESTContext. resolve(java.lang.String alias)
ClassMetaData
JPAServletContext. resolve(java.lang.String alias)
Resolve the given alias to meta-data of the persistent type.Methods in org.apache.openjpa.persistence.jest with parameters of type ClassMetaData Modifier and Type Method Description static java.util.List<jakarta.persistence.metamodel.Attribute<?,?>>
MetamodelHelper. getAttributesInOrder(ClassMetaData meta, jakarta.persistence.metamodel.Metamodel model)
-
Uses of ClassMetaData in org.apache.openjpa.persistence.meta
Fields in org.apache.openjpa.persistence.meta declared as ClassMetaData Modifier and Type Field Description ClassMetaData
AbstractManagedType. meta
Methods in org.apache.openjpa.persistence.meta with parameters of type ClassMetaData Modifier and Type Method Description static jakarta.persistence.metamodel.Type.PersistenceType
MetamodelImpl. getPersistenceType(ClassMetaData meta)
Constructors in org.apache.openjpa.persistence.meta with parameters of type ClassMetaData Constructor Description AbstractManagedType(ClassMetaData meta, MetamodelImpl model)
Construct a managed type.Embeddable(ClassMetaData meta, MetamodelImpl model)
Entity(ClassMetaData meta, MetamodelImpl model)
Identifiable(ClassMetaData meta, MetamodelImpl model)
MappedSuper(ClassMetaData meta, MetamodelImpl model)
-
Uses of ClassMetaData in org.apache.openjpa.util
Methods in org.apache.openjpa.util with parameters of type ClassMetaData Modifier and Type Method Description static java.lang.Object
ApplicationIds. copy(java.lang.Object oid, ClassMetaData meta)
Copy the given oid value.static java.lang.Object
ApplicationIds. create(PersistenceCapable pc, ClassMetaData meta)
Generate an application id based on the current primary key field state of the given instance.static java.lang.Object
ApplicationIds. fromPKValues(java.lang.Object[] pks, ClassMetaData meta)
Return a new object id constructed from the given primary key values.static java.lang.Object
ImplHelper. generateIdentityValue(StoreContext ctx, ClassMetaData meta, int typeCode)
Generate a value for the given metadata, or return null.static java.lang.Object
ApplicationIds. getKey(java.lang.Object id, ClassMetaData meta)
Return the key from the given id.static boolean
ApplicationIds. isIdSet(java.lang.Object id, ClassMetaData meta, java.lang.String mappedByIdFieldName)
Check if object id is set or not.static java.lang.Object[]
ApplicationIds. toPKValues(java.lang.Object oid, ClassMetaData meta)
Return the primary key values for the given object id.static java.lang.Object
ApplicationIds. wrap(ClassMetaData meta, java.lang.Object oid)
Wraps the given object for the given type into a OpenJPA specific application identity object wrapper instance (i.e. -
Uses of ClassMetaData in org.apache.openjpa.validation
Methods in org.apache.openjpa.validation with parameters of type ClassMetaData Modifier and Type Method Description java.lang.Exception[]
ValidatingLifecycleEventManager. fireEvent(java.lang.Object source, java.lang.Object related, ClassMetaData meta, int type)
java.lang.Exception[]
ValidatingLifecycleEventManager. fireEvent(java.lang.Object source, ClassMetaData meta, int type)
boolean
ValidatingLifecycleEventManager. hasDeleteListeners(java.lang.Object source, ClassMetaData meta)
boolean
ValidatingLifecycleEventManager. hasPersistListeners(java.lang.Object source, ClassMetaData meta)
boolean
ValidatingLifecycleEventManager. hasUpdateListeners(java.lang.Object source, ClassMetaData meta)
boolean
ValidatingLifecycleEventManager. isActive(ClassMetaData meta)
Whether this LifeCycleEventManager has had at least one listener or callback registered. -
Uses of ClassMetaData in org.apache.openjpa.xmlstore
Methods in org.apache.openjpa.xmlstore that return ClassMetaData Modifier and Type Method Description ClassMetaData
ObjectData. getMetaData()
Get the metadata associated with the type of persistent object for which this data applies.Methods in org.apache.openjpa.xmlstore with parameters of type ClassMetaData Modifier and Type Method Description ResultObjectProvider
XMLStoreManager. executeExtent(ClassMetaData meta, boolean subclasses, FetchConfiguration fetch)
ObjectData[]
XMLStore. getData(ClassMetaData meta)
Return all datas for the base class of the given type.ObjectData
XMLStore. getData(ClassMetaData meta, java.lang.Object oid)
Return the data for the given oid, or null if it does not exist.java.util.Collection
XMLFileHandler. load(ClassMetaData meta)
Loads all instances ofmeta
into a list of objects.void
XMLFileHandler. store(ClassMetaData meta, java.util.Collection datas)
Stores all instances indatas
into the appropriate file, as dictated bymeta
.Constructors in org.apache.openjpa.xmlstore with parameters of type ClassMetaData Constructor Description ObjectData(java.lang.Object oid, ClassMetaData meta)
Create the object without underlying data.
-