|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.toplink.internal.sessions.AbstractSession
oracle.toplink.remote.DistributedSession
public abstract class 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)Creates a DistributedSession. |
|
| Method Summary | |
|---|---|
abstract oracle.toplink.internal.sessions.UnitOfWorkImpl |
acquireUnitOfWork()Return a unit of work for this session. |
void |
beginTransaction()Start a transaction on the server. |
void |
commitTransaction()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)Execute the pre-defined query by name and return the result. |
java.lang.Object |
executeQuery(java.lang.String queryName, java.lang.Class domainClass)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)Execute the pre-defined query by name and return the result. |
java.lang.Object |
executeQuery(java.lang.String queryName, java.util.Vector argumentValues)Execute the pre-defined query by name and return the result. |
boolean |
isConnected()Return if this session is connected to the server. |
void |
release()Logout the session, close the remote connection and release the hold resources |
void |
rollbackTransaction()Rollback a transaction on the server. |
java.lang.String |
toString()Avoid printing the accessor and platform. |
| Methods inherited from class oracle.toplink.internal.sessions.AbstractSession |
|---|
addAlias, addQuery, clearIntegrityChecker, clearProfile, compareObjectsDontMatch, config, containsObjectInIdentityMap, containsObjectInIdentityMap, containsQuery, copyObject, copyObject, deleteAllObjects, deleteAllObjects, deleteObject, doesObjectExist, dontLogMessages, executeNonSelectingCall, executeNonSelectingSQL, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeSelectingCall, executeSQL, fine, finer, finest, getActiveSession, getActiveUnitOfWork, getAllFromIdentityMap, getAllFromIdentityMap, getAllFromIdentityMap, getAllQueries, getAsOfClause, getCacheSynchronizationManager, getClassDescriptor, getClassDescriptor, getClassDescriptorForAlias, getCommandManager, getDatasourceLogin, getDescriptor, getDescriptorForAlias, getDescriptors, getEjbqlPlaceHolderQueries, getEventManager, getExceptionHandler, getExternalTransactionController, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getIdentityMapAccessor, getIntegrityChecker, getLog, getLogin, getLogLevel, getLogLevel, getName, getNextSequenceNumberValue, getProfiler, getProject, getProperties, getProperty, getQueries, getQuery, getQuery, getSessionLog, getWriteLockValue, getWriteLockValue, handleException, handleSevere, hasCacheSynchronizationManager, hasDescriptor, hasExceptionHandler, hasExternalTransactionController, info, initializeAllIdentityMaps, initializeIdentityMap, initializeIdentityMaps, insertObject, isClassReadOnly, isClientSession, isDatabaseSession, isFinalizersEnabled, isInProfile, isInTransaction, isRemoteUnitOfWork, isServerSession, isSessionBroker, isUnitOfWork, keyFromObject, keyFromObject, log, log, log, log, log, log, log, log, log, log, log, logDebug, logDebug, logException, logMessage, logMessage, logMessages, logThrowable, printIdentityMap, printIdentityMaps, putInIdentityMap, putInIdentityMap, putInIdentityMap, putInIdentityMap, readAllObjects, readAllObjects, readAllObjects, readAllObjects, readObject, readObject, readObject, readObject, readObject, refreshAndLockObject, refreshAndLockObject, refreshObject, removeFromIdentityMap, removeFromIdentityMap, removeProperty, removeQuery, removeQuery, setCacheSynchronizationManager, setCommandManager, setDatasourceLogin, setExceptionHandler, setExternalTransactionController, setIntegrityChecker, setIsFinalizersEnabled, setIsInProfile, setLog, setLogin, setLogin, setLogLevel, setName, setProfiler, setProperty, setSessionLog, setSessionLog, setShouldLogMessages, setShouldPropagateChanges, setUseOldCommit, severe, shouldLog, shouldLogMessages, shouldPropagateChanges, updateObject, updateWriteLockValue, updateWriteLockValue, usesExternalTransactionController, usesOldCommit, validateCache, verifyDelete, warning, writeObject |
| 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.internal.sessions.UnitOfWorkImpl acquireUnitOfWork()
acquireUnitOfWork in interface SessionacquireUnitOfWork in class oracle.toplink.internal.sessions.AbstractSessionUnitOfWorkImplpublic void beginTransaction()
beginTransaction in class oracle.toplink.internal.sessions.AbstractSessionAbstractSession.isInTransaction()public void commitTransaction()
commitTransaction in class oracle.toplink.internal.sessions.AbstractSession
public java.lang.Object executeQuery(java.lang.String queryName)
throws DatabaseException
executeQuery in interface SessionexecuteQuery in class oracle.toplink.internal.sessions.AbstractSessionDatabaseExceptionAbstractSession.addQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName,
java.lang.Class domainClass)
throws DatabaseException
executeQuery in interface SessionexecuteQuery in class oracle.toplink.internal.sessions.AbstractSessionDatabaseExceptionDescriptorQueryManager.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 SessionexecuteQuery in class oracle.toplink.internal.sessions.AbstractSessionDatabaseExceptionDescriptorQueryManager.addQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName,
java.util.Vector argumentValues)
throws DatabaseException
executeQuery in interface SessionexecuteQuery in class oracle.toplink.internal.sessions.AbstractSessionDatabaseExceptionAbstractSession.addQuery(String, DatabaseQuery)public abstract java.lang.Object executeQuery(DatabaseQuery query)
executeQuery in interface SessionexecuteQuery in class oracle.toplink.internal.sessions.AbstractSessionDatabaseQuerypublic boolean isConnected()
isConnected in interface SessionisConnected in class oracle.toplink.internal.sessions.AbstractSessionpublic void rollbackTransaction()
rollbackTransaction in class oracle.toplink.internal.sessions.AbstractSessionpublic java.lang.String toString()
toString in class oracle.toplink.internal.sessions.AbstractSessionpublic void release()
release in interface Sessionrelease in class oracle.toplink.internal.sessions.AbstractSession
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||