|
Oracle Application Server TopLink API Reference 10g (9.0.4.3) B10491-02 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.toplink.internal.remote.RemoteConnection
oracle.toplink.remote.rmi.RMIConnection
This class exists on on the client side which talks to remote session controller through RMI connection.
| Constructor Summary | |
RMIConnection(RMIRemoteSessionController controller)PUBLIC: The connection must be create from the server-side session controllers stub. | |
| Method Summary | |
void |
addRemoteControllerForSynchronization(java.lang.Object remoteDispatcher)Deprecated. Since 4.0 |
void |
beginTransaction()INTERNAL: Begin a transaction on the database. |
oracle.toplink.internal.remote.RemoteUnitOfWork |
commitRootUnitOfWork(oracle.toplink.internal.remote.RemoteUnitOfWork theRemoteUnitOfWork)INTERNAL: Commit root unit of work from the client side to the server side. |
void |
commitTransaction()INTERNAL: Commit a transaction on the database. |
boolean |
compareObjects(java.lang.Object firstObject, java.lang.Object secondObject)TESTING: Return if the two object match completely. |
boolean |
compareObjectsDontMatch(java.lang.Object firstObject, java.lang.Object secondObject)TESTING: Return true if the object do not match. |
boolean |
containsObjectInIdentityMap(java.lang.Object domainObject)ADVANCED: Return if their is an object for the primary key. |
boolean |
containsObjectInIdentityMap(java.util.Vector primaryKey, java.lang.Class theClass)ADVANCED: Return if their is an object for the primary key. |
Session |
createProxySession()Deprecated. |
Session |
createRemoteSession()PUBLIC: Returns a remote session. |
void |
cursoredStreamClose(java.rmi.server.ObjID remoteCursoredStreamOid)Used for closing cursored streams across RMI. |
java.util.Vector |
cursoredStreamNextPage(oracle.toplink.internal.remote.RemoteCursoredStream remoteCursoredStream, ReadQuery query, RemoteSession session, int pageSize)Retrieve next page size of objects from the remote cursored stream |
int |
cursoredStreamSize(java.rmi.server.ObjID remoteCursoredStreamID)Return the cursored stream size |
oracle.toplink.internal.remote.RemoteCursoredStream |
cursorSelectObjects(CursoredStreamPolicy policy, DistributedSession session)INTERNAL: Returns remote cursor stream |
oracle.toplink.internal.remote.RemoteScrollableCursor |
cursorSelectObjects(ScrollableCursorPolicy policy, DistributedSession session)INTERNAL: Returns remote cursor stream |
void |
fixObjectReferences(oracle.toplink.internal.remote.Transporter remoteCursoredStream, ObjectLevelReadQuery query, RemoteSession session)INTERNAL: An object has been serialized from the server to the remote client. |
java.util.Vector |
getDefaultReadOnlyClasses()INTERNAL Return the read-only classes |
Descriptor |
getDescriptor(java.lang.Class domainClass)INTERNAL: Return the table descriptor specified for the class. |
ExceptionHandler |
getExceptionHandler()PUBLIC: Return the ExceptionHandler.Exception handler can catch errors that occur on queries or during database access. |
java.lang.Object |
getFromIdentityMap(java.lang.Object domainObject)ADVANCED: Return the object from the identity with primary and class of the given object. |
java.lang.Object |
getFromIdentityMap(java.util.Vector primaryKey, java.lang.Class theClass)ADVANCED: Return the object from the identity with the primary and class. |
java.io.Writer |
getLog()PUBLIC: Return the writer to which an accessor writes logged messages and SQL. |
DatabaseLogin |
getLogin()INTERNAL: Return the table descriptor specified for the class. |
SessionProfiler |
getProfiler()PUBLIC: Return the profiler. |
RMIRemoteSessionController |
getRemoteSessionController()INTERNAL: Return the remote session controller |
java.lang.Object |
getSequenceNumberNamed(java.lang.Object remoteFunctionCall)INTERNAL: Perform remote function call |
SessionLog |
getSessionLog()PUBLIC: Return the session log to which an accessor logs messages and SQL. |
void |
initializeIdentityMap(java.lang.Class theClass)PUBLIC: Reset the identity map for only the instances of the class. |
void |
initializeIdentityMapsOnServerSession()INTERNAL: Reset the cache on the server-side session. |
oracle.toplink.internal.remote.Transporter |
instantiateRemoteValueHolderOnServer(oracle.toplink.internal.remote.RemoteValueHolder remoteValueHolder)INTERNAL: Instantiate remote value holder on the server |
boolean |
isConnected()INTERNAL: Return if this session is connected. |
void |
log(SessionLogEntry entry)Log the log entry. |
void |
printIdentityMap(java.lang.Class theClass)PUBLIC: Used to print all the objects in the identity map of the passed in class. |
void |
printIdentityMaps()PUBLIC: Used to print all the objects in every identity map in this session. |
void |
processCommand(oracle.toplink.internal.remote.RemoteCommand command)ADVANCED: This method will send the command to the remote session for processing |
oracle.toplink.internal.remote.Transporter |
remoteExecute(DatabaseQuery query)INTERNAL: Execute the query on the server. |
oracle.toplink.internal.remote.Transporter |
remoteExecuteNamedQuery(java.lang.String name, java.lang.Class javaClass, java.util.Vector arguments)INTERNAL: Execute query remotely. |
void |
removeFromIdentityMap(java.lang.Object domainObject)ADVANCED: Remove the object from the object cache. |
void |
removeFromIdentityMap(java.util.Vector key, java.lang.Class theClass)ADVANCED: Remove the object from the object cache. |
void |
rollbackTransaction()INTERNAL: Rollback a transaction on the database. |
boolean |
scrollableCursorAbsolute(java.rmi.server.ObjID remoteScrollableCursorOid, int rows)Moves the cursor to the given row number in the result set |
void |
scrollableCursorAfterLast(java.rmi.server.ObjID remoteScrollableCursorOid)Moves the cursor to the end of the result set, just after the last row. |
void |
scrollableCursorBeforeFirst(java.rmi.server.ObjID remoteScrollableCursorOid)Moves the cursor to the front of the result set, just before the first row |
void |
scrollableCursorClose(java.rmi.server.ObjID remoteScrollableCursorOid)Used for closing scrollable cursor across RMI. |
int |
scrollableCursorCurrentIndex(java.rmi.server.ObjID remoteScrollableCursorOid)Retrieves the current row index number |
boolean |
scrollableCursorFirst(java.rmi.server.ObjID remoteScrollableCursorOid)Moves the cursor to the first row in the result set |
boolean |
scrollableCursorIsAfterLast(java.rmi.server.ObjID remoteScrollableCursorOid)Indicates whether the cursor is after the last row in the result set. |
boolean |
scrollableCursorIsBeforeFirst(java.rmi.server.ObjID remoteScrollableCursorOid)Indicates whether the cursor is before the first row in the result set. |
boolean |
scrollableCursorIsFirst(java.rmi.server.ObjID remoteScrollableCursorOid)Indicates whether the cursor is on the first row of the result set. |
boolean |
scrollableCursorIsLast(java.rmi.server.ObjID remoteScrollableCursorOid)Indicates whether the cursor is on the last row of the result set. |
boolean |
scrollableCursorLast(java.rmi.server.ObjID remoteScrollableCursorOid)Moves the cursor to the last row in the result set |
java.lang.Object |
scrollableCursorNextObject(java.rmi.server.ObjID remoteScrollableCursorOid, ReadQuery query, RemoteSession session)Retrieve next object from the remote scrollable cursor |
java.lang.Object |
scrollableCursorPreviousObject(java.rmi.server.ObjID remoteScrollableCursorOid, ReadQuery query, RemoteSession session)Retrieve previous object from the remote scrollable cursor |
boolean |
scrollableCursorRelative(java.rmi.server.ObjID remoteScrollableCursorOid, int rows)Moves the cursor to the given row number in the result set |
int |
scrollableCursorSize(java.rmi.server.ObjID cursorId)Return the scrollable cursor size |
void |
setExceptionHandler(ExceptionHandler exceptionHandler)PUBLIC: Set the exceptionHandler. |
void |
setLog(java.io.Writer log)PUBLIC: Set the writer to which an accessor writes logged messages and SQL. |
void |
setLogin(DatabaseLogin login)INTERNAL: Set the login. |
void |
setProfiler(SessionProfiler profiler)PUBLIC: Set the profiler for the session. |
void |
setRemoteSessionController(RMIRemoteSessionController remoteSessionController)INTERNAL: Set remote session controller |
void |
setSessionLog(SessionLog sessionLog)PUBLIC: Set the session log to which an accessor logs messages and SQL. |
void |
setShouldLogMessages(boolean shouldLogMessages)PUBLIC: Set messages logging. |
boolean |
shouldLogMessages()Return if all messages such as executed SQL commands should be logged. |
void |
validateCache()ADVANCED: This can be used to help debugging an object identity problem. |
boolean |
verifyDelete(java.lang.Object domainObject)INTERNAL: TESTING: This is used by testing code to ensure that a deletion was successful. |
| Methods inherited from class oracle.toplink.internal.remote.RemoteConnection |
getServiceName, release, setServiceName |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RMIConnection(RMIRemoteSessionController controller)
#createRemoteSession();| Method Detail |
public void addRemoteControllerForSynchronization(java.lang.Object remoteDispatcher)
throws java.lang.Exception
java.lang.Exceptionpublic void processCommand(oracle.toplink.internal.remote.RemoteCommand command)
command - RemoteCOmmand Contains a command that will be executed on the remote sessionoracle.toplink.internal.RemoteCommandpublic void beginTransaction()
public oracle.toplink.internal.remote.RemoteUnitOfWork commitRootUnitOfWork(oracle.toplink.internal.remote.RemoteUnitOfWork theRemoteUnitOfWork)
public void commitTransaction()
public boolean compareObjects(java.lang.Object firstObject,
java.lang.Object secondObject)
public boolean compareObjectsDontMatch(java.lang.Object firstObject,
java.lang.Object secondObject)
public boolean containsObjectInIdentityMap(java.lang.Object domainObject)
public boolean containsObjectInIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass)
public Session createProxySession()
public Session createRemoteSession()
public void cursoredStreamClose(java.rmi.server.ObjID remoteCursoredStreamOid)
public java.util.Vector cursoredStreamNextPage(oracle.toplink.internal.remote.RemoteCursoredStream remoteCursoredStream,
ReadQuery query,
RemoteSession session,
int pageSize)
public int cursoredStreamSize(java.rmi.server.ObjID remoteCursoredStreamID)
public oracle.toplink.internal.remote.RemoteCursoredStream cursorSelectObjects(CursoredStreamPolicy policy, DistributedSession session)
public oracle.toplink.internal.remote.RemoteScrollableCursor cursorSelectObjects(ScrollableCursorPolicy policy, DistributedSession session)
public void fixObjectReferences(oracle.toplink.internal.remote.Transporter remoteCursoredStream, ObjectLevelReadQuery query, RemoteSession session)
public java.util.Vector getDefaultReadOnlyClasses()
public Descriptor getDescriptor(java.lang.Class domainClass)
public ExceptionHandler getExceptionHandler()
public java.lang.Object getFromIdentityMap(java.lang.Object domainObject)
public java.lang.Object getFromIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass)
public java.io.Writer getLog()
#logMessages()public DatabaseLogin getLogin()
public SessionProfiler getProfiler()
public RMIRemoteSessionController getRemoteSessionController()
public java.lang.Object getSequenceNumberNamed(java.lang.Object remoteFunctionCall)
public SessionLog getSessionLog()
#logMessages()public void initializeIdentityMap(java.lang.Class theClass)
public void initializeIdentityMapsOnServerSession()
public oracle.toplink.internal.remote.Transporter instantiateRemoteValueHolderOnServer(oracle.toplink.internal.remote.RemoteValueHolder remoteValueHolder)
public boolean isConnected()
public void log(SessionLogEntry entry)
public void printIdentityMap(java.lang.Class theClass)
public void printIdentityMaps()
public oracle.toplink.internal.remote.Transporter remoteExecute(DatabaseQuery query)
public oracle.toplink.internal.remote.Transporter remoteExecuteNamedQuery(java.lang.String name,
java.lang.Class javaClass,
java.util.Vector arguments)
public void removeFromIdentityMap(java.lang.Object domainObject)
public void removeFromIdentityMap(java.util.Vector key,
java.lang.Class theClass)
public void rollbackTransaction()
public boolean scrollableCursorAbsolute(java.rmi.server.ObjID remoteScrollableCursorOid,
int rows)
public void scrollableCursorAfterLast(java.rmi.server.ObjID remoteScrollableCursorOid)
public void scrollableCursorBeforeFirst(java.rmi.server.ObjID remoteScrollableCursorOid)
public void scrollableCursorClose(java.rmi.server.ObjID remoteScrollableCursorOid)
public int scrollableCursorCurrentIndex(java.rmi.server.ObjID remoteScrollableCursorOid)
public boolean scrollableCursorFirst(java.rmi.server.ObjID remoteScrollableCursorOid)
public boolean scrollableCursorIsAfterLast(java.rmi.server.ObjID remoteScrollableCursorOid)
public boolean scrollableCursorIsBeforeFirst(java.rmi.server.ObjID remoteScrollableCursorOid)
public boolean scrollableCursorIsFirst(java.rmi.server.ObjID remoteScrollableCursorOid)
public boolean scrollableCursorIsLast(java.rmi.server.ObjID remoteScrollableCursorOid)
public boolean scrollableCursorLast(java.rmi.server.ObjID remoteScrollableCursorOid)
public java.lang.Object scrollableCursorNextObject(java.rmi.server.ObjID remoteScrollableCursorOid, ReadQuery query, RemoteSession session)
public java.lang.Object scrollableCursorPreviousObject(java.rmi.server.ObjID remoteScrollableCursorOid, ReadQuery query, RemoteSession session)
public boolean scrollableCursorRelative(java.rmi.server.ObjID remoteScrollableCursorOid,
int rows)
public int scrollableCursorSize(java.rmi.server.ObjID cursorId)
public void setExceptionHandler(ExceptionHandler exceptionHandler)
public void setLog(java.io.Writer log)
#logMessages()public void setLogin(DatabaseLogin login)
public void setProfiler(SessionProfiler profiler)
public void setRemoteSessionController(RMIRemoteSessionController remoteSessionController)
public void setSessionLog(SessionLog sessionLog)
#logMessages()public void setShouldLogMessages(boolean shouldLogMessages)
setLog(Writer)public boolean shouldLogMessages()
public void validateCache()
public boolean verifyDelete(java.lang.Object domainObject)
|
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||