|
Oracle Application Server TopLink API Reference 10g Release 2 (10.1.2) B15903-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 Session
acquireUnitOfWork
in class DistributedSession
UnitOfWork
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.Session
public boolean containsObjectInIdentityMap(java.lang.Object domainObject)
containsObjectInIdentityMap
in interface Session
containsObjectInIdentityMap
in class oracle.toplink.publicinterface.Session
public boolean containsObjectInIdentityMap(java.util.Vector primaryKey, java.lang.Class theClass)
containsObjectInIdentityMap
in interface Session
containsObjectInIdentityMap
in class oracle.toplink.publicinterface.Session
public java.lang.Object executeQuery(DatabaseQuery query)
executeQuery
in interface Session
executeQuery
in class DistributedSession
public ExceptionHandler getExceptionHandler()
getExceptionHandler
in interface Session
getExceptionHandler
in class oracle.toplink.publicinterface.Session
public java.lang.Object getFromIdentityMap(java.lang.Object domainObject)
getFromIdentityMap
in interface Session
getFromIdentityMap
in class oracle.toplink.publicinterface.Session
public java.lang.Object getFromIdentityMap(java.util.Vector primaryKey, java.lang.Class theClass)
getFromIdentityMap
in interface Session
getFromIdentityMap
in class oracle.toplink.publicinterface.Session
public DatabaseLogin getLogin()
getLogin
in interface Session
getLogin
in class oracle.toplink.publicinterface.Session
public SessionProfiler getProfiler()
getProfiler
in interface Session
getProfiler
in class oracle.toplink.publicinterface.Session
public void initializeAllIdentityMaps()
initializeAllIdentityMaps
in interface Session
initializeAllIdentityMaps
in class DistributedSession
public void initializeIdentityMap(java.lang.Class theClass)
initializeIdentityMap
in interface Session
initializeIdentityMap
in class oracle.toplink.publicinterface.Session
public void initializeIdentityMaps()
initializeIdentityMaps
in interface Session
initializeIdentityMaps
in class oracle.toplink.publicinterface.Session
public void log(SessionLogEntry entry)
log
in interface Session
log
in class oracle.toplink.publicinterface.Session
public void printIdentityMap(java.lang.Class businessClass)
printIdentityMap
in interface Session
printIdentityMap
in class oracle.toplink.publicinterface.Session
public void printIdentityMaps()
printIdentityMaps
in interface Session
printIdentityMaps
in class oracle.toplink.publicinterface.Session
public void removeFromIdentityMap(java.lang.Object domainObject)
removeFromIdentityMap
in interface Session
removeFromIdentityMap
in class oracle.toplink.publicinterface.Session
public void removeFromIdentityMap(java.util.Vector key, java.lang.Class theClass)
removeFromIdentityMap
in interface Session
removeFromIdentityMap
in class oracle.toplink.publicinterface.Session
public void setExceptionHandler(ExceptionHandler exceptionHandler)
setExceptionHandler
in interface Session
setExceptionHandler
in class oracle.toplink.publicinterface.Session
public void setLog(java.io.Writer log)
setLog
in interface Session
setLog
in class oracle.toplink.publicinterface.Session
Session.logMessages()
public void setProfiler(SessionProfiler profiler)
setProfiler
in interface Session
setProfiler
in class oracle.toplink.publicinterface.Session
public void setSessionLog(SessionLog sessionLog)
setSessionLog
in interface Session
setSessionLog
in class oracle.toplink.publicinterface.Session
Session.logMessages()
public void setShouldLogMessages(boolean shouldLogMessages)
setShouldLogMessages
in interface Session
setShouldLogMessages
in class oracle.toplink.publicinterface.Session
setLog(Writer)
public boolean shouldLogMessages()
shouldLogMessages
in interface Session
shouldLogMessages
in class oracle.toplink.publicinterface.Session
public void validateCache()
validateCache
in interface Session
validateCache
in class oracle.toplink.publicinterface.Session
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |