Package | Description |
---|---|
org.apache.openjpa.abstractstore |
OpenJPA Abstract StoreManager Implementation
This package provides some infrastructure classes to help in the creation
of OpenJPA drivers for new non-relational data stores.
|
org.apache.openjpa.datacache |
OpenJPA Data Cache
OpenJPA's data and query caching frameworks.
|
org.apache.openjpa.jdbc.conf |
OpenJPA-JDBC Configuration
This package provides JDBC configuration interfaces.
|
org.apache.openjpa.jdbc.kernel |
OpenJPA-JDBC Runtime Kernel
Runtime services for the JDBC OpenJPA implementation.
|
org.apache.openjpa.jdbc.kernel.exps |
OpenJPA-JDBC Expression Tree
|
org.apache.openjpa.jdbc.meta.strats |
OpenJPA-JDBC ORM Strategies
Library of mapping strategies.
|
org.apache.openjpa.jdbc.sql |
OpenJPA-JDBC SQL Abstraction
Utilities for generating SQL.
|
org.apache.openjpa.kernel |
OpenJPA Runtime Kernel
This package provides a common OpenJPA runtime environment that can be
adapted for use with various data store mechanisms.
|
org.apache.openjpa.kernel.exps |
OpenJPA Expression Tree
|
org.apache.openjpa.meta |
OpenJPA Metadata
This package provides an extendable framework for parsing and caching
persistence metadata.
|
org.apache.openjpa.persistence |
OpenJPA JPA
This package provides an JPA facade to OpenJPA.
|
org.apache.openjpa.slice |
Extended OpenJPA Interfaces for distributed databases.
|
org.apache.openjpa.util |
OpenJPA Utilities
This package provides utilities to facilitate the handling of second
class objects and OpenJPA object ids.
|
Modifier and Type | Field and Description |
---|---|
protected StoreContext |
AbstractStoreManager.ctx |
Modifier and Type | Method and Description |
---|---|
StoreContext |
AbstractStoreManager.getContext()
Returns the
StoreContext that this store manager is
associated with. |
Modifier and Type | Method and Description |
---|---|
void |
AbstractStoreManager.setContext(StoreContext ctx) |
Modifier and Type | Method and Description |
---|---|
void |
DataCacheStoreManager.setContext(StoreContext ctx) |
protected Object |
DataCachePCDataImpl.toData(FieldMetaData fmd,
Object val,
StoreContext ctx) |
protected Object |
DataCachePCDataImpl.toNestedData(ValueMetaData vmd,
Object val,
StoreContext ctx) |
Constructor and Description |
---|
CachedList(QueryResult res,
boolean proj,
StoreContext ctx,
FetchConfiguration fc) |
Modifier and Type | Method and Description |
---|---|
DataSource |
JDBCConfiguration.getDataSource(StoreContext ctx)
Return the primary data source to use.
|
DataSource |
JDBCConfigurationImpl.getDataSource(StoreContext ctx) |
DataSource |
JDBCConfiguration.getDataSource2(StoreContext ctx)
Return the non-enlisted data source to use.
|
DataSource |
JDBCConfigurationImpl.getDataSource2(StoreContext ctx) |
Modifier and Type | Method and Description |
---|---|
StoreContext |
JDBCStoreManager.getContext() |
StoreContext |
JDBCStore.getContext()
Current persistence context.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractJDBCSeq.allocate(int additional,
StoreContext ctx,
ClassMetaData meta) |
Object |
AbstractJDBCSeq.current(StoreContext ctx,
ClassMetaData meta) |
Object |
AbstractJDBCSeq.next(StoreContext ctx,
ClassMetaData meta) |
void |
JDBCFetchConfigurationImpl.setContext(StoreContext ctx) |
void |
JDBCStoreManager.setContext(StoreContext ctx) |
void |
PessimisticLockManager.setContext(StoreContext ctx) |
void |
JDBCStoreManager.setContext(StoreContext ctx,
JDBCConfiguration conf) |
Modifier and Type | Method and Description |
---|---|
protected Object |
PCPath.eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params) |
Object |
SQLEmbed.evaluate(Object target,
Class targetClass,
Object[] args,
Class[] argClasses,
Object candidate,
StoreContext ctx) |
Object |
GetColumn.evaluate(Object target,
Class targetClass,
Object[] args,
Class[] argClasses,
Object candidate,
StoreContext ctx) |
Modifier and Type | Method and Description |
---|---|
static OpenJPAStateManager |
RelationStrategies.getStateManager(Object obj,
StoreContext ctx)
Return the state manager for the given instance, using a detached
state manager if the instnace is not managed.
|
protected boolean |
MapTableFieldStrategy.populateKey(Row row,
OpenJPAStateManager valsm,
Object obj,
StoreContext ctx,
RowManager rm,
JDBCStore store) |
Modifier and Type | Method and Description |
---|---|
protected Result |
SelectImpl.execute(StoreContext ctx,
JDBCStore store,
JDBCFetchConfiguration fetch,
int lockLevel)
Execute this select in the context of the given store manager.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Broker
The broker is the primary interface into the OpenJPA runtime.
|
Modifier and Type | Class and Description |
---|---|
class |
BrokerImpl
Concrete
Broker . |
class |
DelegatingBroker
Delegating broker that can also perform exception translation
for use in facades.
|
class |
FinalizingBrokerImpl
Subtype of
BrokerImpl that automatically closes itself during
finalization. |
Modifier and Type | Field and Description |
---|---|
protected StoreContext |
AbstractLockManager.ctx
The context against which this LockManager is operating.
|
protected StoreContext |
AbstractPCResultObjectProvider.ctx
The
StoreContext that this result object
provider will load objects into. |
StoreContext |
FetchConfigurationImpl.ConfigurationState.ctx |
Modifier and Type | Method and Description |
---|---|
StoreContext |
ObjectIdStateManager.getContext() |
StoreContext |
AbstractLockManager.getContext() |
StoreContext |
FetchConfiguration.getContext()
Return the context associated with this configuration;
may be null if it has not been set or this object has been serialized.
|
StoreContext |
DelegatingFetchConfiguration.getContext() |
StoreContext |
AbstractPCResultObjectProvider.getContext()
Return the context this provider was constructed with.
|
StoreContext |
DetachedStateManager.getContext() |
StoreContext |
StateManagerImpl.getContext() |
StoreContext |
DetachedValueStateManager.getContext() |
StoreContext |
FetchConfigurationImpl.getContext() |
StoreContext |
OpenJPAStateManager.getContext()
Return the managing context.
|
StoreContext |
DelegatingQuery.getStoreContext() |
StoreContext |
QueryContext.getStoreContext()
The persistence context for the query.
|
StoreContext |
QueryImpl.getStoreContext() |
Modifier and Type | Method and Description |
---|---|
void |
UUIDHexSeq.allocate(int additional,
StoreContext ctx,
ClassMetaData meta) |
void |
UUIDType4HexSeq.allocate(int additional,
StoreContext ctx,
ClassMetaData meta) |
void |
TimeSeededSeq.allocate(int additional,
StoreContext ctx,
ClassMetaData meta) |
void |
DelegatingSeq.allocate(int additional,
StoreContext ctx,
ClassMetaData meta) |
void |
Seq.allocate(int additional,
StoreContext ctx,
ClassMetaData cls)
Allocate additional values efficiently.
|
void |
UUIDType4StringSeq.allocate(int additional,
StoreContext ctx,
ClassMetaData meta) |
void |
UUIDStringSeq.allocate(int additional,
StoreContext ctx,
ClassMetaData meta) |
protected void |
InverseManager.createInverseRelations(StoreContext ctx,
Object fromRef,
Object toRef,
FieldMetaData fmd,
FieldMetaData[] inverses)
Create the inverse relations for all the given inverse fields.
|
Object |
UUIDHexSeq.current(StoreContext ctx,
ClassMetaData meta) |
Object |
UUIDType4HexSeq.current(StoreContext ctx,
ClassMetaData meta) |
Object |
TimeSeededSeq.current(StoreContext ctx,
ClassMetaData meta) |
Object |
DelegatingSeq.current(StoreContext ctx,
ClassMetaData meta) |
Object |
Seq.current(StoreContext ctx,
ClassMetaData cls)
Return the current value of the sequence, or null if not available.
|
Object |
UUIDType4StringSeq.current(StoreContext ctx,
ClassMetaData meta) |
Object |
UUIDStringSeq.current(StoreContext ctx,
ClassMetaData meta) |
Object |
UUIDHexSeq.next(StoreContext ctx,
ClassMetaData meta) |
Object |
UUIDType4HexSeq.next(StoreContext ctx,
ClassMetaData meta) |
Object |
TimeSeededSeq.next(StoreContext ctx,
ClassMetaData meta) |
Object |
DelegatingSeq.next(StoreContext ctx,
ClassMetaData meta) |
Object |
Seq.next(StoreContext ctx,
ClassMetaData cls)
Return the next value in the sequence.
|
Object |
UUIDType4StringSeq.next(StoreContext ctx,
ClassMetaData meta) |
Object |
UUIDStringSeq.next(StoreContext ctx,
ClassMetaData meta) |
void |
AbstractLockManager.setContext(StoreContext ctx) |
void |
FetchConfiguration.setContext(StoreContext ctx)
Called automatically by the system to associate the fetch configuration
with a context before use.
|
void |
StoreManager.setContext(StoreContext ctx)
Set a reference to the corresponding context.
|
void |
DelegatingFetchConfiguration.setContext(StoreContext ctx) |
void |
LockManager.setContext(StoreContext ctx)
Set the context this lock manager is associated with.
|
void |
DelegatingStoreManager.setContext(StoreContext ctx) |
void |
FetchConfigurationImpl.setContext(StoreContext ctx) |
protected Object |
AbstractPCData.toData(FieldMetaData fmd,
Object val,
StoreContext ctx)
Transform the given field value to a data value for caching.
|
protected Object |
AbstractPCData.toEmbeddedData(Object val,
StoreContext ctx)
Return the value to cache for the given embedded PC.
|
protected Object |
AbstractPCData.toNestedData(ValueMetaData vmd,
Object val,
StoreContext ctx)
Transform the given nested value to a cachable value.
|
protected Object |
AbstractPCData.toRelationData(Object val,
StoreContext ctx)
Return the value to cache for the given object.
|
Constructor and Description |
---|
AbstractPCResultObjectProvider(StoreContext ctx)
Create a new provider for loading PC objects from the input
into
ctx . |
DetachedValueStateManager(Object pc,
StoreContext ctx) |
DetachedValueStateManager(PersistenceCapable pc,
ClassMetaData meta,
StoreContext ctx) |
Modifier and Type | Method and Description |
---|---|
protected Collection |
Val.eval(Collection candidates,
Object orig,
StoreContext ctx,
Object[] params)
Return a list of values resulting from evaluating each given
candidate.
|
protected boolean |
Exp.eval(Collection candidates,
StoreContext ctx,
Object[] params)
Evaluate the expression for the given group.
|
protected Object |
CandidatePath.eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params) |
protected Object |
SimpleCase.eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params) |
protected boolean |
Exp.eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Evaluate the expression for the given context candidate and original
candidate.
|
protected Object |
NullIf.eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params) |
protected abstract Object |
Val.eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Return this value for the given candidate.
|
protected Object |
Coalesce.eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params) |
protected Object |
SimpleCase.eval(Object candidate,
StoreContext ctx,
Object[] params) |
protected Object |
NullIf.eval(Object candidate,
StoreContext ctx,
Object[] params) |
protected Object |
Coalesce.eval(Object candidate,
StoreContext ctx,
Object[] params) |
Object |
AggregateListener.evaluate(Collection args,
Class[] argClasses,
Collection candidates,
StoreContext ctx)
Return the value of this aggregate.
|
Object |
Val.evaluate(Collection candidates,
Object orig,
StoreContext ctx,
Object[] params)
Return this value as an aggregate projection on the given group
of candidates.
|
boolean |
Exp.evaluate(Collection candidates,
StoreContext ctx,
Object[] params)
Evaluate the expression for the given candidate group.
|
Object |
StringContains.evaluate(Object target,
Class targetClass,
Object[] args,
Class[] argClasses,
Object candidate,
StoreContext ctx)
Deprecated.
|
Object |
FilterListener.evaluate(Object target,
Class targetClass,
Object[] args,
Class[] argClasses,
Object candidate,
StoreContext ctx)
Evaluate the given expression.
|
Object |
WildcardMatch.evaluate(Object target,
Class targetClass,
Object[] args,
Class[] argClasses,
Object candidate,
StoreContext ctx)
Deprecated.
|
boolean |
Exp.evaluate(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Evaluate the expression for the given candidate.
|
Object |
Val.evaluate(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Return this value as a projection on the given candidate.
|
List |
InMemoryExpressionFactory.group(QueryExpressions exps,
List matches,
StoreContext ctx,
Object[] params)
Group the list of matches into a list of lists.
|
protected boolean |
InMemoryExpressionFactory.matches(Exp exp,
Object candidate,
StoreContext ctx,
Object[] params,
int i)
Recursive method to evaluate the expression for all possible
combinations of unbound variables.
|
boolean |
InMemoryExpressionFactory.matches(QueryExpressions exps,
ClassMetaData type,
boolean subs,
Object candidate,
StoreContext ctx,
Object[] params)
Tests whether the given candidate matches the given type and this
expression.
|
boolean |
InMemoryExpressionFactory.matches(QueryExpressions exps,
Collection group,
StoreContext ctx,
Object[] params)
Return true if the given group matches the having expression.
|
List |
InMemoryExpressionFactory.order(QueryExpressions exps,
List matches,
StoreContext ctx,
Object[] params)
Order the given list of matches on the given value.
|
List |
InMemoryExpressionFactory.project(QueryExpressions exps,
List matches,
StoreContext ctx,
Object[] params)
Create the projections for the given results.
|
Modifier and Type | Method and Description |
---|---|
Object |
FieldMetaData.getExternalValue(Object val,
StoreContext ctx)
Convert the given field value to its external value through the
provided externalizer, or return the value as-is if no externalizer.
|
Object |
FieldMetaData.getFieldValue(Object val,
StoreContext ctx)
Return the result of passing the given external value through the
factory to get the field value.
|
Constructor and Description |
---|
GeneratorImpl(Seq seq,
String name,
StoreContext ctx,
ClassMetaData meta)
Constructor; supply delegate.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DistributedBroker
Extension to Broker to allow access to
virtual data store . |
Modifier and Type | Class and Description |
---|---|
class |
DistributedBrokerImpl
A specialized Broker to associate slice identifiers with the StateManagers as
they are persisted in a cascade.
|
Modifier and Type | Method and Description |
---|---|
static Object |
Serialization.deserialize(byte[] bytes,
StoreContext ctx)
Deserialize an object value from the given bytes.
|
static Object |
Serialization.deserialize(InputStream in,
StoreContext ctx)
Deserialize an object value from the given stream.
|
static Object |
ImplHelper.generateFieldValue(StoreContext ctx,
FieldMetaData fmd)
Generate a value for the given metadata, or return null.
|
static Object |
ImplHelper.generateIdentityValue(StoreContext ctx,
ClassMetaData meta,
int typeCode)
Generate a value for the given metadata, or return null.
|
static byte[] |
Serialization.serialize(Object val,
StoreContext ctx)
Serialize a value that might contain persistent objects.
|
Constructor and Description |
---|
PersistentObjectInputStream(InputStream delegate,
StoreContext ctx)
Constructor; supply source stream and broker to
use for persistent object lookups.
|
PersistentObjectOutputStream(OutputStream delegate,
StoreContext ctx)
Constructor; supply underlying stream.
|
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.