Top Description Fields Constructors Methods
org.eclipse.persistence.sessions.remote.rmi

public Class RMIRemoteSessionControllerDispatcher

extends UnicastRemoteObject
implements RMIRemoteSessionController
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController, java.rmi.Remote
Imports
java.rmi.*, java.rmi.server.*, org.eclipse.persistence.internal.sessions.remote.*, org.eclipse.persistence.internal.sessions.AbstractSession

RemoteSessionController sits between the remote session and the session. Any interaction between these two classes takes place through this object. As the object extends unicast remote object it listens to only single remote session during runtime.

Field Summary

Modifier and TypeField and Description
protected RemoteSessionController
controller

Store the real controller.

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public Transporter
public Transporter
public Transporter
commitRootUnitOfWork(Transporter remoteUnitOfWork)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.commitRootUnitOfWork.

Remote unit of work after serialization is committed locally.
public Transporter
public Transporter
cursoredStreamClose(Transporter remoteCursoredStreamID)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.cursoredStreamClose.

Used for closing cursored streams across RMI.
public Transporter
cursoredStreamNextPage(Transporter remoteCursoredStream, int pageSize)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.cursoredStreamNextPage.

Retrieve next page size of objects from the remote cursored stream
public Transporter
public Transporter
public Transporter
executeNamedQuery(Transporter nameTransporter, Transporter classTransporter, Transporter argumentsTransporter)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.executeNamedQuery.

A remote query after serialization is executed locally.
public Transporter
executeQuery(Transporter query)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.executeQuery.

A remote query after serialization is executed locally.
protected RemoteSessionController
getController()

Return the controller.

public Transporter
public Transporter
public Transporter
public Transporter
public Transporter
getSequenceNumberNamed(Transporter remoteFunctionCall)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.getSequenceNumberNamed.

INTERNAL: Get the value returned by remote function call
public Transporter
public Transporter
public Transporter
processCommand(Transporter
The Transporter carrying the command to be executed on the remote session
remoteTransporter
)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.processCommand.

INTERNAL: This method is intended to be used by by sessions that wish to execute a command on a remote session
public Transporter
public Transporter
scrollableCursorAbsolute(Transporter remoteScrollableCursorOid, int rows)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorAbsolute.

Moves the cursor to the given row number in the result set
public Transporter
scrollableCursorAfterLast(Transporter remoteScrollableCursorOid)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorAfterLast.

Moves the cursor to the end of the result set, just after the last row.
public Transporter
scrollableCursorBeforeFirst(Transporter remoteScrollableCursor)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorBeforeFirst.

Moves the cursor to the front of the result set, just before the first row
public Transporter
scrollableCursorClose(Transporter remoteScrollableCursorOid)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorClose.

Used for closing scrollable cursor across RMI.
public Transporter
public Transporter
scrollableCursorFirst(Transporter remoteScrollableCursor)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorFirst.

Moves the cursor to the first row in the result set
public Transporter
scrollableCursorIsAfterLast(Transporter remoteScrollableCursor)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorIsAfterLast.

Indicates whether the cursor is after the last row in the result set.
public Transporter
scrollableCursorIsBeforeFirst(Transporter remoteScrollableCursor)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorIsBeforeFirst.

Indicates whether the cursor is before the first row in the result set.
public Transporter
scrollableCursorIsFirst(Transporter remoteScrollableCursor)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorIsFirst.

Indicates whether the cursor is on the first row of the result set.
public Transporter
scrollableCursorIsLast(Transporter remoteScrollableCursor)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorIsLast.

Indicates whether the cursor is on the last row of the result set.
public Transporter
scrollableCursorLast(Transporter remoteScrollableCursor)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorLast.

Moves the cursor to the last row in the result set
public Transporter
public Transporter
public Transporter
scrollableCursorRelative(Transporter remoteScrollableCursor, int rows)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorRelative.

Moves the cursor to the given row number in the result set
public Transporter
protected void
setController(RemoteSessionController controller)

