|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.access.ClientServerChannel
public class ClientServerChannel
A DataChannel that provides a server-side end of the bridge between client and server objects in a Remote Object Persistence stack.
| Field Summary | |
|---|---|
protected DataContext |
serverContext
|
| Fields inherited from interface org.apache.cayenne.DataChannel |
|---|
FLUSH_CASCADE_SYNC, FLUSH_NOCASCADE_SYNC, GRAPH_CHANGED_SUBJECT, GRAPH_FLUSHED_SUBJECT, GRAPH_ROLLEDBACK_SUBJECT, ROLLBACK_CASCADE_SYNC |
| Constructor Summary | |
|---|---|
ClientServerChannel(DataContext serverContext)
Creates a ClientServerChannel that wraps a specified DataContext. |
|
ClientServerChannel(DataDomain domain)
Deprecated. since 3.1 as context creation is now factory based. |
|
| Method Summary | |
|---|---|
EntityResolver |
getEntityResolver()
Returns an EntityResolver instance that contains runtime mapping information. |
EventManager |
getEventManager()
Returns an EventManager associated with this channel. |
DataChannel |
getParentChannel()
|
QueryResponse |
onQuery(ObjectContext context,
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 synchronization. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DataContext serverContext
| Constructor Detail |
|---|
@Deprecated public ClientServerChannel(DataDomain domain)
public ClientServerChannel(DataContext serverContext)
| Method Detail |
|---|
public QueryResponse onQuery(ObjectContext context,
Query query)
DataChannel
onQuery in interface DataChannelcontext - an ObjectContext that originated the query, used to
register result objects.
public DataChannel getParentChannel()
public EntityResolver getEntityResolver()
DataChannel
getEntityResolver in interface DataChannelpublic EventManager getEventManager()
DataChannel
getEventManager in interface DataChannel
public GraphDiff onSync(ObjectContext originatingContext,
GraphDiff changes,
int syncType)
DataChannel
onSync in interface DataChanneloriginatingContext - an ObjectContext that initiated the sync. Can be null.changes - diff from the context that initiated the sync.syncType - One of DataChannel.FLUSH_NOCASCADE_SYNC, DataChannel.FLUSH_CASCADE_SYNC,
DataChannel.ROLLBACK_CASCADE_SYNC.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||