|
Oracle Application Server TopLink API Reference 10g (9.0.4.3) B10491-02 | |||||||||
| 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 class oracle.toplink.publicinterface.Session |
isInBroker, Logging, usesOldCommit |
| 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. |
oracle.toplink.internal.remote.RemoteCursoredStream |
cursorSelectObjects(CursoredStreamPolicy policy)INTERNAL: Return remote cursor stream. |
oracle.toplink.internal.remote.RemoteScrollableCursor |
cursorSelectObjects(ScrollableCursorPolicy policy)INTERNAL: Return remote scrollable cursor |
abstract java.lang.Object |
executeQuery(DatabaseQuery query)Execute the database query. |
java.lang.Object |
executeQuery(DatabaseQuery query, DatabaseRow row)INTERNAL: 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. |
java.util.Vector |
getDefaultReadOnlyClasses()INTERNAL: CR#2751 Returns the set of read-only classes for the receiver. |
Descriptor |
getDescriptor(java.lang.Class domainClass)INTERNAL: Return the table descriptor specified for the class. |
Descriptor |
getDescriptorCorrespondingTo(Descriptor descriptor)INTERNAL: Return the descriptor. |
abstract java.lang.Object |
getObjectCorrespondingTo(java.lang.Object serverSideDomainObject, oracle.toplink.internal.helper.IdentityHashtable objectDescriptors, oracle.toplink.internal.helper.IdentityHashtable processedObjects, ObjectLevelReadQuery query)INTERNAL: Return the corresponding objects from the remote session for the objects read from the server. |
abstract java.lang.Object |
getObjectsCorrespondingToAll(java.lang.Object serverSideDomainObjects, oracle.toplink.internal.helper.IdentityHashtable objectDescriptors, oracle.toplink.internal.helper.IdentityHashtable processedObjects, ObjectLevelReadQuery query, oracle.toplink.internal.queryframework.ContainerPolicy containerPolicy)INTERNAL: Return the corresponding objects from the remote session for the objects read from the server. |
oracle.toplink.internal.remote.RemoteConnection |
getRemoteConnection()INTERNAL: Return the remote connection. |
boolean |
hasCorrespondingDescriptor(Descriptor descriptor)INTERNAL: Checks if the descriptor exists or not. |
void |
initializeAllIdentityMaps()Reset the entire object cache. |
abstract java.lang.Object |
instantiateRemoteValueHolderOnServer(oracle.toplink.internal.remote.RemoteValueHolder remoteValueHolder)INTERNAL: This will instantiate value holder on the server. |
boolean |
isConnected()PUBLIC: Return if this session is connected. |
boolean |
isDistributedSession()INTERNAL: Return if this session is a distributed session. |
boolean |
isProxySession()INTERNAL: Return if this session is a proxy session. |
boolean |
isRemoteSession()INTERNAL: Return if this session is a remote session. |
void |
privilegedAddDescriptor(Descriptor descriptor)INTERNAL: You cannot add descriptors to a remote session. |
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. |
boolean |
verifyDelete(java.lang.Object domainObject)INTERNAL: TESTING: This is used by testing code to ensure that a deletion was successful. |
| Methods inherited from class oracle.toplink.publicinterface.Session |
acquireIdentityMapDeferredLock, acquireIdentityMapLock, acquireNonSynchronizedUnitOfWork, addAlias, addAliasesFromProject, addQuery, afterTransaction, clearIntegrityChecker, clearLastDescriptorAccessed, clearProfile, clone, compareObjects, compareObjectsDontMatch, containsObjectInIdentityMap, containsObjectInIdentityMap, containsQuery, copyObject, copyObject, copyReadOnlyClasses, decrementMergesPending, deleteAllObjects, deleteAllObjects, deleteObject, doesObjectExist, dontLogMessages, dontLogSQL, endOperationProfile, executeCall, executeNonSelectingCall, executeNonSelectingSQL, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeSelectingCall, executeSQL, getAccessor, getAccessor, getAccessor, getActiveSession, getActiveUnitOfWork, getAliasDescriptors, getAllFromIdentityMap, getAllFromIdentityMap, getAllQueries, getBroker, getCacheSynchronizationManager, getCommandManager, getCommitManager, getDescriptor, getDescriptorForAlias, getDescriptors, getEventManager, getExceptionHandler, getExceptionHandlerClass, getExternalTransactionController, getExternalTransactionControllerClass, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMapWithDeferredLock, getIdentityMapManager, getIntegrityChecker, getLog, getLoggingStream, getLogin, getName, getNextQueryId, getNextSequenceNumberValue, getNumberOfActiveUnitsOfWork, getPlatform, getPlatform, getProfiler, getProject, getProperties, getProperty, getQueries, getQuery, getQuery, getSequencing, getSessionForClass, getSessionLog, getTransactionMutex, getWrapper, getWriteLockValue, getWriteLockValue, handleException, hasBroker, hasCacheSynchronizationManager, hasDescriptor, hasExceptionHandler, hasExternalTransactionController, incrementMergesPending, initializeIdentityMap, initializeIdentityMaps, insertObject, internalExecuteQuery, isBroker, isClassReadOnly, isClientSession, isDatabaseSession, isInBroker, isInProfile, isInTransaction, isRemoteUnitOfWork, isServerSession, isSessionBroker, isUnitOfWork, keyFromObject, log, logDebug, logDebug, logDebug, logDebug, logException, logMessage, logMessage, logMessage, logMessage, logMessage, logMessages, logSQL, mergesPending, printIdentityMap, printIdentityMaps, processCommand, putInIdentityMap, putInIdentityMap, putInIdentityMap, readAllObjects, readAllObjects, readAllObjects, readAllObjects, readObject, readObject, readObject, readObject, readObject, refreshAndLockObject, refreshAndLockObject, refreshObject, releaseUnitOfWork, removeFromIdentityMap, removeFromIdentityMap, removeProperty, removeQuery, removeQuery, setAccessor, setAliasDescriptors, setBroker, setCacheSynchronizationManager, setCommandManager, setCommitManager, setEventManager, setExceptionHandler, setExceptionHandlerClass, setExternalTransactionController, setExternalTransactionControllerClass, setIntegrityChecker, setLog, setLoggingStream, setLogin, setName, setProfiler, setProject, setProperties, setProperty, setSessionLog, setShouldLogMessages, setShouldLogSQL, setShouldPropagateChanges, setUseOldCommit, setWasJTSTransactionInternallyStarted, setWrapper, shouldLogMessages, shouldLogMessages, shouldLogSQL, shouldPropagateChanges, startOperationProfile, unwrapObject, updatedCacheKeyInIdentityMap, updateObject, updateWriteLockValue, updateWriteLockValue, usesExternalTransactionController, usesOldCommit, validateCache, wasJTSTransactionInternallyStarted, wrapObject, 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.publicinterface.UnitOfWork acquireUnitOfWork()
acquireUnitOfWork in interface SessionacquireUnitOfWork in class oracle.toplink.publicinterface.SessionUnitOfWorkpublic void beginTransaction()
beginTransaction in class oracle.toplink.publicinterface.SessionSession.isInTransaction()public void commitTransaction()
commitTransaction in class oracle.toplink.publicinterface.Sessionpublic oracle.toplink.internal.remote.RemoteCursoredStream cursorSelectObjects(CursoredStreamPolicy policy)
public oracle.toplink.internal.remote.RemoteScrollableCursor cursorSelectObjects(ScrollableCursorPolicy policy)
public java.lang.Object executeQuery(java.lang.String queryName)
throws DatabaseException
executeQuery in interface SessionexecuteQuery in class oracle.toplink.publicinterface.SessionDatabaseExceptionSession.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.publicinterface.SessionDatabaseExceptionDescriptorQueryManager.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.publicinterface.SessionDatabaseExceptionDescriptorQueryManager.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.publicinterface.SessionDatabaseExceptionSession.addQuery(String, DatabaseQuery)public abstract java.lang.Object executeQuery(DatabaseQuery query)
executeQuery in interface SessionexecuteQuery in class oracle.toplink.publicinterface.SessionDatabaseQuerypublic java.lang.Object executeQuery(DatabaseQuery query, DatabaseRow row)
executeQuery in class oracle.toplink.publicinterface.Sessionpublic java.util.Vector getDefaultReadOnlyClasses()
getDefaultReadOnlyClasses in class oracle.toplink.publicinterface.Session#setDefaultReadOnlyClasses()public Descriptor getDescriptor(java.lang.Class domainClass)
getDescriptor in interface SessiongetDescriptor in class oracle.toplink.publicinterface.Sessionpublic Descriptor getDescriptorCorrespondingTo(Descriptor descriptor)
public abstract java.lang.Object getObjectCorrespondingTo(java.lang.Object serverSideDomainObject,
oracle.toplink.internal.helper.IdentityHashtable objectDescriptors,
oracle.toplink.internal.helper.IdentityHashtable processedObjects,
ObjectLevelReadQuery query)
public abstract java.lang.Object getObjectsCorrespondingToAll(java.lang.Object serverSideDomainObjects,
oracle.toplink.internal.helper.IdentityHashtable objectDescriptors,
oracle.toplink.internal.helper.IdentityHashtable processedObjects,
ObjectLevelReadQuery query,
oracle.toplink.internal.queryframework.ContainerPolicy containerPolicy)
public oracle.toplink.internal.remote.RemoteConnection getRemoteConnection()
public boolean hasCorrespondingDescriptor(Descriptor descriptor)
public void initializeAllIdentityMaps()
initializeAllIdentityMaps in interface SessioninitializeAllIdentityMaps in class oracle.toplink.publicinterface.Sessionpublic abstract java.lang.Object instantiateRemoteValueHolderOnServer(oracle.toplink.internal.remote.RemoteValueHolder remoteValueHolder)
public boolean isConnected()
isConnected in interface SessionisConnected in class oracle.toplink.publicinterface.Sessionpublic boolean isDistributedSession()
isDistributedSession in interface SessionisDistributedSession in class oracle.toplink.publicinterface.Sessionpublic boolean isProxySession()
isProxySession in interface SessionisProxySession in class oracle.toplink.publicinterface.Sessionpublic boolean isRemoteSession()
isRemoteSession in interface SessionisRemoteSession in class oracle.toplink.publicinterface.Sessionpublic void privilegedAddDescriptor(Descriptor descriptor)
public void rollbackTransaction()
rollbackTransaction in class oracle.toplink.publicinterface.Sessionpublic java.lang.String toString()
toString in class oracle.toplink.publicinterface.Sessionpublic boolean verifyDelete(java.lang.Object domainObject)
verifyDelete in class oracle.toplink.publicinterface.Sessionpublic void release()
release in interface Sessionrelease in class oracle.toplink.publicinterface.Session
|
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||