|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbstractSession
org.eclipse.persistence.sessions.remote.DistributedSession
org.eclipse.persistence.sessions.remote.RemoteSession
public class RemoteSession
Purpose: Provide transparent remote three-tiered replacation support. The remote session allows for complex three-tiered applications to be easily built. It gives the remote client the fully functionality of the TopLink api including,
Field Summary | |
---|---|
protected Sequencing |
sequencing
|
protected boolean |
shouldEnableDistributedIndirectionGarbageCollection
|
Fields inherited from class org.eclipse.persistence.sessions.remote.DistributedSession |
---|
remoteConnection |
Constructor Summary | |
---|---|
RemoteSession(RemoteConnection remoteConnection)
PUBLIC: Creates a RemoteSession. |
Method Summary | |
---|---|
Session |
acquireHistoricalSession(AsOfClause clause)
INTERNAL: Acquires a special historical session for reading objects as of a past time. |
UnitOfWorkImpl |
acquireUnitOfWork()
PUBLIC: Return a unit of work for this session. |
java.lang.Object |
executeQuery(DatabaseQuery query)
PUBLIC: Execute the database query. |
Login |
getDatasourceLogin()
PUBLIC: Return the login. |
DatabaseLogin |
getLogin()
Deprecated. replaced by getDatasourceLogin() |
java.lang.Object |
getObjectCorrespondingTo(java.lang.Object serverSideDomainObject,
IdentityHashtable objectDescriptors,
IdentityHashtable processedObjects,
ObjectLevelReadQuery query)
INTERNAL: Return the corresponding objects from the remote session for the objects read from the server. |
java.lang.Object |
getObjectsCorrespondingToAll(java.lang.Object serverSideDomainObjects,
IdentityHashtable objectDescriptors,
IdentityHashtable processedObjects,
ObjectLevelReadQuery query,
ContainerPolicy containerPolicy)
INTERNAL: Return the corresponding objects from the remote session for the objects read from the server. |
Sequencing |
getSequencing()
INTERNAL: Return the Sequencing object used by the session. |
void |
initializeSequencing()
ADVANCED: Creates sequencing object for the session. |
java.lang.Object |
instantiateRemoteValueHolderOnServer(RemoteValueHolder remoteValueHolder)
INTERNAL: This will instantiate value holder on the server. |
boolean |
isRemoteSession()
INTERNAL: Return if this session is remote. |
void |
setShouldEnableDistributedIndirectionGarbageCollection(boolean shouldEnableDistributedIndirectionGarbageCollection)
ADVANCED: Allow the server-side value holders to be cleaned-up when the client-side value holder finalize. |
boolean |
shouldEnableDistributedIndirectionGarbageCollection()
ADVANCED: Allow the server-side value holders to be cleaned-up when the client-side value holder finalize. |
Methods inherited from class org.eclipse.persistence.sessions.remote.DistributedSession |
---|
beginTransaction, commitTransaction, cursorSelectObjects, cursorSelectObjects, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, getDefaultReadOnlyClasses, getDescriptor, getDescriptorCorrespondingTo, getRemoteConnection, hasCorrespondingDescriptor, initializeIdentityMapAccessor, isConnected, isDistributedSession, privilegedAddDescriptor, release, rollbackTransaction, setRemoteConnection, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Sequencing sequencing
protected boolean shouldEnableDistributedIndirectionGarbageCollection
Constructor Detail |
---|
public RemoteSession(RemoteConnection remoteConnection)
remoteConnection
- remote session requires a remote connection. This must be accessed remotely from the client through RMI or CORBA.Method Detail |
---|
public void setShouldEnableDistributedIndirectionGarbageCollection(boolean shouldEnableDistributedIndirectionGarbageCollection)
public boolean shouldEnableDistributedIndirectionGarbageCollection()
public Session acquireHistoricalSession(AsOfClause clause) throws ValidationException
ValidationException
public UnitOfWorkImpl acquireUnitOfWork()
acquireUnitOfWork
in class DistributedSession
UnitOfWorkImpl
public java.lang.Object executeQuery(DatabaseQuery query)
executeQuery
in class DistributedSession
public DatabaseLogin getLogin()
public Login getDatasourceLogin()
public java.lang.Object getObjectCorrespondingTo(java.lang.Object serverSideDomainObject, IdentityHashtable objectDescriptors, IdentityHashtable processedObjects, ObjectLevelReadQuery query)
getObjectCorrespondingTo
in class DistributedSession
public java.lang.Object getObjectsCorrespondingToAll(java.lang.Object serverSideDomainObjects, IdentityHashtable objectDescriptors, IdentityHashtable processedObjects, ObjectLevelReadQuery query, ContainerPolicy containerPolicy)
getObjectsCorrespondingToAll
in class DistributedSession
public java.lang.Object instantiateRemoteValueHolderOnServer(RemoteValueHolder remoteValueHolder)
instantiateRemoteValueHolderOnServer
in class DistributedSession
public boolean isRemoteSession()
isRemoteSession
in class DistributedSession
public Sequencing getSequencing()
public void initializeSequencing()
|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |