|
Oracle TopLink API Reference 10g Release 3 (10.1.3) B13698-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Purpose: Define the TopLink session public interface.
Description: This interface is meant to clarify the public protocol into TopLink. It also allows for non-subclasses of Session to conform to the TopLink API. It should be used as the applications main interface into the TopLink API to ensure compatibility between all TopLink sessions.
Responsibilities:
UnitOfWork,
DatabaseSession,
Session,
DatabaseSession,
ServerSession,
ClientSession| Method Summary | |
Session |
acquireHistoricalSession(AsOfClause pastTime)
ADVANCED: Returns a light weight read-only session where all objects are automatically read as of the specified past time. |
UnitOfWork |
acquireUnitOfWork()
PUBLIC: Return a unit of work for this session. |
void |
addQuery(java.lang.String name,
DatabaseQuery query)
PUBLIC: Add the query to the session queries with the given name. |
void |
clearIntegrityChecker()
PUBLIC: clear the integrityChecker, the integrityChecker holds all the Descriptor Exceptions. |
void |
clearProfile()
PUBLIC: Clear the profiler, this will end the current profile opperation. |
boolean |
containsObjectInIdentityMap(java.lang.Object domainObject)
Deprecated. |
boolean |
containsObjectInIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass)
Deprecated. |
boolean |
containsQuery(java.lang.String queryName)
Deprecated. |
java.lang.Object |
copyObject(java.lang.Object original)
PUBLIC: Return a complete copy of the object. |
java.lang.Object |
copyObject(java.lang.Object original,
ObjectCopyingPolicy policy)
PUBLIC: Return a complete copy of the object. |
boolean |
doesObjectExist(java.lang.Object object)
PUBLIC: Return if the object exists on the database or not. |
void |
dontLogMessages()
PUBLIC: Turn off logging |
int |
executeNonSelectingCall(Call call)
PUBLIC: Execute the call on the database. |
void |
executeNonSelectingSQL(java.lang.String sqlString)
PUBLIC: Execute the non-selecting (update/DML) SQL string. |
java.lang.Object |
executeQuery(DatabaseQuery query)
PUBLIC: Execute the database query. |
java.lang.Object |
executeQuery(DatabaseQuery query,
java.util.Vector argumentValues)
PUBLIC: Return the results from exeucting 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.lang.Object arg1)
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.lang.Object arg1,
java.lang.Object arg2)
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.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
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.lang.Object arg1)
PUBLIC: Execute the pre-defined query by name and return the result. |
java.lang.Object |
executeQuery(java.lang.String queryName,
java.lang.Object arg1,
java.lang.Object arg2)
PUBLIC: Execute the pre-defined query by name and return the result. |
java.lang.Object |
executeQuery(java.lang.String queryName,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
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 |
executeSelectingCall(Call call)
PUBLIC: Execute the call on the database and return the result. |
java.util.Vector |
executeSQL(java.lang.String sqlString)
PUBLIC: Execute the selecting SQL string. |
Session |
getActiveSession()
PUBLIC: Return the active session for the current active external (JTS) transaction. |
UnitOfWork |
getActiveUnitOfWork()
PUBLIC: Return the active unit of work for the current active external (JTS) transaction. |
java.util.Vector |
getAllFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
DatabaseRow translationRow)
Deprecated. |
java.util.Vector |
getAllFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
DatabaseRow translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy)
Deprecated. |
AsOfClause |
getAsOfClause()
ADVANCED: Answers the past time this session is as of. |
CacheSynchronizationManager |
getCacheSynchronizationManager()
Deprecated. since OracleAS TopLink 10g (10.1.3). This method is replaced by DatabaseSession.getCommandManager() |
ClassDescriptor |
getClassDescriptor(java.lang.Class theClass)
ADVANCED: Return the descriptor specified for the class. |
ClassDescriptor |
getClassDescriptor(java.lang.Object domainObject)
ADVANCED: Return the descriptor specified for the object's class. |
ClassDescriptor |
getClassDescriptorForAlias(java.lang.String alias)
PUBLIC: Return the descriptor for the alias. |
Login |
getDatasourceLogin()
PUBLIC: Return the login, the login holds any database connection information given. |
Descriptor |
getDescriptor(java.lang.Class theClass)
Deprecated. Replaced by getClassDescriptor(Class) |
Descriptor |
getDescriptor(java.lang.Object domainObject)
Deprecated. Replaced by getClassDescriptor(Object) |
Descriptor |
getDescriptorForAlias(java.lang.String alias)
Deprecated. Replaced by getClassDescriptorForAlias(String) |
java.util.Map |
getDescriptors()
ADVANCED: Return all registered descriptors. |
SessionEventManager |
getEventManager()
PUBLIC: Return the event manager. |
ExceptionHandler |
getExceptionHandler()
PUBLIC: Return the ExceptionHandler.Exception handler can catch errors that occur on queries or during database access. |
ExternalTransactionController |
getExternalTransactionController()
PUBLIC: Used for JTS integration. |
java.lang.Object |
getFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
DatabaseRow translationRow)
Deprecated. Since 3.6.3 |
java.lang.Object |
getFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
DatabaseRow translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy)
Deprecated. |
java.lang.Object |
getFromIdentityMap(java.lang.Object domainObject)
Deprecated. |
java.lang.Object |
getFromIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass)
Deprecated. |
IdentityMapAccessor |
getIdentityMapAccessor()
PUBLIC: The IdentityMapAccessor is the preferred way of accessing IdentityMap funcitons This will return an object which implements an interface which exposes all public IdentityMap functions. |
IntegrityChecker |
getIntegrityChecker()
PUBLIC: Returns the integrityChecker,the integrityChecker holds all the Descriptor Exceptions. |
java.io.Writer |
getLog()
PUBLIC: Return the writer to which an accessor writes logged messages and SQL. |
DatabaseLogin |
getLogin()
OBSOLETE: Return the login, the login holds any database connection information given. |
int |
getLogLevel()
PUBLIC: Return the log level |
int |
getLogLevel(java.lang.String category)
PUBLIC: Return the log level |
java.lang.String |
getName()
PUBLIC: Return the name of the session. |
java.lang.Number |
getNextSequenceNumberValue(java.lang.Class domainClass)
ADVANCED: Return the sequnce number from the database |
SessionProfiler |
getProfiler()
PUBLIC: Return the profiler. |
Project |
getProject()
PUBLIC: Return the project. |
java.util.Hashtable |
getProperties()
ADVANCED: Allow for user defined properties. |
java.lang.Object |
getProperty(java.lang.String name)
ADVANCED: Returns the user defined property. |
java.util.Hashtable |
getQueries()
ADVANCED: Return all pre-defined queries. |
DatabaseQuery |
getQuery(java.lang.String name)
PUBLIC: Return the query from the session pre-defined queries with the given name. |
DatabaseQuery |
getQuery(java.lang.String name,
java.util.Vector arguments)
PUBLIC: Return the query from the session pre-defined queries with the given name. |
SessionLog |
getSessionLog()
PUBLIC: Return the session log to which an accessor logs messages and SQL. |
java.lang.Object |
getWriteLockValue(java.lang.Object domainObject)
Deprecated. |
java.lang.Object |
getWriteLockValue(java.util.Vector primaryKey,
java.lang.Class theClass)
Deprecated. |
java.lang.Object |
handleException(java.lang.RuntimeException exception)
PUBLIC: Allow any WARNING level exceptions that occur within TopLink to be logged and handled by the exception handler. |
java.lang.Object |
handleSevere(java.lang.RuntimeException exception)
PUBLIC: Allow any SEVERE level exceptions that occur within TopLink to be logged and handled by the exception handler. |
boolean |
hasCacheSynchronizationManager()
ADVANCED: Return true if a synchronisation policy exists |
boolean |
hasDescriptor(java.lang.Class theClass)
ADVANCED: Return true if a descriptor exists for the given class. |
boolean |
hasExceptionHandler()
PUBLIC: Return if an exception handler is present. |
boolean |
hasExternalTransactionController()
PUBLIC: Used for JTS integration. |
void |
initializeAllIdentityMaps()
Deprecated. |
void |
initializeIdentityMap(java.lang.Class theClass)
Deprecated. |
void |
initializeIdentityMaps()
Deprecated. |
boolean |
isClientSession()
PUBLIC: Return if this session is a client session. |
boolean |
isConnected()
PUBLIC: Return if this session is connected to the database. |
boolean |
isDatabaseSession()
PUBLIC: Return if this session is a database session. |
boolean |
isDistributedSession()
PUBLIC: Return if this session is a distributed session. |
boolean |
isInProfile()
PUBLIC: Return if a profiler is being used. |
boolean |
isRemoteSession()
PUBLIC: Return if this session is a remote session. |
boolean |
isRemoteUnitOfWork()
PUBLIC: Return if this session is a remote unit of work. |
boolean |
isServerSession()
PUBLIC: Return if this session is a server session. |
boolean |
isSessionBroker()
PUBLIC: Return if this session is a session broker. |
boolean |
isUnitOfWork()
PUBLIC: Return if this session is a unit of work. |
java.util.Vector |
keyFromObject(java.lang.Object domainObject)
ADVANCED: Extract and return the primary key from the object. |
void |
log(SessionLogEntry entry)
PUBLIC: Log the log entry. |
void |
log(SessionLogEntry entry)
Deprecated. Replaced by log(oracle.toplink.logging.SessionLogEntry) |
void |
logDebug(java.lang.String message)
Deprecated. No direct replacement, moved to internal AbstractSession. |
void |
logDebug(java.lang.String message,
java.lang.Object[] arguments)
Deprecated. No direct replacement, moved to internal AbstractSession. |
void |
logException(java.lang.Exception exception)
Deprecated. No direct replacement, moved to internal AbstractSession. |
void |
logMessage(java.lang.String message)
Log a untranslated message to the TopLink log at FINER level. |
void |
logMessage(java.lang.String message,
java.lang.Object[] arguments)
Deprecated. Replaced by log(int level, String category, String message, Object[] params) |
void |
logMessages()
Deprecated. Replaced by setLogLevel(int level, String category); |
void |
printIdentityMap(java.lang.Class businessClass)
Deprecated. |
void |
printIdentityMaps()
Deprecated. |
java.lang.Object |
putInIdentityMap(java.lang.Object domainObject)
Deprecated. |
java.lang.Object |
putInIdentityMap(java.lang.Object domainObject,
java.util.Vector key)
Deprecated. |
java.lang.Object |
putInIdentityMap(java.lang.Object domainObject,
java.util.Vector key,
java.lang.Object writeLockValue)
Deprecated. |
java.util.Vector |
readAllObjects(java.lang.Class domainClass)
PUBLIC: Read all of the instances of the class from the database. |
java.util.Vector |
readAllObjects(java.lang.Class domainClass,
Call aCall)
PUBLIC: Read all the instances of the class from the database returned through execution the Call string. |
java.util.Vector |
readAllObjects(java.lang.Class domainClass,
Expression selectionCriteria)
PUBLIC: Read all of the instances of the class from the database matching the given expression. |
java.util.Vector |
readAllObjects(java.lang.Class domainClass,
java.lang.String sqlString)
OBSOLETE: Read all of the instances of the class from the database returned through execution the SQL string. |
java.lang.Object |
readObject(java.lang.Class domainClass)
PUBLIC: Read the first instance of the class from the database. |
java.lang.Object |
readObject(java.lang.Class domainClass,
Call aCall)
PUBLIC: Read the first instance of the class from the database returned through execution the Call string. |
java.lang.Object |
readObject(java.lang.Class domainClass,
Expression selectionCriteria)
PUBLIC: Read the first instance of the class from the database matching the given expression. |
java.lang.Object |
readObject(java.lang.Class domainClass,
java.lang.String sqlString)
Deprecated. use readObject(Class domainClass, Call aCall) |
java.lang.Object |
readObject(java.lang.Object object)
PUBLIC: Use the example object to consruct a read object query by the objects primary key. |
java.lang.Object |
refreshObject(java.lang.Object object)
PUBLIC: Refresh the attributes of the object and of all of its private parts from the database. |
void |
release()
PUBLIC: Release the session. |
void |
removeFromIdentityMap(java.lang.Object domainObject)
Deprecated. |
void |
removeFromIdentityMap(java.util.Vector key,
java.lang.Class theClass)
Deprecated. |
void |
removeProperty(java.lang.String property)
PUBLIC: Remove the user defined property. |
void |
removeQuery(java.lang.String queryName)
PUBLIC: Remove the query name from the set of pre-defined queries |
void |
setCacheSynchronizationManager(CacheSynchronizationManager synchronizationManager)
Deprecated. since OracleAS TopLink 10g (10.1.3). This method is replaced by DatabaseSession.setCommandManager(CommandManager) |
void |
setExceptionHandler(ExceptionHandler exceptionHandler)
PUBLIC: Set the exceptionHandler. |
void |
setExternalTransactionController(ExternalTransactionController externalTransactionController)
Deprecated. |
void |
setIntegrityChecker(IntegrityChecker integrityChecker)
PUBLIC: Set the integrityChecker, the integrityChecker holds all the Descriptor Exceptions. |
void |
setLog(java.io.Writer log)
PUBLIC: Set the writer to which an accessor writes logged messages and SQL. |
void |
setLogLevel(int level)
PUBLIC: Set the log level |
void |
setName(java.lang.String name)
PUBLIC: Set the name of the session. |
void |
setProfiler(SessionProfiler profiler)
PUBLIC: Set the profiler for the session. |
void |
setProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
PUBLIC: Allow for user defined properties. |
void |
setSessionLog(SessionLog sessionLog)
PUBLIC: Set the session log to which an accessor logs messages and SQL. |
void |
setSessionLog(SessionLog sessionLog)
Deprecated. |
void |
setShouldLogMessages(boolean shouldLogMessages)
Deprecated. |
boolean |
shouldLog(int Level,
java.lang.String category)
PUBLIC: Check if a message of the given level would actually be logged. |
boolean |
shouldLogMessages()
PUBLIC: Return if logging is enabled (false if log level is OFF) |
void |
updateWriteLockValue(java.lang.Object domainObject,
java.lang.Object writeLockValue)
Deprecated. |
void |
updateWriteLockValue(java.util.Vector primaryKey,
java.lang.Class theClass,
java.lang.Object writeLockValue)
Deprecated. |
boolean |
usesExternalTransactionController()
Deprecated. replaced by #hasExternalTransactionController() |
void |
validateCache()
ADVANCED: This can be used to help debugging an object identity problem. |
| Method Detail |
public Session acquireHistoricalSession(AsOfClause pastTime)
Use this Session to take advantage of Oracle 9 Release 2 Flashback or TopLink general history support and still be able to cache query results.
A special historical session is required as all objects read may be of different versions than those stored in the global session cache. Hence also known as IsolationSession, as all reads bypass the global cache.
An AsOfClause at the Session level will override any clauses set at the query or expression levels.
Example: Using a historical session to read past versions of objects.
AsOfClause pastTime = new AsOfClause(System.currentTimeMillis() - 24*60*60*1000); Session historicalSession = session.acquireSessionAsOf(pastTime); Employee pastEmployee = (Employee)historicalSession.readObject(Employee.class); Address pastAddress = pastEmployee.getAddress(); Vector pastProjects = pastEmployee.getProjects(); historicalSession.release();
Example: Using the above past employee to recover objects.
UnitOfWork uow = baseSession.acquireUnitOfWork(); Employee presentClone = (Employee)uow.readObject(pastEmployee); uow.deepMergeClone(pastEmployee); uow.commit();By definition all data as of a past time is frozen. So this session is also ideal for read consistent queries and read only transactions, as all queries will be against a consistent and immutable snap shot of the data.
- Parameters:
pastTime- Represents a valid snap shot time.- Throws:
ValidationException- ifthisnot a ClientSession, plain Session, or SessionBroker.- See Also:
AsOfClause,Expression.asOf(oracle.toplink.history.AsOfClause),ObjectLevelReadQuery.setAsOfClause(oracle.toplink.history.AsOfClause),HistoryPolicy
public UnitOfWork acquireUnitOfWork()
UnitOfWork
public void addQuery(java.lang.String name,
DatabaseQuery query)
public void clearIntegrityChecker()
public void clearProfile()
public boolean containsObjectInIdentityMap(java.lang.Object domainObject)
getIdentityMapAccessor(),
IdentityMapAccessor
public boolean containsObjectInIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass)
getIdentityMapAccessor(),
IdentityMapAccessorpublic boolean containsQuery(java.lang.String queryName)
getIdentityMapAccessor(),
IdentityMapAccessorpublic java.lang.Object copyObject(java.lang.Object original)
copyObject(Object, ObjectCopyingPolicy)
public java.lang.Object copyObject(java.lang.Object original,
ObjectCopyingPolicy policy)
public boolean doesObjectExist(java.lang.Object object)
throws DatabaseException
DatabaseExceptionpublic void dontLogMessages()
public int executeNonSelectingCall(Call call)
Example:
session.executeNonSelectingCall(new SQLCall("Delete from Employee");
executeSelectingCall(Call)public void executeNonSelectingSQL(java.lang.String sqlString)
public java.lang.Object executeQuery(java.lang.String queryName)
addQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName,
java.lang.Class domainClass)
DescriptorQueryManager.addQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName,
java.lang.Class domainClass,
java.lang.Object arg1)
DescriptorQueryManager.addQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName,
java.lang.Class domainClass,
java.lang.Object arg1,
java.lang.Object arg2)
DescriptorQueryManager.addQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName,
java.lang.Class domainClass,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
DescriptorQueryManager.addQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName,
java.lang.Class domainClass,
java.util.Vector argumentValues)
DescriptorQueryManager.addQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName,
java.lang.Object arg1)
addQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName,
java.lang.Object arg1,
java.lang.Object arg2)
addQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
addQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName,
java.util.Vector argumentValues)
addQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(DatabaseQuery query)
throws TopLinkException
TopLinkExceptionDatabaseQuery
public java.lang.Object executeQuery(DatabaseQuery query,
java.util.Vector argumentValues)
public java.util.Vector executeSelectingCall(Call call)
Example:
session.executeSelectingCall(new SQLCall("Select * from Employee");
executeNonSelectingCall(Call)public java.util.Vector executeSQL(java.lang.String sqlString)
public Session getActiveSession()
public UnitOfWork getActiveUnitOfWork()
public java.util.Vector getAllFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
DatabaseRow translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy)
throws QueryException
QueryExceptiongetIdentityMapAccessor(),
IdentityMapAccessor
public java.util.Vector getAllFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
DatabaseRow translationRow)
throws QueryException
QueryExceptiongetIdentityMapAccessor(),
IdentityMapAccessorpublic AsOfClause getAsOfClause()
null if no clause set, or this a regular session.acquireHistoricalSession(oracle.toplink.history.AsOfClause)public CacheSynchronizationManager getCacheSynchronizationManager()
DatabaseSession.getCommandManager()
public ClassDescriptor getClassDescriptor(java.lang.Class theClass)
public ClassDescriptor getClassDescriptor(java.lang.Object domainObject)
public ClassDescriptor getClassDescriptorForAlias(java.lang.String alias)
public Descriptor getDescriptor(java.lang.Class theClass)
getClassDescriptor(Class)
public Descriptor getDescriptor(java.lang.Object domainObject)
getClassDescriptor(Object)
public Descriptor getDescriptorForAlias(java.lang.String alias)
getClassDescriptorForAlias(String)
public java.util.Map getDescriptors()
public SessionEventManager getEventManager()
public ExceptionHandler getExceptionHandler()
public ExternalTransactionController getExternalTransactionController()
JTATransactionControllerpublic java.lang.Object getFromIdentityMap(java.lang.Object domainObject)
getIdentityMapAccessor(),
IdentityMapAccessor
public java.lang.Object getFromIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass)
getIdentityMapAccessor(),
IdentityMapAccessor
public java.lang.Object getFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
DatabaseRow translationRow)
throws QueryException
QueryExceptiongetIdentityMapAccessor(),
IdentityMapAccessor
public java.lang.Object getFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
DatabaseRow translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy)
throws QueryException
QueryExceptiongetIdentityMapAccessor(),
IdentityMapAccessorpublic IdentityMapAccessor getIdentityMapAccessor()
public IntegrityChecker getIntegrityChecker()
public java.io.Writer getLog()
logMessages()public DatabaseLogin getLogin()
public Login getDatasourceLogin()
public java.lang.String getName()
public java.lang.Number getNextSequenceNumberValue(java.lang.Class domainClass)
public SessionProfiler getProfiler()
public Project getProject()
public java.util.Hashtable getProperties()
public java.lang.Object getProperty(java.lang.String name)
public java.util.Hashtable getQueries()
public DatabaseQuery getQuery(java.lang.String name)
public DatabaseQuery getQuery(java.lang.String name,
java.util.Vector arguments)
public SessionLog getSessionLog()
logMessages()public java.lang.Object getWriteLockValue(java.lang.Object domainObject)
getIdentityMapAccessor(),
IdentityMapAccessor
public java.lang.Object getWriteLockValue(java.util.Vector primaryKey,
java.lang.Class theClass)
getIdentityMapAccessor(),
IdentityMapAccessor
public java.lang.Object handleException(java.lang.RuntimeException exception)
throws java.lang.RuntimeException
java.lang.RuntimeExceptionpublic boolean hasCacheSynchronizationManager()
public boolean hasDescriptor(java.lang.Class theClass)
public boolean hasExceptionHandler()
public boolean hasExternalTransactionController()
JTATransactionControllerpublic void initializeAllIdentityMaps()
NOTE: be careful using this method. This method blows away both this session's and its parents caches, this includes the server cache or any other cache. This throws away any objects that have been read in. Extream caution should be used before doing this because object identity will no longer be maintained for any objects currently read in. This should only be called if the application knows that it no longer has references to object held in the cache.
getIdentityMapAccessor(),
IdentityMapAccessorpublic void initializeIdentityMap(java.lang.Class theClass)
getIdentityMapAccessor(),
IdentityMapAccessorpublic void initializeIdentityMaps()
getIdentityMapAccessor(),
IdentityMapAccessorpublic boolean isClientSession()
public boolean isConnected()
public boolean isDatabaseSession()
public boolean isDistributedSession()
public boolean isInProfile()
public boolean isRemoteSession()
public boolean isServerSession()
public boolean isSessionBroker()
public boolean isUnitOfWork()
public boolean isRemoteUnitOfWork()
public java.util.Vector keyFromObject(java.lang.Object domainObject)
throws ValidationException
ValidationExceptionpublic void log(SessionLogEntry entry)
public void log(SessionLogEntry entry)
log(oracle.toplink.logging.SessionLogEntry)
public void logDebug(java.lang.String message,
java.lang.Object[] arguments)
logMessage(String)public void logDebug(java.lang.String message)
logMessage(String)public void logException(java.lang.Exception exception)
public void logMessage(java.lang.String message,
java.lang.Object[] arguments)
logMessage(String)public void logMessage(java.lang.String message)
public void logMessages()
setLogLevel(int level)public void printIdentityMap(java.lang.Class businessClass)
getIdentityMapAccessor(),
IdentityMapAccessorpublic void printIdentityMaps()
getIdentityMapAccessor(),
IdentityMapAccessorpublic java.lang.Object putInIdentityMap(java.lang.Object domainObject)
getIdentityMapAccessor(),
IdentityMapAccessor
public java.lang.Object putInIdentityMap(java.lang.Object domainObject,
java.util.Vector key)
getIdentityMapAccessor(),
IdentityMapAccessor
public java.lang.Object putInIdentityMap(java.lang.Object domainObject,
java.util.Vector key,
java.lang.Object writeLockValue)
getIdentityMapAccessor(),
IdentityMapAccessor
public java.util.Vector readAllObjects(java.lang.Class domainClass)
throws DatabaseException
DatabaseExceptionReadAllQuery,
readAllObjects(Class, Expression)
public java.util.Vector readAllObjects(java.lang.Class domainClass,
java.lang.String sqlString)
throws DatabaseException
DatabaseException
public java.util.Vector readAllObjects(java.lang.Class domainClass,
Call aCall)
throws DatabaseException
DatabaseExceptionSQLCall,
EJBQLCall
public java.util.Vector readAllObjects(java.lang.Class domainClass,
Expression selectionCriteria)
throws DatabaseException
DatabaseExceptionReadAllQuery
public java.lang.Object readObject(java.lang.Class domainClass)
throws DatabaseException
readObject(Class, Call), readObject(Class, Expression), or readObject(Object).
DatabaseExceptionReadObjectQuery,
readAllObjects(Class, Expression)
public java.lang.Object readObject(java.lang.Class domainClass,
java.lang.String sqlString)
throws DatabaseException
DatabaseExceptionReadObjectQuery
public java.lang.Object readObject(java.lang.Class domainClass,
Call aCall)
throws DatabaseException
DatabaseExceptionSQLCall,
EJBQLCall
public java.lang.Object readObject(java.lang.Class domainClass,
Expression selectionCriteria)
throws DatabaseException
DatabaseExceptionReadObjectQuery
public java.lang.Object readObject(java.lang.Object object)
throws DatabaseException
DatabaseExceptionpublic java.lang.Object refreshObject(java.lang.Object object)
public void release()
public void removeFromIdentityMap(java.lang.Object domainObject)
getIdentityMapAccessor(),
IdentityMapAccessor
public void removeFromIdentityMap(java.util.Vector key,
java.lang.Class theClass)
getIdentityMapAccessor(),
IdentityMapAccessorpublic void removeProperty(java.lang.String property)
public void removeQuery(java.lang.String queryName)
public void setCacheSynchronizationManager(CacheSynchronizationManager synchronizationManager)
DatabaseSession.setCommandManager(CommandManager)
public void setExceptionHandler(ExceptionHandler exceptionHandler)
public void setExternalTransactionController(ExternalTransactionController externalTransactionController)
CustomServerPlatformpublic void setIntegrityChecker(IntegrityChecker integrityChecker)
public void setLog(java.io.Writer log)
logMessages()public void setName(java.lang.String name)
public void setProfiler(SessionProfiler profiler)
public void setProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
public void setSessionLog(SessionLog sessionLog)
logMessages()public void setSessionLog(SessionLog sessionLog)
setSessionLog(oracle.toplink.logging.SessionLog)public void setShouldLogMessages(boolean shouldLogMessages)
setLogLevel(int)public boolean shouldLogMessages()
public void updateWriteLockValue(java.lang.Object domainObject,
java.lang.Object writeLockValue)
getIdentityMapAccessor(),
IdentityMapAccessor
public void updateWriteLockValue(java.util.Vector primaryKey,
java.lang.Class theClass,
java.lang.Object writeLockValue)
getIdentityMapAccessor(),
IdentityMapAccessorpublic boolean usesExternalTransactionController()
public void validateCache()
public int getLogLevel(java.lang.String category)
public int getLogLevel()
public void setLogLevel(int level)
public boolean shouldLog(int Level,
java.lang.String category)
public java.lang.Object handleSevere(java.lang.RuntimeException exception)
throws java.lang.RuntimeException
java.lang.RuntimeException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||