| Modifier and Type | Field and Description |
|---|---|
| protected boolean | hasDefaultReadOnlyClasses
Cache if default classes have been read from server. |
| protected boolean | isMetadataRemote
Define if meta-data is initialized locally, or serialized from the server. |
| protected transient RemoteConnection | remoteConnection
Connection to remote persistence service. |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | DistributedSession(RemoteConnection
remote session requires a remote connection. This must be accessed remotely from the client through RMI or CORBA. remoteConnection)PUBLIC: Creates a DistributedSession. |
| hasDefaultReadOnlyClasses | back to summary |
|---|---|
| protected boolean hasDefaultReadOnlyClasses Cache if default classes have been read from server. | |
| isMetadataRemote | back to summary |
|---|---|
| protected boolean isMetadataRemote Define if meta-data is initialized locally, or serialized from the server. | |
| remoteConnection | back to summary |
|---|---|
| protected transient RemoteConnection remoteConnection Connection to remote persistence service. | |
| DistributedSession | back to summary |
|---|---|
| protected DistributedSession(int nothing) INTERNAL: Create a blank session, used for proxy session. | |
| DistributedSession | back to summary |
|---|---|
| protected DistributedSession(RemoteConnection remoteConnection) PUBLIC: Creates a DistributedSession.
| |
| acquireUnitOfWork | back to summary |
|---|---|
| public abstract UnitOfWorkImpl acquireUnitOfWork() Redeclares org. Overrides org. PUBLIC: Return a unit of work for this session. The unit of work is an object level transaction that allows a group of changes to be applied as a unit.
| |
| beginTransaction | back to summary |
|---|---|
| public void beginTransaction() Overrides org. Implements org. PUBLIC: Start a transaction on the server. A unit of work should normally be used instead of transactions for the remote session.
| |
| commitTransaction | back to summary |
|---|---|
| public void commitTransaction() Overrides org. Implements org. PUBLIC: Commit a transaction on the server. A unit of work should normally be used instead of transactions for the remote session.
| |
| connect | back to summary |
|---|---|
| public void connect() throws DatabaseException Overrides org. INTERNAL: Connect not required.
| |
| cursorSelectObjects | back to summary |
|---|---|
| public RemoteCursoredStream cursorSelectObjects(CursoredStreamPolicy policy) INTERNAL: Return remote cursor stream. | |
| cursorSelectObjects | back to summary |
|---|---|
| public RemoteScrollableCursor cursorSelectObjects(ScrollableCursorPolicy policy) INTERNAL: Return remote scrollable cursor | |
| disconnect | back to summary |
|---|---|
| public void disconnect() throws DatabaseException Overrides org. INTERNAL: Disconnect not required.
| |
| executeQuery | back to summary |
|---|---|
| public Object executeQuery(String queryName) throws DatabaseException Overrides org. Implements org. PUBLIC: Execute the pre-defined query by name and return the result. Queries can be pre-defined and named to allow for their reuse. The named query can be defined on the remote session or the server-side session.
| |
| executeQuery | back to summary |
|---|---|
| public Object executeQuery(String queryName, Class<?> domainClass) throws DatabaseException Overrides org. Implements org. PUBLIC: Execute the pre-defined query by name and return the result. Queries can be pre-defined and named to allow for their reuse. The class is the descriptor in which the query was pre-defined. The query is executed on the server-side session.
| |
| executeQuery | back to summary |
|---|---|
| public Object executeQuery(String queryName, Class<?> domainClass, Vector<E> argumentValues) throws DatabaseException Overrides org. PUBLIC: Execute the pre-defined query by name and return the result. Queries can be pre-defined and named to allow for their reuse. The class is the descriptor in which the query was pre-defined.
| |
| executeQuery | back to summary |
|---|---|
| public Object executeQuery(String queryName, Vector<E> argumentValues) throws DatabaseException Overrides org. PUBLIC: Execute the pre-defined query by name and return the result. Queries can be pre-defined and named to allow for their reuse.
| |
| executeQuery | back to summary |
|---|---|
| public abstract Object executeQuery(DatabaseQuery query) Redeclares org. Overrides org. Execute the database query.
| |
| executeQuery | back to summary |
|---|---|
| public Object executeQuery(DatabaseQuery query, AbstractRecord row) Overrides org. INTERNAL: Execute the database query.
| |
| getDefaultReadOnlyClasses | back to summary |
|---|---|
| public Vector Overrides org. INTERNAL: CR#2751 Returns the set of read-only classes for the receiver. These class come from the Remote connection | |
| getDescriptor | back to summary |
|---|---|
| public ClassDescriptor getDescriptor(Class<?> domainClass) Overrides org. Implements org. INTERNAL: Return the table descriptor specified for the class.
| |
| getDescriptorCorrespondingTo | back to summary |
|---|---|
| public ClassDescriptor getDescriptorCorrespondingTo(ClassDescriptor descriptor) INTERNAL: Return the descriptor. | |
| getDescriptorForAlias | back to summary |
|---|---|
| public ClassDescriptor getDescriptorForAlias(String alias) Overrides org. Implements org. INTERNAL: Return the table descriptor specified for the class.
| |
| getObjectCorrespondingTo | back to summary |
|---|---|
| public abstract Object getObjectCorrespondingTo(Object serverSideDomainObject, Map<Object, ObjectDescriptor> objectDescriptors, Map<Object, Object> processedObjects, ObjectLevelReadQuery query) INTERNAL: Return the corresponding objects from the remote session for the objects read from the server. | |
| getObjectsCorrespondingToAll | back to summary |
|---|---|
| public abstract Object getObjectsCorrespondingToAll(Object serverSideDomainObjects, Map<Object, ObjectDescriptor> objectDescriptors, Map<Object, Object> processedObjects, ObjectLevelReadQuery query, ContainerPolicy containerPolicy) INTERNAL: Return the corresponding objects from the remote session for the objects read from the server. | |
| getRemoteConnection | back to summary |
|---|---|
| public RemoteConnection getRemoteConnection() INTERNAL: Return the remote connection. | |
| hasCorrespondingDescriptor | back to summary |
|---|---|
| public boolean hasCorrespondingDescriptor(ClassDescriptor descriptor) INTERNAL: Checks if the descriptor exists or not. | |
| initializeIdentityMapAccessor | back to summary |
|---|---|
| public void initializeIdentityMapAccessor() Overrides org. INTERNAL: Set up the IdentityMapManager. Overrides the default IdentityMapManager
| |
| instantiateRemoteValueHolderOnServer | back to summary |
|---|---|
| public abstract Object instantiateRemoteValueHolderOnServer(RemoteValueHolder<T> remoteValueHolder) INTERNAL: This will instantiate value holder on the server. | |
| isConnected | back to summary |
|---|---|
| public boolean isConnected() Overrides org. Implements org. PUBLIC: Return if this session is connected to the server.
| |
| isDistributedSession | back to summary |
|---|---|
| public boolean isDistributedSession() Overrides org. Implements org. INTERNAL: Return if this session is a distributed session.
| |
| isMetadataRemote | back to summary |
|---|---|
| public boolean isMetadataRemote() ADVANCED: Return if the descriptors and meta-data should be serialized from the server, or if they will be provided locally. | |
| isRemoteSession | back to summary |
|---|---|
| public boolean isRemoteSession() Overrides org. Implements org. INTERNAL: Return if this session is a remote session.
| |
| login | back to summary |
|---|---|
| public void login() throws DatabaseException Overrides org. Implements org. PUBLIC: Connect to the database using the predefined login. Obtain the login from the server, as it may have configuration initialized from the database meta-data.
| |
| loginAndDetectDatasource | back to summary |
|---|---|
| public void loginAndDetectDatasource() throws DatabaseException Overrides org. PUBLIC: Connect to the database using the predefined login. During connection, attempt to auto detect the required database platform. This method can be used in systems where for ease of use developers have EclipseLink autodetect the platform. To be safe, however, the platform should be configured directly. The login must have been assigned when or after creating the session.
| |
| logout | back to summary |
|---|---|
| public void logout() Overrides org. Implements org. PUBLIC: Logout the session, close the remote connection and release the hold resources
| |
| privilegedAddDescriptor | back to summary |
|---|---|
| public void privilegedAddDescriptor(ClassDescriptor descriptor) INTERNAL: You cannot add descriptors to a remote session. This is a internal method used by TopLink | |
| rollbackTransaction | back to summary |
|---|---|
| public void rollbackTransaction() Overrides org. Implements org. PUBLIC: Rollback a transaction on the server. A unit of work should normally be used instead of transactions for the remote session.
| |
| setIsMetadataRemote | back to summary |
|---|---|
| public void setIsMetadataRemote(boolean isMetadataRemote) ADVANCED: Set if the descriptors and meta-data should be serialized from the server, or if they will be provided locally. | |
| setRemoteConnection | back to summary |
|---|---|
| public void setRemoteConnection(RemoteConnection remoteConnection) INTERNAL: Set the remote connection. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. PUBLIC: Avoid printing the accessor and platform.
| |