|
Oracle Application Server TopLink API Reference 10g (9.0.4) B10491-01 | |||||||||
| 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.ejb.EJBConnection
This class exists on on the client side which talks to remote session controller through RMI connection.
| Constructor Summary | |
EJBConnection(RemoteSessionController 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()PUBLIC: Begin a transaction on the database. |
void |
commitTransaction()PUBLIC: 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 an object is in the identity map |
boolean |
containsObjectInIdentityMap(java.util.Vector primaryKey, java.lang.Class theClass)ADVANCED: Return if an insatnce of class with known primary key is in the identity map |
Session |
createProxySession()PUBLIC: Returns a proxy session. |
Session |
createRemoteSession()PUBLIC: Returns a remote session. |
void |
cursoredStreamClose(java.rmi.server.ObjID remoteCursoredStreamOid)PUBLIC: Close cursored stream across RMI. |
java.util.Vector |
cursoredStreamNextPage(oracle.toplink.internal.remote.RemoteCursoredStream remoteCursoredStream, ReadQuery query, RemoteSession session, int pageSize)PUBLIC: Retrieve next page size of objects from the cursored stream. |
int |
cursoredStreamSize(java.rmi.server.ObjID remoteCursoredStreamID)PUBLIC: Return the cursored stream size. |
Descriptor |
getDescriptor(java.lang.Class domainClass)PUBLIC: Extract descriptor from the session |
ExceptionHandler |
getExceptionHandler()PUBLIC: Return the ExceptionHandler. |
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. |
SessionProfiler |
getProfiler()PUBLIC: Return the profiler. |
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()PUBLIC: Reset the identity map for only the instances of the class on the server-side session. |
void |
log(SessionLogEntry entry)PUBLIC: Log the log entry. |
void |
printIdentityMap(java.lang.Class theClass)PUBLIC: Print all instances of the specified class in the identity map. |
void |
printIdentityMaps()PUBLIC: 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 |
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()PUBLIC: Rollback a transaction on the database. |
boolean |
scrollableCursorAbsolute(java.rmi.server.ObjID remoteScrollableCursorOid, int rows)PUBLIC: Move the cursor to the given row number in the result set. |
void |
scrollableCursorAfterLast(java.rmi.server.ObjID remoteScrollableCursorOid)PUBLIC: Move the cursor to the end of the result set, just after the last row. |
void |
scrollableCursorBeforeFirst(java.rmi.server.ObjID remoteScrollableCursorOid)PUBLIC: Move the cursor to the front of the result set, just before the first row. |
void |
scrollableCursorClose(java.rmi.server.ObjID remoteScrollableCursorOid)PUBLIC: Close the scrollable cursor across RMI. |
int |
scrollableCursorCurrentIndex(java.rmi.server.ObjID remoteScrollableCursorOid)PUBLIC: Retrieve the current row index number. |
boolean |
scrollableCursorFirst(java.rmi.server.ObjID remoteScrollableCursorOid)PUBLIC: Move the cursor to the first row in the result set. |
boolean |
scrollableCursorIsAfterLast(java.rmi.server.ObjID remoteScrollableCursorOid)PUBLIC: Indicate whether the cursor is after the last row in the result set. |
boolean |
scrollableCursorIsBeforeFirst(java.rmi.server.ObjID remoteScrollableCursorOid)PUBLIC: Indicate whether the cursor is before the first row in the result set. |
boolean |
scrollableCursorIsFirst(java.rmi.server.ObjID remoteScrollableCursorOid)PUBLIC: Indicate whether the cursor is on the first row of the result set. |
boolean |
scrollableCursorIsLast(java.rmi.server.ObjID remoteScrollableCursorOid)PUBLIC: Indicate whether the cursor is on the last row of the result set. |
boolean |
scrollableCursorLast(java.rmi.server.ObjID remoteScrollableCursorOid)PUBLIC: Move the cursor to the last row in the result set |
java.lang.Object |
scrollableCursorNextObject(java.rmi.server.ObjID remoteScrollableCursorOid, ReadQuery query, RemoteSession session)PUBLIC: Retrieve next object from the scrollable cursor. |
java.lang.Object |
scrollableCursorPreviousObject(java.rmi.server.ObjID remoteScrollableCursorOid, ReadQuery query, RemoteSession session)PUBLIC: Retrieve previous object from the scrollable cursor. |
boolean |
scrollableCursorRelative(java.rmi.server.ObjID remoteScrollableCursorOid, int rows)PUBLIC: Move the cursor to the given row number in the result set. |
int |
scrollableCursorSize(java.rmi.server.ObjID cursorId)PUBLIC: Return the 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)PUBLIC: Set the login. |
void |
setProfiler(SessionProfiler profiler)PUBLIC: Set the profiler for the session. |
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()PUBLIC: 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. |
| Methods inherited from class oracle.toplink.internal.remote.RemoteConnection |
getServiceName, setServiceName |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EJBConnection(RemoteSessionController controller)
| Method Detail |
public void addRemoteControllerForSynchronization(java.lang.Object remoteDispatcher)
throws java.lang.Exception
addRemoteControllerForSynchronization in class oracle.toplink.internal.remote.RemoteConnectionjava.lang.Exceptionpublic void processCommand(oracle.toplink.internal.remote.RemoteCommand command)
processCommand in class oracle.toplink.internal.remote.RemoteConnectioncommand - RemoteCOmmand Contains a command that will be executed on the remote sessionoracle.toplink.internal.RemoteCommandpublic void beginTransaction()
beginTransaction in class oracle.toplink.internal.remote.RemoteConnectionpublic void commitTransaction()
commitTransaction in class oracle.toplink.internal.remote.RemoteConnection
public boolean compareObjects(java.lang.Object firstObject,
java.lang.Object secondObject)
compareObjects in class oracle.toplink.internal.remote.RemoteConnection
public boolean compareObjectsDontMatch(java.lang.Object firstObject,
java.lang.Object secondObject)
compareObjectsDontMatch in class oracle.toplink.internal.remote.RemoteConnectionpublic boolean containsObjectInIdentityMap(java.lang.Object domainObject)
containsObjectInIdentityMap in class oracle.toplink.internal.remote.RemoteConnection
public boolean containsObjectInIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass)
containsObjectInIdentityMap in class oracle.toplink.internal.remote.RemoteConnectionpublic Session createProxySession()
public Session createRemoteSession()
createRemoteSession in class oracle.toplink.internal.remote.RemoteConnectionpublic void cursoredStreamClose(java.rmi.server.ObjID remoteCursoredStreamOid)
cursoredStreamClose in class oracle.toplink.internal.remote.RemoteConnection
public java.util.Vector cursoredStreamNextPage(oracle.toplink.internal.remote.RemoteCursoredStream remoteCursoredStream,
ReadQuery query,
RemoteSession session,
int pageSize)
cursoredStreamNextPage in class oracle.toplink.internal.remote.RemoteConnectionpublic int cursoredStreamSize(java.rmi.server.ObjID remoteCursoredStreamID)
cursoredStreamSize in class oracle.toplink.internal.remote.RemoteConnectionpublic Descriptor getDescriptor(java.lang.Class domainClass)
getDescriptor in class oracle.toplink.internal.remote.RemoteConnectionpublic ExceptionHandler getExceptionHandler()
getExceptionHandler in class oracle.toplink.internal.remote.RemoteConnectionpublic java.lang.Object getFromIdentityMap(java.lang.Object domainObject)
getFromIdentityMap in class oracle.toplink.internal.remote.RemoteConnection
public java.lang.Object getFromIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass)
getFromIdentityMap in class oracle.toplink.internal.remote.RemoteConnectionpublic java.io.Writer getLog()
getLog in class oracle.toplink.internal.remote.RemoteConnection#logMessages()public SessionProfiler getProfiler()
getProfiler in class oracle.toplink.internal.remote.RemoteConnectionpublic SessionLog getSessionLog()
getSessionLog in class oracle.toplink.internal.remote.RemoteConnection#logMessages()public void initializeIdentityMap(java.lang.Class theClass)
initializeIdentityMap in class oracle.toplink.internal.remote.RemoteConnectionpublic void initializeIdentityMapsOnServerSession()
initializeIdentityMapsOnServerSession in class oracle.toplink.internal.remote.RemoteConnectionpublic void log(SessionLogEntry entry)
log in class oracle.toplink.internal.remote.RemoteConnectionpublic void printIdentityMap(java.lang.Class theClass)
printIdentityMap in class oracle.toplink.internal.remote.RemoteConnectionpublic void printIdentityMaps()
printIdentityMaps in class oracle.toplink.internal.remote.RemoteConnectionpublic void removeFromIdentityMap(java.lang.Object domainObject)
removeFromIdentityMap in class oracle.toplink.internal.remote.RemoteConnection
public void removeFromIdentityMap(java.util.Vector key,
java.lang.Class theClass)
removeFromIdentityMap in class oracle.toplink.internal.remote.RemoteConnectionpublic void rollbackTransaction()
rollbackTransaction in class oracle.toplink.internal.remote.RemoteConnection
public boolean scrollableCursorAbsolute(java.rmi.server.ObjID remoteScrollableCursorOid,
int rows)
scrollableCursorAbsolute in class oracle.toplink.internal.remote.RemoteConnectionpublic void scrollableCursorAfterLast(java.rmi.server.ObjID remoteScrollableCursorOid)
scrollableCursorAfterLast in class oracle.toplink.internal.remote.RemoteConnectionpublic void scrollableCursorBeforeFirst(java.rmi.server.ObjID remoteScrollableCursorOid)
scrollableCursorBeforeFirst in class oracle.toplink.internal.remote.RemoteConnectionpublic void scrollableCursorClose(java.rmi.server.ObjID remoteScrollableCursorOid)
scrollableCursorClose in class oracle.toplink.internal.remote.RemoteConnectionpublic int scrollableCursorCurrentIndex(java.rmi.server.ObjID remoteScrollableCursorOid)
scrollableCursorCurrentIndex in class oracle.toplink.internal.remote.RemoteConnectionpublic boolean scrollableCursorFirst(java.rmi.server.ObjID remoteScrollableCursorOid)
scrollableCursorFirst in class oracle.toplink.internal.remote.RemoteConnectionpublic boolean scrollableCursorIsAfterLast(java.rmi.server.ObjID remoteScrollableCursorOid)
scrollableCursorIsAfterLast in class oracle.toplink.internal.remote.RemoteConnectionpublic boolean scrollableCursorIsBeforeFirst(java.rmi.server.ObjID remoteScrollableCursorOid)
scrollableCursorIsBeforeFirst in class oracle.toplink.internal.remote.RemoteConnectionpublic boolean scrollableCursorIsFirst(java.rmi.server.ObjID remoteScrollableCursorOid)
scrollableCursorIsFirst in class oracle.toplink.internal.remote.RemoteConnectionpublic boolean scrollableCursorIsLast(java.rmi.server.ObjID remoteScrollableCursorOid)
scrollableCursorIsLast in class oracle.toplink.internal.remote.RemoteConnectionpublic boolean scrollableCursorLast(java.rmi.server.ObjID remoteScrollableCursorOid)
scrollableCursorLast in class oracle.toplink.internal.remote.RemoteConnectionpublic java.lang.Object scrollableCursorNextObject(java.rmi.server.ObjID remoteScrollableCursorOid, ReadQuery query, RemoteSession session)
scrollableCursorNextObject in class oracle.toplink.internal.remote.RemoteConnectionpublic java.lang.Object scrollableCursorPreviousObject(java.rmi.server.ObjID remoteScrollableCursorOid, ReadQuery query, RemoteSession session)
scrollableCursorPreviousObject in class oracle.toplink.internal.remote.RemoteConnection
public boolean scrollableCursorRelative(java.rmi.server.ObjID remoteScrollableCursorOid,
int rows)
scrollableCursorRelative in class oracle.toplink.internal.remote.RemoteConnectionpublic int scrollableCursorSize(java.rmi.server.ObjID cursorId)
scrollableCursorSize in class oracle.toplink.internal.remote.RemoteConnectionpublic void setExceptionHandler(ExceptionHandler exceptionHandler)
setExceptionHandler in class oracle.toplink.internal.remote.RemoteConnectionpublic void setLog(java.io.Writer log)
setLog in class oracle.toplink.internal.remote.RemoteConnection#logMessages()public void setLogin(DatabaseLogin login)
setLogin in class oracle.toplink.internal.remote.RemoteConnectionpublic void setProfiler(SessionProfiler profiler)
setProfiler in class oracle.toplink.internal.remote.RemoteConnectionpublic void setSessionLog(SessionLog sessionLog)
setSessionLog in class oracle.toplink.internal.remote.RemoteConnection#logMessages()public void setShouldLogMessages(boolean shouldLogMessages)
setShouldLogMessages in class oracle.toplink.internal.remote.RemoteConnectionsetLog(Writer)public boolean shouldLogMessages()
shouldLogMessages in class oracle.toplink.internal.remote.RemoteConnectionpublic void validateCache()
validateCache in class oracle.toplink.internal.remote.RemoteConnection
|
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||