|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ObjectContext | |
---|---|
org.apache.cayenne | Contains persistence APIs directly accessible by users. |
org.apache.cayenne.access | Contains classes that make up Cayenne ORM stack. |
org.apache.cayenne.configuration | |
org.apache.cayenne.configuration.rop.client | |
org.apache.cayenne.configuration.server | |
org.apache.cayenne.graph | Contains generic graph management tools used in Cayenne. |
org.apache.cayenne.remote | Contains classes an interfaces related to Cayenne remote object persistence features. |
org.apache.cayenne.util | General utility classes. |
org.apache.cayenne.xml |
Uses of ObjectContext in org.apache.cayenne |
---|
Classes in org.apache.cayenne that implement ObjectContext | |
---|---|
class |
BaseContext
A common base superclass for Cayenne ObjectContext implementors. |
class |
CayenneContext
A default generic implementation of ObjectContext suitable for accessing Cayenne from either an ORM or a client tiers. |
Fields in org.apache.cayenne declared as ObjectContext | |
---|---|
protected ObjectContext |
PersistentObject.objectContext
|
Fields in org.apache.cayenne with type parameters of type ObjectContext | |
---|---|
protected static java.lang.ThreadLocal<ObjectContext> |
BaseContext.threadObjectContext
A holder of a ObjectContext bound to the current thread. |
Methods in org.apache.cayenne that return ObjectContext | |
---|---|
ObjectContext |
CayenneContext.createChildContext()
Creates and returns a new child ObjectContext. |
ObjectContext |
ObjectContext.createChildContext()
Creates and returns a new child ObjectContext. |
ObjectContext |
Persistent.getObjectContext()
|
ObjectContext |
PersistentObject.getObjectContext()
|
static ObjectContext |
BaseContext.getThreadObjectContext()
Returns the ObjectContext bound to the current thread. |
Methods in org.apache.cayenne with parameters of type ObjectContext | ||
---|---|---|
static void |
BaseContext.bindThreadObjectContext(ObjectContext context)
Binds a ObjectContext to the current thread. |
|
static
|
Cayenne.objectForPK(ObjectContext context,
java.lang.Class<T> dataObjectClass,
int pk)
Returns an object matching an int primary key. |
|
static
|
DataObjectUtils.objectForPK(ObjectContext context,
java.lang.Class<T> dataObjectClass,
int pk)
Deprecated. Returns an object matching an int primary key. |
|
static
|
Cayenne.objectForPK(ObjectContext context,
java.lang.Class<T> dataObjectClass,
java.util.Map<java.lang.String,?> pk)
Returns an object matching a primary key. |
|
static
|
DataObjectUtils.objectForPK(ObjectContext context,
java.lang.Class<T> dataObjectClass,
java.util.Map<java.lang.String,?> pk)
Deprecated. Returns an object matching a primary key. |
|
static
|
Cayenne.objectForPK(ObjectContext context,
java.lang.Class<T> dataObjectClass,
java.lang.Object pk)
Returns an object matching an Object primary key. |
|
static
|
DataObjectUtils.objectForPK(ObjectContext context,
java.lang.Class<T> dataObjectClass,
java.lang.Object pk)
Deprecated. Returns an object matching an Object primary key. |
|
static java.lang.Object |
Cayenne.objectForPK(ObjectContext context,
ObjectId id)
Returns an object matching ObjectId. |
|
static java.lang.Object |
DataObjectUtils.objectForPK(ObjectContext context,
ObjectId id)
Deprecated. Returns an object matching ObjectId. |
|
static java.lang.Object |
Cayenne.objectForPK(ObjectContext context,
java.lang.String objEntityName,
int pk)
Returns an object matching an int primary key. |
|
static java.lang.Object |
DataObjectUtils.objectForPK(ObjectContext context,
java.lang.String objEntityName,
int pk)
Deprecated. Returns an object matching an int primary key. |
|
static java.lang.Object |
Cayenne.objectForPK(ObjectContext context,
java.lang.String objEntityName,
java.util.Map<java.lang.String,?> pk)
Returns an object matching a primary key. |
|
static java.lang.Object |
DataObjectUtils.objectForPK(ObjectContext context,
java.lang.String objEntityName,
java.util.Map<java.lang.String,?> pk)
Deprecated. Returns an object matching a primary key. |
|
static java.lang.Object |
Cayenne.objectForPK(ObjectContext context,
java.lang.String objEntityName,
java.lang.Object pk)
Returns an object matching an Object primary key. |
|
static java.lang.Object |
DataObjectUtils.objectForPK(ObjectContext context,
java.lang.String objEntityName,
java.lang.Object pk)
Deprecated. Returns an object matching an Object primary key. |
|
static java.lang.Object |
Cayenne.objectForQuery(ObjectContext context,
Query query)
Returns an object or a DataRow that is a result of a given query. |
|
static java.lang.Object |
DataObjectUtils.objectForQuery(ObjectContext context,
Query query)
Deprecated. Returns an object or a DataRow that is a result of a given query. |
|
protected abstract GraphDiff |
BaseContext.onContextFlush(ObjectContext originatingContext,
GraphDiff changes,
boolean cascade)
|
|
protected GraphDiff |
CayenneContext.onContextFlush(ObjectContext originatingContext,
GraphDiff changes,
boolean cascade)
|
|
QueryResponse |
CayenneContext.onQuery(ObjectContext context,
Query query)
|
|
QueryResponse |
DataChannel.onQuery(ObjectContext originatingContext,
Query query)
Executes a query, using provided context to register persistent objects if query returns any objects. |
|
QueryResponse |
DataChannelFilterChain.onQuery(ObjectContext originatingContext,
Query query)
|
|
QueryResponse |
DataChannelFilter.onQuery(ObjectContext originatingContext,
Query query,
DataChannelFilterChain filterChain)
|
|
GraphDiff |
BaseContext.onSync(ObjectContext originatingContext,
GraphDiff changes,
int syncType)
|
|
GraphDiff |
DataChannel.onSync(ObjectContext originatingContext,
GraphDiff changes,
int syncType)
Processes synchronization request from a child ObjectContext, returning a GraphDiff that describes changes to objects made on the receiving end as a result of synchronization. |
|
GraphDiff |
DataChannelFilterChain.onSync(ObjectContext originatingContext,
GraphDiff changes,
int syncType)
|
|
GraphDiff |
DataChannelSyncFilterChain.onSync(ObjectContext originatingContext,
GraphDiff changes,
int syncType)
|
|
GraphDiff |
DataChannelFilter.onSync(ObjectContext originatingContext,
GraphDiff changes,
int syncType,
DataChannelFilterChain filterChain)
|
|
void |
CayenneDataObject.setObjectContext(ObjectContext objectContext)
|
|
void |
Persistent.setObjectContext(ObjectContext objectContext)
|
|
void |
PersistentObject.setObjectContext(ObjectContext objectContext)
|
Uses of ObjectContext in org.apache.cayenne.access |
---|
Classes in org.apache.cayenne.access that implement ObjectContext | |
---|---|
class |
DataContext
The most common implementation of ObjectContext . |
Methods in org.apache.cayenne.access that return ObjectContext | |
---|---|
ObjectContext |
DataContext.createChildContext()
Deprecated. Since 3.1 replaced by CayenneRuntime.getContext(DataChannel) |
Methods in org.apache.cayenne.access with parameters of type ObjectContext | |
---|---|
java.util.Map<?,?> |
OptimisticLockException.getFreshSnapshot(ObjectContext context)
Retrieves fresh snapshot for the failed row. |
protected GraphDiff |
DataContext.onContextFlush(ObjectContext originatingContext,
GraphDiff changes,
boolean cascade)
|
QueryResponse |
ClientServerChannel.onQuery(ObjectContext context,
Query query)
|
QueryResponse |
DataContext.onQuery(ObjectContext context,
Query query)
An implementation of a DataChannel method that is used by child contexts to
execute queries. |
QueryResponse |
DataDomain.onQuery(ObjectContext originatingContext,
Query query)
Runs query returning generic QueryResponse. |
GraphDiff |
ClientServerChannel.onSync(ObjectContext originatingContext,
GraphDiff changes,
int syncType)
|
GraphDiff |
DataDomain.onSync(ObjectContext originatingContext,
GraphDiff changes,
int syncType)
Only handles commit-type synchronization, ignoring any other type. |
Uses of ObjectContext in org.apache.cayenne.configuration |
---|
Methods in org.apache.cayenne.configuration that return ObjectContext | |
---|---|
ObjectContext |
ObjectContextFactory.createContext()
Creates an ObjectContext attached to a default DataChannel. |
ObjectContext |
ObjectContextFactory.createContext(DataChannel parent)
Creates an ObjectContext attached to a provided channel. |
ObjectContext |
CayenneRuntime.getContext()
Returns an ObjectContext based on the runtime DataChannel. |
ObjectContext |
CayenneRuntime.getContext(DataChannel parentChannel)
Returns an ObjectContext based on the runtime DataChannel. |
Uses of ObjectContext in org.apache.cayenne.configuration.rop.client |
---|
Methods in org.apache.cayenne.configuration.rop.client that return ObjectContext | |
---|---|
ObjectContext |
CayenneContextFactory.createContext()
|
ObjectContext |
CayenneContextFactory.createContext(DataChannel parent)
|
Uses of ObjectContext in org.apache.cayenne.configuration.server |
---|
Methods in org.apache.cayenne.configuration.server that return ObjectContext | |
---|---|
ObjectContext |
DataContextFactory.createContext()
|
ObjectContext |
DataContextFactory.createContext(DataChannel parent)
|
protected ObjectContext |
DataContextFactory.createdFromDataDomain(DataDomain parent)
|
protected ObjectContext |
DataContextFactory.createFromDataContext(DataContext parent)
|
protected ObjectContext |
DataContextFactory.createFromGenericChannel(DataChannel parent)
|
Uses of ObjectContext in org.apache.cayenne.graph |
---|
Fields in org.apache.cayenne.graph declared as ObjectContext | |
---|---|
protected ObjectContext |
ChildDiffLoader.context
|
Constructors in org.apache.cayenne.graph with parameters of type ObjectContext | |
---|---|
ChildDiffLoader(ObjectContext context)
|
Uses of ObjectContext in org.apache.cayenne.remote |
---|
Fields in org.apache.cayenne.remote declared as ObjectContext | |
---|---|
protected ObjectContext |
RemoteIncrementalFaultList.context
|
protected ObjectContext |
SyncMessage.source
|
Methods in org.apache.cayenne.remote that return ObjectContext | |
---|---|
ObjectContext |
RemoteIncrementalFaultList.getContext()
Returns ObjectContext associated with this list. |
ObjectContext |
SyncMessage.getSource()
Returns a source of SyncMessage. |
Methods in org.apache.cayenne.remote with parameters of type ObjectContext | |
---|---|
QueryResponse |
ClientChannel.onQuery(ObjectContext context,
Query query)
|
GraphDiff |
ClientChannel.onSync(ObjectContext originatingContext,
GraphDiff changes,
int syncType)
|
Constructors in org.apache.cayenne.remote with parameters of type ObjectContext | |
---|---|
RemoteIncrementalFaultList(ObjectContext context,
Query paginatedQuery)
|
|
SyncMessage(ObjectContext source,
int syncType,
GraphDiff senderChanges)
|
Uses of ObjectContext in org.apache.cayenne.util |
---|
Fields in org.apache.cayenne.util declared as ObjectContext | |
---|---|
protected ObjectContext |
ObjectContextQueryAction.actingContext
|
protected ObjectContext |
ObjectContextGraphAction.context
|
protected ObjectContext |
ObjectContextQueryAction.targetContext
|
Constructors in org.apache.cayenne.util with parameters of type ObjectContext | |
---|---|
DeepMergeOperation(ObjectContext context)
|
|
ObjectContextGraphAction(ObjectContext context)
|
|
ObjectContextQueryAction(ObjectContext actingContext,
ObjectContext targetContext,
Query query)
|
|
ShallowMergeOperation(ObjectContext context)
|
Uses of ObjectContext in org.apache.cayenne.xml |
---|
Methods in org.apache.cayenne.xml with parameters of type ObjectContext | |
---|---|
static java.util.List<java.lang.Object> |
XMLDecoder.decodeList(java.io.Reader xml,
ObjectContext objectContext)
Deprecated. Decodes a list of DataObjects, registering them the supplied context. |
static java.util.List<java.lang.Object> |
XMLDecoder.decodeList(java.io.Reader xml,
java.lang.String mappingUrl,
ObjectContext objectContext)
Deprecated. Decodes a list of DataObjects using the supplied mapping file to guide the decoding process, registering them the supplied context. |
Constructors in org.apache.cayenne.xml with parameters of type ObjectContext | |
---|---|
XMLDecoder(ObjectContext objectContext)
Deprecated. Creates an XMLDecoder that will register decoded DataObjects with the specified context. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |