Class RMIConnection
java.lang.Object
org.eclipse.persistence.internal.sessions.remote.RemoteConnection
org.eclipse.persistence.sessions.remote.rmi.iiop.RMIConnection
- All Implemented Interfaces:
Serializable
This class exists on on the client side which talks to remote session controller through
RMI connection.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.sessions.remote.RemoteConnection
serviceName, session
-
Constructor Summary
ConstructorDescriptionRMIConnection
(RMIRemoteSessionController controller) PUBLIC: The connection must be create from the server-side session controllers stub. -
Method Summary
Modifier and TypeMethodDescriptionvoid
INTERNAL: Begin an early unit of work transaction.void
INTERNAL: Begin a transaction on the database.commitRootUnitOfWork
(RemoteUnitOfWork theRemoteUnitOfWork) INTERNAL: Commit root unit of work from the client side to the server side.void
INTERNAL: Commit a transaction on the database.PUBLIC: Returns a remote session.void
cursoredStreamClose
(ObjID remoteCursoredStreamOid) Used for closing cursored streams across RMI.cursoredStreamNextPage
(RemoteCursoredStream remoteCursoredStream, ReadQuery query, DistributedSession session, int pageSize) Retrieve next page size of objects from the remote cursored streamint
cursoredStreamSize
(ObjID remoteCursoredStreamID) Return the cursored stream sizecursorSelectObjects
(CursoredStreamPolicy policy, DistributedSession session) INTERNAL: Returns remote cursor streamcursorSelectObjects
(ScrollableCursorPolicy policy, DistributedSession session) INTERNAL: Returns remote cursor streamINTERNAL Return the read-only classesgetDescriptor
(Class<?> domainClass) INTERNAL: Return the table descriptor specified for the class.getDescriptorForAlias
(String alias) INTERNAL: Return the table descriptor specified for the alias.getLogin()
INTERNAL: Return the table descriptor specified for the class.INTERNAL: Return the remote session controllergetSequenceNumberNamed
(Object remoteFunctionCall) INTERNAL: Perform remote function callvoid
INTERNAL: Reset the cache on the server-side session.instantiateRemoteValueHolderOnServer
(RemoteValueHolder remoteValueHolder) INTERNAL: Instantiate remote value holder on the servervoid
processCommand
(RemoteCommand command) ADVANCED: This method will send the command to the remote session for processingremoteExecute
(DatabaseQuery query) INTERNAL: Execute the query on the server.remoteExecuteNamedQuery
(String name, Class<?> javaClass, Vector arguments) INTERNAL: Execute query remotely.void
INTERNAL: Rollback a transaction on the database.boolean
scrollableCursorAbsolute
(ObjID remoteScrollableCursorOid, int rows) Moves the cursor to the given row number in the result setvoid
scrollableCursorAfterLast
(ObjID remoteScrollableCursorOid) Moves the cursor to the end of the result set, just after the last row.void
scrollableCursorBeforeFirst
(ObjID remoteScrollableCursorOid) Moves the cursor to the front of the result set, just before the first rowvoid
scrollableCursorClose
(ObjID remoteScrollableCursorOid) Used for closing scrollable cursor across RMI.int
scrollableCursorCurrentIndex
(ObjID remoteScrollableCursorOid) Retrieves the current row index numberboolean
scrollableCursorFirst
(ObjID remoteScrollableCursorOid) Moves the cursor to the first row in the result setboolean
scrollableCursorIsAfterLast
(ObjID remoteScrollableCursorOid) Indicates whether the cursor is after the last row in the result set.boolean
scrollableCursorIsBeforeFirst
(ObjID remoteScrollableCursorOid) Indicates whether the cursor is before the first row in the result set.boolean
scrollableCursorIsFirst
(ObjID remoteScrollableCursorOid) Indicates whether the cursor is on the first row of the result set.boolean
scrollableCursorIsLast
(ObjID remoteScrollableCursorOid) Indicates whether the cursor is on the last row of the result set.boolean
scrollableCursorLast
(ObjID remoteScrollableCursorOid) Moves the cursor to the last row in the result setscrollableCursorNextObject
(ObjID remoteScrollableCursorOid, ReadQuery query, DistributedSession session) Retrieve next object from the remote scrollable cursorscrollableCursorPreviousObject
(ObjID remoteScrollableCursorOid, ReadQuery query, DistributedSession session) Retrieve previous object from the remote scrollable cursorboolean
scrollableCursorRelative
(ObjID remoteScrollableCursorOid, int rows) Moves the cursor to the given row number in the result setint
scrollableCursorSize
(ObjID cursorId) Return the scrollable cursor sizevoid
setRemoteSessionController
(RMIRemoteSessionController remoteSessionController) INTERNAL: Set remote session controllerMethods inherited from class org.eclipse.persistence.internal.sessions.remote.RemoteConnection
fixObjectReferences, getServiceName, getSession, initialize, isConnected, release, setServiceName, setSession
-
Constructor Details
-
RMIConnection
PUBLIC: The connection must be create from the server-side session controllers stub. The session in then created from the connection through createRemoteSession().- See Also:
-
-
Method Details
-
processCommand
ADVANCED: This method will send the command to the remote session for processing- Specified by:
processCommand
in classRemoteConnection
- Parameters:
command
- RemoteCOmmand Contains a command that will be executed on the remote session- See Also:
-
beginTransaction
public void beginTransaction()INTERNAL: Begin a transaction on the database.- Specified by:
beginTransaction
in classRemoteConnection
-
beginEarlyTransaction
public void beginEarlyTransaction()INTERNAL: Begin an early unit of work transaction.- Specified by:
beginEarlyTransaction
in classRemoteConnection
-
commitRootUnitOfWork
INTERNAL: Commit root unit of work from the client side to the server side.- Specified by:
commitRootUnitOfWork
in classRemoteConnection
-
commitTransaction
public void commitTransaction()INTERNAL: Commit a transaction on the database.- Specified by:
commitTransaction
in classRemoteConnection
-
createRemoteSession
PUBLIC: Returns a remote session.- Specified by:
createRemoteSession
in classRemoteConnection
-
cursoredStreamClose
Used for closing cursored streams across RMI.- Specified by:
cursoredStreamClose
in classRemoteConnection
-
cursoredStreamNextPage
public Vector cursoredStreamNextPage(RemoteCursoredStream remoteCursoredStream, ReadQuery query, DistributedSession session, int pageSize) Retrieve next page size of objects from the remote cursored stream- Specified by:
cursoredStreamNextPage
in classRemoteConnection
-
cursoredStreamSize
Return the cursored stream size- Specified by:
cursoredStreamSize
in classRemoteConnection
-
cursorSelectObjects
public RemoteCursoredStream cursorSelectObjects(CursoredStreamPolicy policy, DistributedSession session) INTERNAL: Returns remote cursor stream- Specified by:
cursorSelectObjects
in classRemoteConnection
-
cursorSelectObjects
public RemoteScrollableCursor cursorSelectObjects(ScrollableCursorPolicy policy, DistributedSession session) INTERNAL: Returns remote cursor stream- Specified by:
cursorSelectObjects
in classRemoteConnection
-
getDefaultReadOnlyClasses
INTERNAL Return the read-only classes- Specified by:
getDefaultReadOnlyClasses
in classRemoteConnection
-
getDescriptor
INTERNAL: Return the table descriptor specified for the class.- Specified by:
getDescriptor
in classRemoteConnection
-
getDescriptorForAlias
INTERNAL: Return the table descriptor specified for the alias.- Specified by:
getDescriptorForAlias
in classRemoteConnection
-
getLogin
INTERNAL: Return the table descriptor specified for the class.- Specified by:
getLogin
in classRemoteConnection
-
getRemoteSessionController
INTERNAL: Return the remote session controller -
getSequenceNumberNamed
INTERNAL: Perform remote function call- Specified by:
getSequenceNumberNamed
in classRemoteConnection
-
initializeIdentityMapsOnServerSession
public void initializeIdentityMapsOnServerSession()INTERNAL: Reset the cache on the server-side session.- Specified by:
initializeIdentityMapsOnServerSession
in classRemoteConnection
-
instantiateRemoteValueHolderOnServer
INTERNAL: Instantiate remote value holder on the server- Specified by:
instantiateRemoteValueHolderOnServer
in classRemoteConnection
-
remoteExecute
INTERNAL: Execute the query on the server.- Specified by:
remoteExecute
in classRemoteConnection
-
remoteExecuteNamedQuery
INTERNAL: Execute query remotely.- Specified by:
remoteExecuteNamedQuery
in classRemoteConnection
-
rollbackTransaction
public void rollbackTransaction()INTERNAL: Rollback a transaction on the database.- Specified by:
rollbackTransaction
in classRemoteConnection
-
scrollableCursorAbsolute
Moves the cursor to the given row number in the result set- Specified by:
scrollableCursorAbsolute
in classRemoteConnection
-
scrollableCursorAfterLast
Moves the cursor to the end of the result set, just after the last row.- Specified by:
scrollableCursorAfterLast
in classRemoteConnection
-
scrollableCursorBeforeFirst
Moves the cursor to the front of the result set, just before the first row- Specified by:
scrollableCursorBeforeFirst
in classRemoteConnection
-
scrollableCursorClose
Used for closing scrollable cursor across RMI.- Specified by:
scrollableCursorClose
in classRemoteConnection
-
scrollableCursorCurrentIndex
Retrieves the current row index number- Specified by:
scrollableCursorCurrentIndex
in classRemoteConnection
-
scrollableCursorFirst
Moves the cursor to the first row in the result set- Specified by:
scrollableCursorFirst
in classRemoteConnection
-
scrollableCursorIsAfterLast
Indicates whether the cursor is after the last row in the result set.- Specified by:
scrollableCursorIsAfterLast
in classRemoteConnection
-
scrollableCursorIsBeforeFirst
Indicates whether the cursor is before the first row in the result set.- Specified by:
scrollableCursorIsBeforeFirst
in classRemoteConnection
-
scrollableCursorIsFirst
Indicates whether the cursor is on the first row of the result set.- Specified by:
scrollableCursorIsFirst
in classRemoteConnection
-
scrollableCursorIsLast
Indicates whether the cursor is on the last row of the result set.- Specified by:
scrollableCursorIsLast
in classRemoteConnection
-
scrollableCursorLast
Moves the cursor to the last row in the result set- Specified by:
scrollableCursorLast
in classRemoteConnection
-
scrollableCursorNextObject
public Object scrollableCursorNextObject(ObjID remoteScrollableCursorOid, ReadQuery query, DistributedSession session) Retrieve next object from the remote scrollable cursor- Specified by:
scrollableCursorNextObject
in classRemoteConnection
-
scrollableCursorPreviousObject
public Object scrollableCursorPreviousObject(ObjID remoteScrollableCursorOid, ReadQuery query, DistributedSession session) Retrieve previous object from the remote scrollable cursor- Specified by:
scrollableCursorPreviousObject
in classRemoteConnection
-
scrollableCursorRelative
Moves the cursor to the given row number in the result set- Specified by:
scrollableCursorRelative
in classRemoteConnection
-
scrollableCursorSize
Return the scrollable cursor size- Specified by:
scrollableCursorSize
in classRemoteConnection
-
setRemoteSessionController
INTERNAL: Set remote session controller
-