public class RemoteSessionController
extends java.lang.Object
Constructor and Description |
---|
RemoteSessionController(AbstractSession session) |
Modifier and Type | Method and Description |
---|---|
Transporter |
beginEarlyTransaction()
Begin an early unit of work transaction.
|
Transporter |
beginTransaction()
Begin a transaction on the database.
|
Transporter |
closeScrollableCursor(java.rmi.server.ObjID id)
Used for closing scrolable cursor across RMI.
|
Transporter |
commitRootUnitOfWork(Transporter remoteTransporter)
Remote unit of work after serialization is commited locally.
|
Transporter |
commitTransaction()
Commit a transaction on the database.
|
Transporter |
cursoredStreamClose(Transporter remoteCursoredStreamOid)
Used for closing cursored streams across RMI.
|
Transporter |
cursoredStreamNextpage(Transporter remoteCursoredId,
int pageSize)
Retrieve next page of objects from the remote cursored stream once, avoid page size round trips from the server to the client
|
Transporter |
cursoredStreamSize(Transporter remoteCursoredStreamOid)
Return the wrapped cursored stream from the server
|
Transporter |
cursorSelectObjects(Transporter remoteTransporter)
Returns a remote cursor stub in a transporter
|
Transporter |
executeNamedQuery(Transporter nameTransporter,
Transporter classTransporter,
Transporter argumentsTransporter)
A named query after serialization is executed locally.
|
Transporter |
executeQuery(Transporter remoteTransporter)
A remote query after serialization is executed locally.
|
CommandManager |
getCommandManager()
INTERNAL:
This method returns the command manager policy for this remote connection
|
Transporter |
getDefaultReadOnlyClasses()
return the read-only classes
|
Transporter |
getDescriptor(Transporter remoteTransporter)
Extract descriptor from the session
|
Transporter |
getDescriptorForAlias(Transporter remoteTransporter)
Extract descriptor from the session
|
Transporter |
getLogin()
Get the associated session login.
|
java.util.Map<java.rmi.server.ObjID,ValueHolderInterface> |
getRemoteValueHolders()
INTERNAL:
return the pre-serialized remote value holders
|
Transporter |
getSequenceNumberNamed(Transporter remoteFunctionCall)
INTERNAL:
Get the value returned by remote function call
|
AbstractSession |
getSession()
Get the associated server side session.
|
Transporter |
initializeIdentityMapsOnServerSession()
Initalize all the server side identity maps.
|
Transporter |
instantiateRemoteValueHolderOnServer(Transporter remoteTransporter)
The corresponding original value holder is instantiated.
|
Transporter |
processCommand(Transporter remoteCommand)
INTERNAL:
This method is intended to be used by by sessions that wish to execute a command on a
remote session
|
java.util.Map |
replaceValueHoldersIn(java.lang.Object object)
Traverse the specified object, replacing the standard
value holders with remote value holders.
|
void |
replaceValueHoldersIn(java.lang.Object object,
java.util.Map objectDescriptors)
Traverse the specified object, replacing the standard
value holders with remote value holders.
|
java.util.Map |
replaceValueHoldersInAll(java.lang.Object container,
ContainerPolicy policy)
Traverse the specified objects, replacing the standard
value holders with remote value holders.
|
Transporter |
rollbackTransaction()
Rollback a transaction on the database.
|
void |
saveRemoteValueHolder(RemoteValueHolder remoteValueHolder)
Save the pre-serialized version of the remote value holder
so that it can be used when the serialized version (on the client)
is instantiated and needs to come back to the server to get
its "value".
|
Transporter |
scrollableCursorAbsolute(Transporter remoteScrollableCursorOid,
int rows)
Moves the cursor to the given row number in the result set
|
Transporter |
scrollableCursorAfterLast(Transporter remoteScrollableCursorOid)
Moves the cursor to the end of the result set, just after the last row.
|
Transporter |
scrollableCursorBeforeFirst(Transporter remoteScrollableCursorOid)
Moves the cursor to the front of the result set, just before the first row
|
Transporter |
scrollableCursorClose(Transporter remoteScrollableCursorOid)
Used for closing cursored streams across RMI.
|
Transporter |
scrollableCursorCurrentIndex(Transporter remoteScrollableCursorOid)
Retrieves the current row index number
|
Transporter |
scrollableCursorFirst(Transporter remoteScrollableCursorOid)
Moves the cursor to the first row in the result set
|
Transporter |
scrollableCursorIsAfterLast(Transporter remoteScrollableCursorOid)
Indicates whether the cursor is after the last row in the result set.
|
Transporter |
scrollableCursorIsBeforeFirst(Transporter remoteScrollableCursorOid)
Indicates whether the cursor is before the first row in the result set.
|
Transporter |
scrollableCursorIsFirst(Transporter remoteScrollableCursorOid)
Indicates whether the cursor is on the first row of the result set.
|
Transporter |
scrollableCursorIsLast(Transporter remoteScrollableCursorOid)
Indicates whether the cursor is on the last row of the result set.
|
Transporter |
scrollableCursorLast(Transporter remoteScrollableCursorOid)
Moves the cursor to the last row in the result set
|
Transporter |
scrollableCursorNextObject(Transporter remoteScrollableCursorOid)
Retrieve next object from the scrollable cursor
|
Transporter |
scrollableCursorPreviousObject(Transporter remoteScrollableCursorOid)
Retrieve previous object from the scrollable cursor
|
Transporter |
scrollableCursorRelative(Transporter remoteScrollableCursorOid,
int rows)
Moves the cursor to the given row number in the result set
|
Transporter |
scrollableCursorSize(Transporter remoteCursorOid)
Return the scrollable cursor size from the server
|
public RemoteSessionController(AbstractSession session)
public Transporter processCommand(Transporter remoteCommand)
remoteCommand
- RemoteCommand The command to be executed on the remote sessionpublic Transporter beginTransaction()
public Transporter beginEarlyTransaction()
public Transporter closeScrollableCursor(java.rmi.server.ObjID id)
public Transporter commitRootUnitOfWork(Transporter remoteTransporter)
public Transporter commitTransaction()
public Transporter cursoredStreamClose(Transporter remoteCursoredStreamOid)
public Transporter cursoredStreamNextpage(Transporter remoteCursoredId, int pageSize)
public Transporter cursoredStreamSize(Transporter remoteCursoredStreamOid)
public Transporter cursorSelectObjects(Transporter remoteTransporter)
public Transporter executeNamedQuery(Transporter nameTransporter, Transporter classTransporter, Transporter argumentsTransporter)
public Transporter executeQuery(Transporter remoteTransporter)
public CommandManager getCommandManager()
public Transporter getDefaultReadOnlyClasses()
public Transporter getDescriptor(Transporter remoteTransporter)
public Transporter getDescriptorForAlias(Transporter remoteTransporter)
public Transporter getLogin()
public java.util.Map<java.rmi.server.ObjID,ValueHolderInterface> getRemoteValueHolders()
public Transporter getSequenceNumberNamed(Transporter remoteFunctionCall)
public AbstractSession getSession()
public Transporter initializeIdentityMapsOnServerSession()
public Transporter instantiateRemoteValueHolderOnServer(Transporter remoteTransporter)
public java.util.Map replaceValueHoldersIn(java.lang.Object object)
public void replaceValueHoldersIn(java.lang.Object object, java.util.Map objectDescriptors)
public java.util.Map replaceValueHoldersInAll(java.lang.Object container, ContainerPolicy policy)
public Transporter rollbackTransaction()
public void saveRemoteValueHolder(RemoteValueHolder remoteValueHolder)
public Transporter scrollableCursorAbsolute(Transporter remoteScrollableCursorOid, int rows)
public Transporter scrollableCursorAfterLast(Transporter remoteScrollableCursorOid)
public Transporter scrollableCursorBeforeFirst(Transporter remoteScrollableCursorOid)
public Transporter scrollableCursorClose(Transporter remoteScrollableCursorOid)
public Transporter scrollableCursorCurrentIndex(Transporter remoteScrollableCursorOid)
public Transporter scrollableCursorFirst(Transporter remoteScrollableCursorOid)
public Transporter scrollableCursorIsAfterLast(Transporter remoteScrollableCursorOid)
public Transporter scrollableCursorIsBeforeFirst(Transporter remoteScrollableCursorOid)
public Transporter scrollableCursorIsFirst(Transporter remoteScrollableCursorOid)
public Transporter scrollableCursorIsLast(Transporter remoteScrollableCursorOid)
public Transporter scrollableCursorLast(Transporter remoteScrollableCursorOid)
public Transporter scrollableCursorNextObject(Transporter remoteScrollableCursorOid)
public Transporter scrollableCursorPreviousObject(Transporter remoteScrollableCursorOid)
public Transporter scrollableCursorRelative(Transporter remoteScrollableCursorOid, int rows)
public Transporter scrollableCursorSize(Transporter remoteCursorOid)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference