Class CORBARemoteSessionControllerDispatcher
- java.lang.Object
-
- org.omg.CORBA.portable.ObjectImpl
-
- org.eclipse.persistence.sessions.remote.corba.sun._CORBARemoteSessionControllerImplBase
-
- org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionControllerDispatcher
-
- All Implemented Interfaces:
java.io.Serializable,CORBARemoteSessionController,CORBARemoteSessionControllerOperations,org.omg.CORBA.Object,org.omg.CORBA.portable.IDLEntity,org.omg.CORBA.portable.InvokeHandler
public class CORBARemoteSessionControllerDispatcher extends _CORBARemoteSessionControllerImplBase
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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected RemoteSessionControllercontrollerStore the real controller.
-
Constructor Summary
Constructors Constructor Description CORBARemoteSessionControllerDispatcher(AbstractSession session)CORBARemoteSessionControllerDispatcher(Session session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransporterbeginEarlyTransaction()Begin an early unit of work transaction.TransporterbeginTransaction()Begin a transaction on the database.TransportercommitRootUnitOfWork(Transporter remoteUnitOfWork)Remote unit of work after serialization is committed locally.TransportercommitTransaction()Commit a transaction on the database.TransportercursoredStreamClose(Transporter remoteCursoredStreamID)Used for closing cursored streams across RMI.TransportercursoredStreamNextPage(Transporter remoteCursoredStream, int pageSize)Retrieve next page size of objects from the remote cursored streamTransportercursoredStreamSize(Transporter remoteCursoredStreamOid)Return the cursored stream sizeTransportercursorSelectObjects(Transporter remoteTransporter)Returns a remote cursor stub in a transporterTransporterexecuteNamedQuery(Transporter nameTransporter, Transporter classTransporter, Transporter argumentsTransporter)A remote query after serialization is executed locally.TransporterexecuteQuery(Transporter query)A remote query after serialization is executed locally.protected RemoteSessionControllergetController()Return the controller.TransportergetDefaultReadOnlyClasses()Get the default read-only classesTransportergetDescriptor(Transporter theClass)Extract descriptor from the sessionTransportergetDescriptorForAlias(Transporter alias)Extract descriptor from the sessionTransportergetLogin()Get the associated session login.TransportergetSequenceNumberNamed(Transporter remoteFunctionCall)INTERNAL: Get the value returned by remote function callTransporterinitializeIdentityMapsOnServerSession()TransporterinstantiateRemoteValueHolderOnServer(Transporter remoteValueHolder)The corresponding original value holder is instantiated.TransporterprocessCommand(Transporter remoteTransporter)INTERNAL: This method is intended to be used by by sessions that wish to execute a command on a remote sessionTransporterrollbackTransaction()Rollback a transaction on the database.TransporterscrollableCursorAbsolute(Transporter remoteScrollableCursorOid, int rows)Moves the cursor to the given row number in the result setTransporterscrollableCursorAfterLast(Transporter remoteScrollableCursorOid)Moves the cursor to the end of the result set, just after the last row.TransporterscrollableCursorBeforeFirst(Transporter remoteScrollableCursor)Moves the cursor to the front of the result set, just before the first rowTransporterscrollableCursorClose(Transporter remoteScrollableCursorOid)Used for closing scrollable cursor across RMI.TransporterscrollableCursorCurrentIndex(Transporter remoteScrollableCursor)Retrieves the current row index numberTransporterscrollableCursorFirst(Transporter remoteScrollableCursor)Moves the cursor to the first row in the result setTransporterscrollableCursorIsAfterLast(Transporter remoteScrollableCursor)Indicates whether the cursor is after the last row in the result set.TransporterscrollableCursorIsBeforeFirst(Transporter remoteScrollableCursor)Indicates whether the cursor is before the first row in the result set.TransporterscrollableCursorIsFirst(Transporter remoteScrollableCursor)Indicates whether the cursor is on the first row of the result set.TransporterscrollableCursorIsLast(Transporter remoteScrollableCursor)Indicates whether the cursor is on the last row of the result set.TransporterscrollableCursorLast(Transporter remoteScrollableCursor)Moves the cursor to the last row in the result setTransporterscrollableCursorNextObject(Transporter scrollableCursorOid)Retrieve next object from the scrollable cursorTransporterscrollableCursorPreviousObject(Transporter scrollableCursorOid)Retrieve previous object from the scrollable cursorTransporterscrollableCursorRelative(Transporter remoteScrollableCursor, int rows)Moves the cursor to the given row number in the result setTransporterscrollableCursorSize(Transporter remoteCursorOid)Return the cursor sizeprotected voidsetController(RemoteSessionController controller)Set the controller.-
Methods inherited from class org.eclipse.persistence.sessions.remote.corba.sun._CORBARemoteSessionControllerImplBase
_ids, _invoke
-
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
-
-
-
-
Field Detail
-
controller
protected RemoteSessionController controller
Store the real controller.
-
-
Constructor Detail
-
CORBARemoteSessionControllerDispatcher
public CORBARemoteSessionControllerDispatcher(AbstractSession session)
-
CORBARemoteSessionControllerDispatcher
public CORBARemoteSessionControllerDispatcher(Session session)
-
-
Method Detail
-
processCommand
public Transporter processCommand(Transporter remoteTransporter)
INTERNAL: This method is intended to be used by by sessions that wish to execute a command on a remote session- Parameters:
remoteTransporter- The Transporter carrying the command to be executed on the remote session
-
beginTransaction
public Transporter beginTransaction()
Begin a transaction on the database.
-
beginEarlyTransaction
public Transporter beginEarlyTransaction()
Begin an early unit of work transaction.
-
commitRootUnitOfWork
public Transporter commitRootUnitOfWork(Transporter remoteUnitOfWork)
Remote unit of work after serialization is committed locally.
-
commitTransaction
public Transporter commitTransaction()
Commit a transaction on the database.
-
cursoredStreamClose
public Transporter cursoredStreamClose(Transporter remoteCursoredStreamID)
Used for closing cursored streams across RMI.
-
cursoredStreamNextPage
public Transporter cursoredStreamNextPage(Transporter remoteCursoredStream, int pageSize)
Retrieve next page size of objects from the remote cursored stream
-
cursoredStreamSize
public Transporter cursoredStreamSize(Transporter remoteCursoredStreamOid)
Return the cursored stream size
-
cursorSelectObjects
public Transporter cursorSelectObjects(Transporter remoteTransporter)
Returns a remote cursor stub in a transporter
-
executeNamedQuery
public Transporter executeNamedQuery(Transporter nameTransporter, Transporter classTransporter, Transporter argumentsTransporter)
A remote query after serialization is executed locally.
-
executeQuery
public Transporter executeQuery(Transporter query)
A remote query after serialization is executed locally.
-
getController
protected RemoteSessionController getController()
Return the controller. All work is dispatched to the controller. This is required to be protocol independent.
-
getDescriptor
public Transporter getDescriptor(Transporter theClass)
Extract descriptor from the session
-
getDescriptorForAlias
public Transporter getDescriptorForAlias(Transporter alias)
Extract descriptor from the session
-
getDefaultReadOnlyClasses
public Transporter getDefaultReadOnlyClasses()
Get the default read-only classes
-
getLogin
public Transporter getLogin()
Get the associated session login.
-
getSequenceNumberNamed
public Transporter getSequenceNumberNamed(Transporter remoteFunctionCall)
INTERNAL: Get the value returned by remote function call
-
initializeIdentityMapsOnServerSession
public Transporter initializeIdentityMapsOnServerSession()
-
instantiateRemoteValueHolderOnServer
public Transporter instantiateRemoteValueHolderOnServer(Transporter remoteValueHolder)
The corresponding original value holder is instantiated.
-
rollbackTransaction
public Transporter rollbackTransaction()
Rollback a transaction on the database.
-
scrollableCursorAbsolute
public Transporter scrollableCursorAbsolute(Transporter remoteScrollableCursorOid, int rows)
Moves the cursor to the given row number in the result set
-
scrollableCursorAfterLast
public Transporter scrollableCursorAfterLast(Transporter remoteScrollableCursorOid)
Moves the cursor to the end of the result set, just after the last row.
-
scrollableCursorBeforeFirst
public Transporter scrollableCursorBeforeFirst(Transporter remoteScrollableCursor)
Moves the cursor to the front of the result set, just before the first row
-
scrollableCursorClose
public Transporter scrollableCursorClose(Transporter remoteScrollableCursorOid)
Used for closing scrollable cursor across RMI.
-
scrollableCursorCurrentIndex
public Transporter scrollableCursorCurrentIndex(Transporter remoteScrollableCursor)
Retrieves the current row index number
-
scrollableCursorFirst
public Transporter scrollableCursorFirst(Transporter remoteScrollableCursor)
Moves the cursor to the first row in the result set
-
scrollableCursorIsAfterLast
public Transporter scrollableCursorIsAfterLast(Transporter remoteScrollableCursor)
Indicates whether the cursor is after the last row in the result set.
-
scrollableCursorIsBeforeFirst
public Transporter scrollableCursorIsBeforeFirst(Transporter remoteScrollableCursor)
Indicates whether the cursor is before the first row in the result set.
-
scrollableCursorIsFirst
public Transporter scrollableCursorIsFirst(Transporter remoteScrollableCursor)
Indicates whether the cursor is on the first row of the result set.
-
scrollableCursorIsLast
public Transporter scrollableCursorIsLast(Transporter remoteScrollableCursor)
Indicates whether the cursor is on the last row of the result set.
-
scrollableCursorLast
public Transporter scrollableCursorLast(Transporter remoteScrollableCursor)
Moves the cursor to the last row in the result set
-
scrollableCursorNextObject
public Transporter scrollableCursorNextObject(Transporter scrollableCursorOid)
Retrieve next object from the scrollable cursor
-
scrollableCursorPreviousObject
public Transporter scrollableCursorPreviousObject(Transporter scrollableCursorOid)
Retrieve previous object from the scrollable cursor
-
scrollableCursorRelative
public Transporter scrollableCursorRelative(Transporter remoteScrollableCursor, int rows)
Moves the cursor to the given row number in the result set
-
scrollableCursorSize
public Transporter scrollableCursorSize(Transporter remoteCursorOid)
Return the cursor size
-
setController
protected void setController(RemoteSessionController controller)
Set the controller. All work is dispatched to the controller. This is required to be protocol independent.
-
-