|
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.publicinterface.Session
|
+--oracle.toplink.remote.DistributedSession
|
+--oracle.toplink.remote.ProxySession
OBSOLETE: Purpose: Provide transparent remote three-tiered replacation support. The proxy session allows for complex three-tiered applications to be easily built. It is similar to the remote session but does not do any client side processing. All call are forwarded to the server, no caching or units of work can be done locally, and object identity is not maintained. Normally the remote session is preffered to the proxy session, however in some cases a very light session that has little functionality is desired.
This session is a primary interface which resides on the client side. Users would interact with session just the same way as if it was a normal session.
| Field Summary |
| Fields inherited from interface oracle.toplink.remotecommand.CommandProcessor |
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING |
| Constructor Summary | |
ProxySession(oracle.toplink.internal.remote.RemoteConnection remoteConnection)Deprecated. PUBLIC: Creates a ProxySession. | |
| Method Summary | |
oracle.toplink.publicinterface.UnitOfWork |
acquireUnitOfWork()Deprecated. PUBLIC: Return a unit of work for this session. |
boolean |
compareObjects(java.lang.Object firstObject, java.lang.Object secondObject)Deprecated. TESTING: Return if the two objects match completely. |
boolean |
compareObjectsDontMatch(java.lang.Object firstObject, java.lang.Object secondObject)Deprecated. TESTING: Return true if two objects do not match. |
boolean |
containsObjectInIdentityMap(java.lang.Object domainObject)Deprecated. ADVANCED: Return if the domain object is in the identity map |
boolean |
containsObjectInIdentityMap(java.util.Vector primaryKey, java.lang.Class theClass)Deprecated. ADVANCED: Return if the domain object (the instance of a class with primary key) is in the identity map |
java.lang.Object |
executeQuery(DatabaseQuery query)Deprecated. PUBLIC: Execute the database query. |
ExceptionHandler |
getExceptionHandler()Deprecated. PUBLIC: Return a ExceptionHandler. |
java.lang.Object |
getFromIdentityMap(java.lang.Object domainObject)Deprecated. ADVANCED: Return the object from the identity with the given object. |
java.lang.Object |
getFromIdentityMap(java.util.Vector primaryKey, java.lang.Class theClass)Deprecated. ADVANCED: Return the object from the identity with the primary key and class. |
DatabaseLogin |
getLogin()Deprecated. PUBLIC: Return the login. |
SessionProfiler |
getProfiler()Deprecated. PUBLIC: Return the profiler. |
void |
initializeAllIdentityMaps()Deprecated. PUBLIC: Reset the entire object cache. |
void |
initializeIdentityMap(java.lang.Class theClass)Deprecated. PUBLIC: Reset the identity map for only the instances of the class. |
void |
initializeIdentityMaps()Deprecated. PUBLIC: This method clear the cache on the server. |
void |
log(SessionLogEntry entry)Deprecated. PUBLIC: Log the log entry. |
void |
printIdentityMap(java.lang.Class businessClass)Deprecated. PUBLIC: Used to print all the objects in the identity map of the passed in class. |
void |
printIdentityMaps()Deprecated. PUBLIC: Used to print all the objects in every identity map in this session. |
void |
removeFromIdentityMap(java.lang.Object domainObject)Deprecated. ADVANCED: Remove the object from the object cache. |
void |
removeFromIdentityMap(java.util.Vector key, java.lang.Class theClass)Deprecated. ADVANCED: Remove the object from the object cache. |
void |
setExceptionHandler(ExceptionHandler exceptionHandler)Deprecated. PUBLIC: Set the exceptionHandler. |
void |
setLog(java.io.Writer log)Deprecated. PUBLIC: Set the writer to which an accessor writes logged messages and SQL. |
void |
setProfiler(SessionProfiler profiler)Deprecated. PUBLIC: Set the profiler for the session. |
void |
setSessionLog(SessionLog sessionLog)Deprecated. PUBLIC: Set the session log to which an accessor logs messages and SQL. |
void |
setShouldLogMessages(boolean shouldLogMessages)Deprecated. PUBLIC: Set messages logging. |
boolean |
shouldLogMessages()Deprecated. PUBLIC: Return if all messages such as executed SQL commands should be logged. |
void |
validateCache()Deprecated. ADVANCED: This can be used to help debugging an object identity problem. |
| Methods inherited from class oracle.toplink.remote.DistributedSession |
beginTransaction, commitTransaction, executeQuery, executeQuery, executeQuery, executeQuery, isConnected, release, rollbackTransaction, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ProxySession(oracle.toplink.internal.remote.RemoteConnection remoteConnection)
remoteConnection - remote session requires a remote connection. This must be accessed remotely from the client through RMI or CORBA.| Method Detail |
public oracle.toplink.publicinterface.UnitOfWork acquireUnitOfWork()
acquireUnitOfWork in interface SessionacquireUnitOfWork in class DistributedSessionUnitOfWork
public boolean compareObjects(java.lang.Object firstObject,
java.lang.Object secondObject)
compareObjects in class oracle.toplink.publicinterface.Session
public boolean compareObjectsDontMatch(java.lang.Object firstObject,
java.lang.Object secondObject)
compareObjectsDontMatch in class oracle.toplink.publicinterface.Sessionpublic boolean containsObjectInIdentityMap(java.lang.Object domainObject)
containsObjectInIdentityMap in interface SessioncontainsObjectInIdentityMap in class oracle.toplink.publicinterface.Session
public boolean containsObjectInIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass)
containsObjectInIdentityMap in interface SessioncontainsObjectInIdentityMap in class oracle.toplink.publicinterface.Sessionpublic java.lang.Object executeQuery(DatabaseQuery query)
executeQuery in interface SessionexecuteQuery in class DistributedSessionDatabaseQuerypublic ExceptionHandler getExceptionHandler()
getExceptionHandler in interface SessiongetExceptionHandler in class oracle.toplink.publicinterface.Sessionpublic java.lang.Object getFromIdentityMap(java.lang.Object domainObject)
getFromIdentityMap in interface SessiongetFromIdentityMap in class oracle.toplink.publicinterface.Session
public java.lang.Object getFromIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass)
getFromIdentityMap in interface SessiongetFromIdentityMap in class oracle.toplink.publicinterface.Sessionpublic DatabaseLogin getLogin()
getLogin in interface SessiongetLogin in class oracle.toplink.publicinterface.Sessionpublic SessionProfiler getProfiler()
getProfiler in interface SessiongetProfiler in class oracle.toplink.publicinterface.Sessionpublic void initializeAllIdentityMaps()
initializeAllIdentityMaps in interface SessioninitializeAllIdentityMaps in class DistributedSessionpublic void initializeIdentityMap(java.lang.Class theClass)
initializeIdentityMap in interface SessioninitializeIdentityMap in class oracle.toplink.publicinterface.Sessionpublic void initializeIdentityMaps()
initializeIdentityMaps in interface SessioninitializeIdentityMaps in class oracle.toplink.publicinterface.Sessionpublic void log(SessionLogEntry entry)
log in interface Sessionlog in class oracle.toplink.publicinterface.Sessionpublic void printIdentityMap(java.lang.Class businessClass)
printIdentityMap in interface SessionprintIdentityMap in class oracle.toplink.publicinterface.Sessionpublic void printIdentityMaps()
printIdentityMaps in interface SessionprintIdentityMaps in class oracle.toplink.publicinterface.Sessionpublic void removeFromIdentityMap(java.lang.Object domainObject)
removeFromIdentityMap in interface SessionremoveFromIdentityMap in class oracle.toplink.publicinterface.Session
public void removeFromIdentityMap(java.util.Vector key,
java.lang.Class theClass)
removeFromIdentityMap in interface SessionremoveFromIdentityMap in class oracle.toplink.publicinterface.Sessionpublic void setExceptionHandler(ExceptionHandler exceptionHandler)
setExceptionHandler in interface SessionsetExceptionHandler in class oracle.toplink.publicinterface.Sessionpublic void setLog(java.io.Writer log)
setLog in interface SessionsetLog in class oracle.toplink.publicinterface.SessionSession.logMessages()public void setProfiler(SessionProfiler profiler)
setProfiler in interface SessionsetProfiler in class oracle.toplink.publicinterface.Sessionpublic void setSessionLog(SessionLog sessionLog)
setSessionLog in interface SessionsetSessionLog in class oracle.toplink.publicinterface.SessionSession.logMessages()public void setShouldLogMessages(boolean shouldLogMessages)
setShouldLogMessages in interface SessionsetShouldLogMessages in class oracle.toplink.publicinterface.SessionsetLog(Writer)public boolean shouldLogMessages()
shouldLogMessages in interface SessionshouldLogMessages in class oracle.toplink.publicinterface.Sessionpublic void validateCache()
validateCache in interface SessionvalidateCache in class oracle.toplink.publicinterface.Session
|
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||