Set the controller.

Inherited from java.rmi.server.UnicastRemoteObject:
cloneexportObjectexportObjectexportObjectexportObjectexportObjectunexportObject

Field Detail

controllerback to summary
protected RemoteSessionController controller

Store the real controller.

Constructor Detail

RMIRemoteSessionControllerDispatcherback to summary
public RMIRemoteSessionControllerDispatcher(AbstractSession session) throws RemoteException
RMIRemoteSessionControllerDispatcherback to summary
public RMIRemoteSessionControllerDispatcher(Session session) throws RemoteException

Method Detail

beginEarlyTransactionback to summary
public Transporter beginEarlyTransaction()

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.beginEarlyTransaction.

Begin an early unit of work transaction.

Annotations
@Override
beginTransactionback to summary
public Transporter beginTransaction()

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.beginTransaction.

Begin a transaction on the database.

Annotations
@Override
commitRootUnitOfWorkback to summary
public Transporter commitRootUnitOfWork(Transporter remoteUnitOfWork)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.commitRootUnitOfWork.

Remote unit of work after serialization is committed locally.

Annotations
@Override
commitTransactionback to summary
public Transporter commitTransaction()

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.commitTransaction.

Commit a transaction on the database.

Annotations
@Override
cursoredStreamCloseback to summary
public Transporter cursoredStreamClose(Transporter remoteCursoredStreamID)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.cursoredStreamClose.

Used for closing cursored streams across RMI.

Annotations
@Override
cursoredStreamNextPageback to summary
public Transporter cursoredStreamNextPage(Transporter remoteCursoredStream, int pageSize)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.cursoredStreamNextPage.

Retrieve next page size of objects from the remote cursored stream

Annotations
@Override
cursoredStreamSizeback to summary
public Transporter cursoredStreamSize(Transporter remoteCursoredStreamOid)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.cursoredStreamSize.

Return the cursored stream size

Annotations
@Override
cursorSelectObjectsback to summary
public Transporter cursorSelectObjects(Transporter remoteTransporter)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.cursorSelectObjects.

Returns a remote cursor stub in a transporter

Annotations
@Override
executeNamedQueryback to summary
public Transporter executeNamedQuery(Transporter nameTransporter, Transporter classTransporter, Transporter argumentsTransporter)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.executeNamedQuery.

A remote query after serialization is executed locally.

Annotations
@Override
executeQueryback to summary
public Transporter executeQuery(Transporter query)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.executeQuery.

A remote query after serialization is executed locally.

Annotations
@Override
getControllerback to summary
protected RemoteSessionController getController()

Return the controller. All work is dispatched to the controller. This is required to be protocol independent.

getDefaultReadOnlyClassesback to summary
public Transporter getDefaultReadOnlyClasses()

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.getDefaultReadOnlyClasses.

Get the default read-only classes

Annotations
@Override
getDescriptorback to summary
public Transporter getDescriptor(Transporter theClass)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.getDescriptor.

Extract descriptor from the session

Annotations
@Override
getDescriptorForAliasback to summary
public Transporter getDescriptorForAlias(Transporter alias)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.getDescriptorForAlias.

Extract descriptor from the session

Annotations
@Override
getLoginback to summary
public Transporter getLogin()

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.getLogin.

Get the associated session login.

Annotations
@Override
getSequenceNumberNamedback to summary
public Transporter getSequenceNumberNamed(Transporter remoteFunctionCall)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.getSequenceNumberNamed.

INTERNAL: Get the value returned by remote function call

Annotations
@Override
initializeIdentityMapsOnServerSessionback to summary
public Transporter initializeIdentityMapsOnServerSession()

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.initializeIdentityMapsOnServerSession.

Annotations
@Override
instantiateRemoteValueHolderOnServerback to summary
public Transporter instantiateRemoteValueHolderOnServer(Transporter remoteValueHolder)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.instantiateRemoteValueHolderOnServer.

The corresponding original value holder is instantiated.

Annotations
@Override
processCommandback to summary
public Transporter processCommand(Transporter remoteTransporter)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.processCommand.

INTERNAL: This method is intended to be used by by sessions that wish to execute a command on a remote session

Parameters
remoteTransporter:Transporter

The Transporter carrying the command to be executed on the remote session

Annotations
@Override
rollbackTransactionback to summary
public Transporter rollbackTransaction()

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.rollbackTransaction.

Rollback a transaction on the database.

Annotations
@Override
scrollableCursorAbsoluteback to summary
public Transporter scrollableCursorAbsolute(Transporter remoteScrollableCursorOid, int rows)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorAbsolute.

Moves the cursor to the given row number in the result set

Annotations
@Override
scrollableCursorAfterLastback to summary
public Transporter scrollableCursorAfterLast(Transporter remoteScrollableCursorOid)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorAfterLast.

Moves the cursor to the end of the result set, just after the last row.

Annotations
@Override
scrollableCursorBeforeFirstback to summary
public Transporter scrollableCursorBeforeFirst(Transporter remoteScrollableCursor)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorBeforeFirst.

Moves the cursor to the front of the result set, just before the first row

Annotations
@Override
scrollableCursorCloseback to summary
public Transporter scrollableCursorClose(Transporter remoteScrollableCursorOid)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorClose.

Used for closing scrollable cursor across RMI.

Annotations
@Override
scrollableCursorCurrentIndexback to summary
public Transporter scrollableCursorCurrentIndex(Transporter remoteScrollableCursor)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorCurrentIndex.

Retrieves the current row index number

Annotations
@Override
scrollableCursorFirstback to summary
public Transporter scrollableCursorFirst(Transporter remoteScrollableCursor)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorFirst.

Moves the cursor to the first row in the result set

Annotations
@Override
scrollableCursorIsAfterLastback to summary
public Transporter scrollableCursorIsAfterLast(Transporter remoteScrollableCursor)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorIsAfterLast.

Indicates whether the cursor is after the last row in the result set.

Annotations
@Override
scrollableCursorIsBeforeFirstback to summary
public Transporter scrollableCursorIsBeforeFirst(Transporter remoteScrollableCursor)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorIsBeforeFirst.

Indicates whether the cursor is before the first row in the result set.

Annotations
@Override
scrollableCursorIsFirstback to summary
public Transporter scrollableCursorIsFirst(Transporter remoteScrollableCursor)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorIsFirst.

Indicates whether the cursor is on the first row of the result set.

Annotations
@Override
scrollableCursorIsLastback to summary
public Transporter scrollableCursorIsLast(Transporter remoteScrollableCursor)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorIsLast.

Indicates whether the cursor is on the last row of the result set.

Annotations
@Override
scrollableCursorLastback to summary
public Transporter scrollableCursorLast(Transporter remoteScrollableCursor)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorLast.

Moves the cursor to the last row in the result set

Annotations
@Override
scrollableCursorNextObjectback to summary
public Transporter scrollableCursorNextObject(Transporter scrollableCursorOid)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorNextObject.

Retrieve next object from the scrollable cursor

Annotations
@Override
scrollableCursorPreviousObjectback to summary
public Transporter scrollableCursorPreviousObject(Transporter scrollableCursorOid)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorPreviousObject.

Retrieve previous object from the scrollable cursor

Annotations
@Override
scrollableCursorRelativeback to summary
public Transporter scrollableCursorRelative(Transporter remoteScrollableCursor, int rows)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorRelative.

Moves the cursor to the given row number in the result set

Annotations
@Override
scrollableCursorSizeback to summary
public Transporter scrollableCursorSize(Transporter remoteCursorOid)

Implements org.eclipse.persistence.sessions.remote.rmi.RMIRemoteSessionController.scrollableCursorSize.

Return the cursor size

Annotations
@Override
setControllerback to summary
protected void setController(RemoteSessionController controller)

Set the controller. All work is dispatched to the controller. This is required to be protocol independent.