|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataChannel
DataChannel is an abstraction used by ObjectContexts to obtain mapping metadata and access a persistent store. There is rarely a need to use it directly.
Field Summary | |
---|---|
static int |
FLUSH_CASCADE_SYNC
A synchronization type that results in changes from an ObjectContext to be recorded in the parent DataChannel. |
static int |
FLUSH_NOCASCADE_SYNC
A synchronization type that results in changes from an ObjectContext to be recorded in the parent DataChannel. |
static EventSubject |
GRAPH_CHANGED_SUBJECT
|
static EventSubject |
GRAPH_FLUSHED_SUBJECT
|
static EventSubject |
GRAPH_ROLLEDBACK_SUBJECT
|
static int |
ROLLBACK_CASCADE_SYNC
A synchronization type that results in cascading rollback of changes through the DataChannel stack. |
Method Summary | |
---|---|
EntityResolver |
getEntityResolver()
Returns an EntityResolver instance that contains runtime mapping information. |
EventManager |
getEventManager()
Returns an EventManager associated with this channel. |
QueryResponse |
onQuery(ObjectContext originatingContext,
Query query)
Executes a query, using provided context to register persistent objects if query returns any objects. |
GraphDiff |
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 syncronization. |
Field Detail |
---|
static final int FLUSH_NOCASCADE_SYNC
static final int FLUSH_CASCADE_SYNC
static final int ROLLBACK_CASCADE_SYNC
static final EventSubject GRAPH_CHANGED_SUBJECT
static final EventSubject GRAPH_FLUSHED_SUBJECT
static final EventSubject GRAPH_ROLLEDBACK_SUBJECT
Method Detail |
---|
EventManager getEventManager()
EntityResolver getEntityResolver()
QueryResponse onQuery(ObjectContext originatingContext, Query query)
originatingContext
- an ObjectContext that originated the query, used to
register result objects.
GraphDiff onSync(ObjectContext originatingContext, GraphDiff changes, int syncType)
originatingContext
- an ObjectContext that initiated the sync. Can be null.changes
- diff from the context that initiated the sync.syncType
- One of FLUSH_NOCASCADE_SYNC
, FLUSH_CASCADE_SYNC
,
ROLLBACK_CASCADE_SYNC
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |