|
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
Purpose: Super class to all remote client session's.
Field Summary |
Fields inherited from interface oracle.toplink.remotecommand.CommandProcessor |
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING |
Constructor Summary | |
DistributedSession(oracle.toplink.internal.remote.RemoteConnection remoteConnection) PUBLIC: Creates a DistributedSession. |
Method Summary | |
abstract oracle.toplink.publicinterface.UnitOfWork |
acquireUnitOfWork() PUBLIC: Return a unit of work for this session. |
void |
beginTransaction() PUBLIC: Start a transaction on the server. |
void |
commitTransaction() PUBLIC: Commit a transaction on the server. |
abstract java.lang.Object |
executeQuery(DatabaseQuery query) Execute the database query. |
java.lang.Object |
executeQuery(java.lang.String queryName) PUBLIC: Execute the pre-defined query by name and return the result. |
java.lang.Object |
executeQuery(java.lang.String queryName, java.lang.Class domainClass) PUBLIC: Execute the pre-defined query by name and return the result. |
java.lang.Object |
executeQuery(java.lang.String queryName, java.lang.Class domainClass, java.util.Vector argumentValues) PUBLIC: Execute the pre-defined query by name and return the result. |
java.lang.Object |
executeQuery(java.lang.String queryName, java.util.Vector argumentValues) PUBLIC: Execute the pre-defined query by name and return the result. |
void |
initializeAllIdentityMaps() Reset the entire object cache. |
boolean |
isConnected() PUBLIC: Return if this session is connected. |
void |
release() PUBLIC: Logout the session, close the remote connection and release the hold resources |
void |
rollbackTransaction() PUBLIC: Rollback a transaction on the server. |
java.lang.String |
toString() PUBLIC: Avoid printing the accessor and platform. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DistributedSession(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 abstract oracle.toplink.publicinterface.UnitOfWork acquireUnitOfWork()
acquireUnitOfWork
in interface Session
acquireUnitOfWork
in class oracle.toplink.publicinterface.Session
UnitOfWork
public void beginTransaction()
beginTransaction
in class oracle.toplink.publicinterface.Session
Session.isInTransaction()
public void commitTransaction()
commitTransaction
in class oracle.toplink.publicinterface.Session
public java.lang.Object executeQuery(java.lang.String queryName) throws DatabaseException
executeQuery
in interface Session
executeQuery
in class oracle.toplink.publicinterface.Session
DatabaseException
Session.addQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName, java.lang.Class domainClass) throws DatabaseException
executeQuery
in interface Session
executeQuery
in class oracle.toplink.publicinterface.Session
DatabaseException
DescriptorQueryManager.addQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName, java.lang.Class domainClass, java.util.Vector argumentValues) throws DatabaseException
executeQuery
in interface Session
executeQuery
in class oracle.toplink.publicinterface.Session
DatabaseException
DescriptorQueryManager.addQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName, java.util.Vector argumentValues) throws DatabaseException
executeQuery
in interface Session
executeQuery
in class oracle.toplink.publicinterface.Session
DatabaseException
Session.addQuery(String, DatabaseQuery)
public abstract java.lang.Object executeQuery(DatabaseQuery query)
executeQuery
in interface Session
executeQuery
in class oracle.toplink.publicinterface.Session
DatabaseQuery
public void initializeAllIdentityMaps()
initializeAllIdentityMaps
in interface Session
initializeAllIdentityMaps
in class oracle.toplink.publicinterface.Session
public boolean isConnected()
isConnected
in interface Session
isConnected
in class oracle.toplink.publicinterface.Session
public void rollbackTransaction()
rollbackTransaction
in class oracle.toplink.publicinterface.Session
public java.lang.String toString()
toString
in class oracle.toplink.publicinterface.Session
public void release()
release
in interface Session
release
in class oracle.toplink.publicinterface.Session
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |