Class RMIRemoteSessionControllerDispatcher
java.lang.Object
javax.rmi.PortableRemoteObject
org.eclipse.persistence.sessions.remote.rmi.iiop.RMIRemoteSessionControllerDispatcher
- All Implemented Interfaces:
Remote,RMIRemoteSessionController
public class RMIRemoteSessionControllerDispatcher
extends javax.rmi.PortableRemoteObject
implements RMIRemoteSessionController
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
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionBegin an early unit of work transaction, all further queries must be isolated.Begin a transaction on the database.commitRootUnitOfWork(Transporter remoteUnitOfWork) Remote unit of work after serialization is commited locally.Commit a transaction on the database.cursoredStreamClose(Transporter remoteCursoredStreamID) Used for closing cursored streams across RMI.cursoredStreamNextPage(Transporter remoteCursoredStream, int pageSize) Retrieve next page size of objects from the remote cursored streamcursoredStreamSize(Transporter remoteCursoredStreamOid) Return the cursored stream sizecursorSelectObjects(Transporter remoteTransporter) Returns a remote cursor stub in a transporterexecuteNamedQuery(Transporter nameTransporter, Transporter classTransporter, Transporter argumentsTransporter) A remote query after serialization is executed locally.executeQuery(Transporter query) A remote query after serialization is executed locally.protected RemoteSessionControllerReturn the controller.Get the default read-only classesgetDescriptor(Transporter theClass) Extract descriptor from the sessiongetDescriptorForAlias(Transporter alias) Extract descriptor from the sessiongetLogin()Get the associated session login.getSequenceNumberNamed(Transporter remoteFunctionCall) INTERNAL: Get the value returned by remote function callinstantiateRemoteValueHolderOnServer(Transporter remoteValueHolder) The corresponding original value holder is instantiated.processCommand(Transporter remoteTransporter) INTERNAL: This method is intended to be used by by sessions that wish to execute a command on a remote sessionRollback a transaction on the database.scrollableCursorAbsolute(Transporter remoteScrollableCursorOid, int rows) Moves the cursor to the given row number in the result setscrollableCursorAfterLast(Transporter remoteScrollableCursorOid) Moves the cursor to the end of the result set, just after the last row.scrollableCursorBeforeFirst(Transporter remoteScrollableCursor) Moves the cursor to the front of the result set, just before the first rowscrollableCursorClose(Transporter remoteScrollableCursorOid) Used for closing scrollable cursor across RMI.scrollableCursorCurrentIndex(Transporter remoteScrollableCursor) Retrieves the current row index numberscrollableCursorFirst(Transporter remoteScrollableCursor) Moves the cursor to the first row in the result setscrollableCursorIsAfterLast(Transporter remoteScrollableCursor) Indicates whether the cursor is after the last row in the result set.scrollableCursorIsBeforeFirst(Transporter remoteScrollableCursor) Indicates whether the cursor is before the first row in the result set.scrollableCursorIsFirst(Transporter remoteScrollableCursor) Indicates whether the cursor is on the first row of the result set.scrollableCursorIsLast(Transporter remoteScrollableCursor) Indicates whether the cursor is on the last row of the result set.scrollableCursorLast(Transporter remoteScrollableCursor) Moves the cursor to the last row in the result setscrollableCursorNextObject(Transporter scrollableCursorOid) Retrieve next object from the scrollable cursorscrollableCursorPreviousObject(Transporter scrollableCursorOid) Retrieve previous object from the scrollable cursorscrollableCursorRelative(Transporter remoteScrollableCursor, int rows) Moves the cursor to the given row number in the result setscrollableCursorSize(Transporter remoteCursorOid) Return the cursor sizeprotected voidsetController(RemoteSessionController controller) Set the controller.Methods inherited from class javax.rmi.PortableRemoteObject
connect, exportObject, narrow, toStub, unexportObject
-
Field Details
-
controller
Store the real controller.
-
-
Constructor Details
-
RMIRemoteSessionControllerDispatcher
- Throws:
RemoteException
-
RMIRemoteSessionControllerDispatcher
- Throws:
RemoteException
-
-
Method Details
-
processCommand
INTERNAL: This method is intended to be used by by sessions that wish to execute a command on a remote session- Specified by:
processCommandin interfaceRMIRemoteSessionController- Parameters:
remoteTransporter- The Transporter carrying the command to be executed on the remote session
-
beginEarlyTransaction
Begin an early unit of work transaction, all further queries must be isolated.- Specified by:
beginEarlyTransactionin interfaceRMIRemoteSessionController
-
beginTransaction
Begin a transaction on the database.- Specified by:
beginTransactionin interfaceRMIRemoteSessionController
-
commitRootUnitOfWork
Remote unit of work after serialization is commited locally.- Specified by:
commitRootUnitOfWorkin interfaceRMIRemoteSessionController
-
commitTransaction
Commit a transaction on the database.- Specified by:
commitTransactionin interfaceRMIRemoteSessionController
-
cursoredStreamClose
Used for closing cursored streams across RMI.- Specified by:
cursoredStreamClosein interfaceRMIRemoteSessionController
-
cursoredStreamNextPage
Retrieve next page size of objects from the remote cursored stream- Specified by:
cursoredStreamNextPagein interfaceRMIRemoteSessionController
-
cursoredStreamSize
Return the cursored stream size- Specified by:
cursoredStreamSizein interfaceRMIRemoteSessionController
-
cursorSelectObjects
Returns a remote cursor stub in a transporter- Specified by:
cursorSelectObjectsin interfaceRMIRemoteSessionController
-
executeNamedQuery
public Transporter executeNamedQuery(Transporter nameTransporter, Transporter classTransporter, Transporter argumentsTransporter) A remote query after serialization is executed locally.- Specified by:
executeNamedQueryin interfaceRMIRemoteSessionController
-
executeQuery
A remote query after serialization is executed locally.- Specified by:
executeQueryin interfaceRMIRemoteSessionController
-
getController
Return the controller. All work is dispatched to the controller. This is required to be protocol independent. -
getDescriptor
Extract descriptor from the session- Specified by:
getDescriptorin interfaceRMIRemoteSessionController
-
getDescriptorForAlias
Extract descriptor from the session- Specified by:
getDescriptorForAliasin interfaceRMIRemoteSessionController
-
getDefaultReadOnlyClasses
Get the default read-only classes- Specified by:
getDefaultReadOnlyClassesin interfaceRMIRemoteSessionController
-
getLogin
Get the associated session login.- Specified by:
getLoginin interfaceRMIRemoteSessionController
-
getSequenceNumberNamed
INTERNAL: Get the value returned by remote function call- Specified by:
getSequenceNumberNamedin interfaceRMIRemoteSessionController
-
initializeIdentityMapsOnServerSession
- Specified by:
initializeIdentityMapsOnServerSessionin interfaceRMIRemoteSessionController
-
instantiateRemoteValueHolderOnServer
The corresponding original value holder is instantiated.- Specified by:
instantiateRemoteValueHolderOnServerin interfaceRMIRemoteSessionController
-
rollbackTransaction
Rollback a transaction on the database.- Specified by:
rollbackTransactionin interfaceRMIRemoteSessionController
-
scrollableCursorAbsolute
Moves the cursor to the given row number in the result set- Specified by:
scrollableCursorAbsolutein interfaceRMIRemoteSessionController
-
scrollableCursorAfterLast
Moves the cursor to the end of the result set, just after the last row.- Specified by:
scrollableCursorAfterLastin interfaceRMIRemoteSessionController
-
scrollableCursorBeforeFirst
Moves the cursor to the front of the result set, just before the first row- Specified by:
scrollableCursorBeforeFirstin interfaceRMIRemoteSessionController
-
scrollableCursorClose
Used for closing scrollable cursor across RMI.- Specified by:
scrollableCursorClosein interfaceRMIRemoteSessionController
-
scrollableCursorCurrentIndex
Retrieves the current row index number- Specified by:
scrollableCursorCurrentIndexin interfaceRMIRemoteSessionController
-
scrollableCursorFirst
Moves the cursor to the first row in the result set- Specified by:
scrollableCursorFirstin interfaceRMIRemoteSessionController
-
scrollableCursorIsAfterLast
Indicates whether the cursor is after the last row in the result set.- Specified by:
scrollableCursorIsAfterLastin interfaceRMIRemoteSessionController
-
scrollableCursorIsBeforeFirst
Indicates whether the cursor is before the first row in the result set.- Specified by:
scrollableCursorIsBeforeFirstin interfaceRMIRemoteSessionController
-
scrollableCursorIsFirst
Indicates whether the cursor is on the first row of the result set.- Specified by:
scrollableCursorIsFirstin interfaceRMIRemoteSessionController
-
scrollableCursorIsLast
Indicates whether the cursor is on the last row of the result set.- Specified by:
scrollableCursorIsLastin interfaceRMIRemoteSessionController
-
scrollableCursorLast
Moves the cursor to the last row in the result set- Specified by:
scrollableCursorLastin interfaceRMIRemoteSessionController
-
scrollableCursorNextObject
Retrieve next object from the scrollable cursor- Specified by:
scrollableCursorNextObjectin interfaceRMIRemoteSessionController
-
scrollableCursorPreviousObject
Retrieve previous object from the scrollable cursor- Specified by:
scrollableCursorPreviousObjectin interfaceRMIRemoteSessionController
-
scrollableCursorRelative
Moves the cursor to the given row number in the result set- Specified by:
scrollableCursorRelativein interfaceRMIRemoteSessionController
-
scrollableCursorSize
Return the cursor size- Specified by:
scrollableCursorSizein interfaceRMIRemoteSessionController
-
setController
Set the controller. All work is dispatched to the controller. This is required to be protocol independent.
-