|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | 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.
| Constructor Summary |
ProxySession(oracle.toplink.internal.remote.RemoteConnection remoteConnection)
Deprecated. PUBLIC: Creates a ProxySession. |
| Method Summary |
| Type | Method |
|---|---|
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, rollbackTransaction,
toString |
| Methods inherited from class oracle.toplink.publicinterface.Session |
None |
| 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 UnitOfWork acquireUnitOfWork()
acquireUnitOfWork in class DistributedSession
public boolean compareObjects(java.lang.Object firstObject,
java.lang.Object secondObject)
compareObjects in class Session
public boolean compareObjectsDontMatch(java.lang.Object firstObject,
java.lang.Object secondObject)
compareObjectsDontMatch in class Sessionpublic boolean containsObjectInIdentityMap(java.lang.Object domainObject)
containsObjectInIdentityMap in class Session
public boolean containsObjectInIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass)
containsObjectInIdentityMap in class Sessionpublic java.lang.Object executeQuery(DatabaseQuery query)
executeQuery in class DistributedSessionoracle.toplink.publicinterface.SessionDatabaseQuerypublic ExceptionHandler getExceptionHandler()
getExceptionHandler in class Sessionpublic java.lang.Object getFromIdentityMap(java.lang.Object domainObject)
getFromIdentityMap in class Session
public java.lang.Object getFromIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass)
getFromIdentityMap in class Sessionpublic DatabaseLogin getLogin()
getLogin in class Sessionpublic SessionProfiler getProfiler()
getProfiler in class Sessionpublic void initializeAllIdentityMaps()
initializeAllIdentityMaps in class DistributedSessionpublic void initializeIdentityMap(java.lang.Class theClass)
initializeIdentityMap in class Sessionpublic void initializeIdentityMaps()
initializeIdentityMaps in class Sessionpublic void log(SessionLogEntry entry)
log in class Sessionpublic void printIdentityMap(java.lang.Class businessClass)
printIdentityMap in class Sessionpublic void printIdentityMaps()
printIdentityMaps in class Sessionpublic void removeFromIdentityMap(java.lang.Object domainObject)
removeFromIdentityMap in class Session
public void removeFromIdentityMap(java.util.Vector key,
java.lang.Class theClass)
removeFromIdentityMap in class Sessionpublic void setExceptionHandler(ExceptionHandler exceptionHandler)
setExceptionHandler in class Sessionpublic void setLog(java.io.Writer log)
setLog in class SessionSession.logMessages()public void setProfiler(SessionProfiler profiler)
setProfiler in class Sessionpublic void setSessionLog(SessionLog sessionLog)
setSessionLog in class SessionSession.logMessages()public void setShouldLogMessages(boolean shouldLogMessages)
setShouldLogMessages in class SessionsetLog(Writer)public boolean shouldLogMessages()
shouldLogMessages in class Sessionpublic void validateCache()
validateCache in class Session
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||