|
Oracle TopLink Java API Reference 10g Release 3 (10.1.3.1) B28219-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.toplink.publicinterface.Session
Deprecated. since OracleAS TopLink 10g (10.1.3). This class is replaced by Session, and oracle.toplink.internal.sessions.AbstractSession
Implementation of oracle.toplink.sessions.Session The public interface should be used.
Purpose: Define the interface and common protocol of a TopLink compliant session.
Description: The session is the primary interface into TopLink, the application should do all of its reading and writing of objects through the session. The session also manages transactions and units of work. Normally the session is passed and used by the application controler objects. Controler objects normally sit behind the GUI and perform the buiness processes required for the application, they should perform all explict database access and database access should be avoided from the domain object model. Do not use a globally accessable session instance, doing so does not allow for multiple sessions. Multiple sessions may required when performing things like data migration or multiple database access, as well the unit of work feature requires the usage of multiple session instances. Although session is abstract, any users of its subclasses should only cast the variables to Session to allow usage of any of its subclasses.
Responsibilities:
DatabaseSession, Serialized Form| Field Summary |
| Fields inherited from interface oracle.toplink.remotecommand.CommandProcessor |
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING |
| Constructor Summary | |
Session(Login login)Deprecated. PUBLIC: Create and return a new session. |
|
Session(Project project)Deprecated. PUBLIC: Create and return a new session. |
|
| Method Summary | |
UnitOfWork |
acquireUnitOfWork()Deprecated. PUBLIC: Return a unit of work for this session. |
void |
addAlias(java.lang.String alias, Descriptor descriptor)Deprecated. PUBLIC: Add an alias for the descriptor |
void |
addQuery(java.lang.String name, DatabaseQuery query)Deprecated. PUBLIC: Add the query to the session queries with the given name. |
void |
beginTransaction()Deprecated. PUBLIC: Begin a transaction on the database. |
void |
clearIntegrityChecker()Deprecated. PUBLIC: clear the integrityChecker. |
void |
clearProfile()Deprecated. PUBLIC: Clear the profiler, this will end the current profile opperation. |
void |
commitTransaction()Deprecated. PUBLIC: Commit the active database transaction. |
boolean |
compareObjectsDontMatch(java.lang.Object firstObject, java.lang.Object secondObject)Deprecated. TESTING: Return true if the object do not match. |
void |
config(java.lang.String message, java.lang.String category)Deprecated. PUBLIC: This method is called when a config level message needs to be logged. |
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. PUBLIC: Return true if the pre-defined query is defined on the session. |
java.lang.Object |
copyObject(java.lang.Object original)Deprecated. PUBLIC: Return a complete copy of the object. |
java.lang.Object |
copyObject(java.lang.Object original, ObjectCopyingPolicy policy)Deprecated. PUBLIC: Return a complete copy of the object. |
void |
deleteAllObjects(java.util.Collection domainObjects)Deprecated. PUBLIC: delete all of the objects and all of their privately owned parts in the database. |
void |
deleteAllObjects(java.util.Vector domainObjects)Deprecated. PUBLIC: delete all of the objects and all of their privately owned parts in the database. |
java.lang.Object |
deleteObject(java.lang.Object domainObject)Deprecated. PUBLIC: Delete the object and all of its privately owned parts from the database. |
boolean |
doesObjectExist(java.lang.Object object)Deprecated. PUBLIC: Return if the object exists on the database or not. |
void |
dontLogMessages()Deprecated. PUBLIC: Turn off logging |
int |
executeNonSelectingCall(Call call)Deprecated. PUBLIC: Execute the call on the database. |
void |
executeNonSelectingSQL(java.lang.String sqlString)Deprecated. PUBLIC: Execute the sql on the database. |
java.lang.Object |
executeQuery(DatabaseQuery query)Deprecated. PUBLIC: Execute the database query. |
java.lang.Object |
executeQuery(DatabaseQuery query, java.util.Vector argumentValues)Deprecated. PUBLIC: Return the results from exeucting the database query. |
java.lang.Object |
executeQuery(java.lang.String queryName)Deprecated. PUBLIC: Execute the pre-defined query by name and return the result. |
java.lang.Object |
executeQuery(java.lang.String queryName, java.lang.Class domainClass)Deprecated. 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)Deprecated. 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)Deprecated. 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)Deprecated. 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)Deprecated. PUBLIC: Execute the pre-defined query by name and return the result. |
java.lang.Object |
executeQuery(java.lang.String queryName, java.lang.Object arg1)Deprecated. 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)Deprecated. 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)Deprecated. PUBLIC: Execute the pre-defined query by name and return the result. |
java.lang.Object |
executeQuery(java.lang.String queryName, java.util.Vector argumentValues)Deprecated. PUBLIC: Execute the pre-defined query by name and return the result. |
java.util.Vector |
executeSelectingCall(Call call)Deprecated. PUBLIC: Execute the call on the database and return the result. |
java.util.Vector |
executeSQL(java.lang.String sqlString)Deprecated. PUBLIC: Execute the sql on the database and return the result. |
void |
fine(java.lang.String message, java.lang.String category)Deprecated. PUBLIC: This method is called when a fine level message needs to be logged. |
void |
finer(java.lang.String message, java.lang.String category)Deprecated. PUBLIC: This method is called when a finer level message needs to be logged. |
void |
finest(java.lang.String message, java.lang.String category)Deprecated. PUBLIC: This method is called when a finest level message needs to be logged. |
Session |
getActiveSession()Deprecated. PUBLIC: Return the active session for the current active external (JTS) transaction. |
UnitOfWork |
getActiveUnitOfWork()Deprecated. 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. |
java.util.Vector |
getAllFromIdentityMap(Expression selectionCriteria, java.lang.Class theClass, DatabaseRow translationRow, InMemoryQueryIndirectionPolicy valueHolderPolicy, boolean shouldReturnInvalidatedObjects)Deprecated. |
java.util.Vector |
getAllQueries()Deprecated. PUBLIC: Return the pre-defined queries in this session. |
AsOfClause |
getAsOfClause()Deprecated. ADVANCED: Answers the past time this session is as of. |
CacheSynchronizationManager |
getCacheSynchronizationManager()Deprecated. ADVANCED: Returns the Synchronization Policy for this session. |
ClassDescriptor |
getClassDescriptor(java.lang.Class theClass)Deprecated. ADVANCED: Return the descriptor specified for the class. |
ClassDescriptor |
getClassDescriptor(java.lang.Object domainObject)Deprecated. ADVANCED: Return the descriptor specified for the object's class. |
ClassDescriptor |
getClassDescriptorForAlias(java.lang.String alias)Deprecated. PUBLIC: Return the descriptor for the alias. |
CommandManager |
getCommandManager()Deprecated. PUBLIC: Return the CommandManager that allows this session to act as a CommandProcessor and receive or propagate commands from/to the TopLink cluster. |
Login |
getDatasourceLogin()Deprecated. PUBLIC: Return the login, the login holds any database connection information given. |
Descriptor |
getDescriptor(java.lang.Class theClass)Deprecated. ADVANCED: Return the descriptor specified for the class. |
Descriptor |
getDescriptor(java.lang.Object domainObject)Deprecated. ADVANCED: Return the descriptor specified for the object's class. |
Descriptor |
getDescriptorForAlias(java.lang.String alias)Deprecated. PUBLIC: Return the descriptor for the alias |
java.util.Map |
getDescriptors()Deprecated. ADVANCED: Return all registered descriptors. |
SessionEventManager |
getEventManager()Deprecated. PUBLIC: Return the event manager. |
ExceptionHandler |
getExceptionHandler()Deprecated. PUBLIC: Return the ExceptionHandler.Exception handler can catch errors that occur on queries or during database access. |
ExternalTransactionController |
getExternalTransactionController()Deprecated. PUBLIC: Used for JTS integration. |
java.lang.Object |
getFromIdentityMap(Expression selectionCriteria, java.lang.Class theClass, DatabaseRow translationRow)Deprecated. Since 4.0.1 |
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. |
java.lang.Object |
getFromIdentityMap(java.util.Vector primaryKey, java.lang.Class theClass, boolean shouldReturnInvalidatedObjects)Deprecated. |
IdentityMapAccessor |
getIdentityMapAccessor()Deprecated. 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()Deprecated. PUBLIC: Returns the integrityChecker.IntegrityChecker holds all the Descriptor Exceptions. |
java.io.Writer |
getLog()Deprecated. PUBLIC: Return the writer to which an accessor writes logged messages and SQL. |
DatabaseLogin |
getLogin()Deprecated. OBSOLETE: Return the login, the login holds any database connection information given. |
int |
getLogLevel()Deprecated. PUBLIC: Return the log level |
int |
getLogLevel(java.lang.String category)Deprecated. PUBLIC: Return the log level |
java.lang.String |
getName()Deprecated. PUBLIC: Return the name of the session. |
java.lang.Number |
getNextSequenceNumberValue(java.lang.Class domainClass)Deprecated. ADVANCED: Return the sequnce number from the database |
SessionProfiler |
getProfiler()Deprecated. PUBLIC: Return the profiler. |
Project |
getProject()Deprecated. PUBLIC: Return the project, the project holds configuartion information including the descriptors. |
java.util.Map |
getProperties()Deprecated. ADVANCED: Allow for user defined properties. |
java.lang.Object |
getProperty(java.lang.String name)Deprecated. ADVANCED: Returns the user defined property. |
java.util.Map |
getQueries()Deprecated. ADVANCED: Return all pre-defined queries. |
DatabaseQuery |
getQuery(java.lang.String name)Deprecated. PUBLIC: Return the query from the session pre-defined queries with the given name. |
DatabaseQuery |
getQuery(java.lang.String name, java.util.Vector arguments)Deprecated. PUBLIC: Return the query from the session pre-defined queries with the given name and argument types. |
SessionLog |
getSessionLog()Deprecated. 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)Deprecated. 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)Deprecated. PUBLIC: Allow any SEVERE level exceptions that occur within TopLink to be logged and handled by the exception handler. |
boolean |
hasCacheSynchronizationManager()Deprecated. ADVANCED: Return true if a cache synchronisation manager exists. |
boolean |
hasDescriptor(java.lang.Class theClass)Deprecated. ADVANCED: Return true if a descriptor exists for the given class. |
boolean |
hasExceptionHandler()Deprecated. PUBLIC: Return if an exception handler is present. |
boolean |
hasExternalTransactionController()Deprecated. PUBLIC: Used for JTA integration. |
void |
info(java.lang.String message, java.lang.String category)Deprecated. PUBLIC: This method is called when a info level message needs to be logged. |
void |
initializeAllIdentityMaps()Deprecated. |
void |
initializeIdentityMap(java.lang.Class theClass)Deprecated. |
void |
initializeIdentityMaps()Deprecated. |
java.lang.Object |
insertObject(java.lang.Object domainObject)Deprecated. PUBLIC: Insert the object and all of its privately owned parts into the database. |
boolean |
isClassReadOnly(java.lang.Class theClass)Deprecated. PUBLIC: Return if the class is defined as read-only. |
boolean |
isClientSession()Deprecated. PUBLIC: Return if this session is a client session. |
boolean |
isConnected()Deprecated. PUBLIC: Return if this session is connected to the database. |
boolean |
isDatabaseSession()Deprecated. PUBLIC: Return if this session is a database session. |
boolean |
isDistributedSession()Deprecated. PUBLIC: Return if this session is a distributed session. |
boolean |
isInProfile()Deprecated. PUBLIC: Return if a profiler is being used. |
boolean |
isInTransaction()Deprecated. PUBLIC: Return if the session is currently in the progress of a database transaction. |
boolean |
isRemoteSession()Deprecated. PUBLIC: Return if this session is remote. |
boolean |
isRemoteUnitOfWork()Deprecated. PUBLIC: Return if this session is a unit of work. |
boolean |
isServerSession()Deprecated. PUBLIC: Return if this session is a server session. |
boolean |
isSessionBroker()Deprecated. PUBLIC: Return if this session is a session broker. |
boolean |
isUnitOfWork()Deprecated. PUBLIC: Return if this session is a unit of work. |
java.util.Vector |
keyFromObject(java.lang.Object domainObject)Deprecated. ADVANCED: Extract and return the primary key from the object. |
void |
log(int level, java.lang.String message, java.lang.Object[] params, Accessor accessor)Deprecated. PUBLIC: Log a message with level, parameters and accessor that needs to be translated. |
void |
log(int level, java.lang.String message, java.lang.Object[] params, Accessor accessor, boolean shouldTranslate)Deprecated. PUBLIC: Log a message with level, parameters and accessor. |
void |
log(int level, java.lang.String category, java.lang.String message)Deprecated. PUBLIC: Log a message with level and category that needs to be translated. |
void |
log(int level, java.lang.String category, java.lang.String message, java.lang.Object param)Deprecated. PUBLIC: Log a message with level, category and a parameter that needs to be translated. |
void |
log(int level, java.lang.String category, java.lang.String message, java.lang.Object[] params)Deprecated. PUBLIC: Log a message with level, category and an array of parameters that needs to be translated. |
void |
log(int level, java.lang.String category, java.lang.String message, java.lang.Object[] params, Accessor accessor)Deprecated. PUBLIC: Log a message with level, category, parameters and accessor that needs to be translated. |
void |
log(int level, java.lang.String category, java.lang.String message, java.lang.Object[] params, Accessor accessor, boolean shouldTranslate)Deprecated. PUBLIC: Log a message with level, category, parameters and accessor. |
void |
log(int level, java.lang.String category, java.lang.String message, java.lang.Object param1, java.lang.Object param2)Deprecated. PUBLIC: Log a message with level, category and two parameters that needs to be translated. |
void |
log(int level, java.lang.String category, java.lang.String message, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3)Deprecated. PUBLIC: Log a message with level, category and three parameters that needs to be translated. |
void |
log(SessionLogEntry entry)Deprecated. PUBLIC: Log the log entry. |
void |
log(SessionLogEntry entry)Deprecated. Replaced by log(oracle.toplink.logging.SessionLogEntry) |
void |
logDebug(java.lang.String message)Deprecated. Replaced by log(int level, String message, Object[] params, Accessor accessor, boolean shouldTranslate) |
void |
logDebug(java.lang.String message, java.lang.Object[] arguments)Deprecated. Replaced by log(int level, String category, String message, Object[] params) |
void |
logException(java.lang.Exception exception)Deprecated. Replaced by logThrowable(int level, String category, Throwable throwable) |
void |
logMessage(java.lang.String message)Deprecated. 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); |
void |
logThrowable(int level, java.lang.String category, java.lang.Throwable throwable)Deprecated. PUBLIC: Log a throwable with level and 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.lang.Object |
putInIdentityMap(java.lang.Object domainObject, java.util.Vector key, java.lang.Object writeLockValue, long readTime)Deprecated. |
java.util.Vector |
readAllObjects(java.lang.Class domainClass)Deprecated. PUBLIC: Read all of the instances of the class from the database. |
java.util.Vector |
readAllObjects(java.lang.Class referenceClass, Call aCall)Deprecated. 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 expression)Deprecated. 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)Deprecated. PUBLIC: Read all of the instances of the class from the database return through execution the SQL string. |
java.lang.Object |
readObject(java.lang.Class domainClass)Deprecated. PUBLIC: Read the first instance of the class from the database. |
java.lang.Object |
readObject(java.lang.Class domainClass, Call aCall)Deprecated. 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 expression)Deprecated. 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. PUBLIC: Read the first instance of the class from the database return through execution the SQL string. |
java.lang.Object |
readObject(java.lang.Object object)Deprecated. PUBLIC: Use the example object to consruct a read object query by the objects primary key. |
java.lang.Object |
refreshAndLockObject(java.lang.Object object)Deprecated. PUBLIC: Refresh the attributes of the object and of all of its private parts from the database. |
java.lang.Object |
refreshAndLockObject(java.lang.Object object, short lockMode)Deprecated. PUBLIC: Refresh the attributes of the object and of all of its private parts from the database. |
java.lang.Object |
refreshObject(java.lang.Object object)Deprecated. PUBLIC: Refresh the attributes of the object and of all of its private parts from the database. |
void |
release()Deprecated. 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)Deprecated. PUBLIC: Remove the user defined property. |
void |
removeQuery(java.lang.String queryName)Deprecated. PUBLIC: Remove all queries with the given queryName regardless of the argument types. |
void |
removeQuery(java.lang.String queryName, java.util.Vector argumentTypes)Deprecated. PUBLIC: Remove the specific query with the given queryName and argumentTypes. |
void |
rollbackTransaction()Deprecated. PUBLIC: Rollback the active database transaction. |
void |
setCacheSynchronizationManager(CacheSynchronizationManager cacheSynchronizationManager)Deprecated. ADVANCED: Sets the cache synchronization manager for this session. |
void |
setCommandManager(CommandManager mgr)Deprecated. ADVANCED: Set the CommandManager that allows this session to act as a CommandProcessor and receive or propagate commands from/to the TopLink cluster. |
void |
setDatasourceLogin(Login login)Deprecated. PUBLIC: Set the login. |
void |
setExceptionHandler(ExceptionHandler exceptionHandler)Deprecated. PUBLIC: Set the exceptionHandler. |
void |
setExternalTransactionController(ExternalTransactionController externalTransactionController)Deprecated. Used for JTS integration internally by ServerPlatform. |
void |
setIntegrityChecker(IntegrityChecker integrityChecker)Deprecated. PUBLIC: set the integrityChecker. |
void |
setIsInProfile(boolean inProfile)Deprecated. PUBLIC: Allow for user deactive a profiler |
void |
setLog(java.io.Writer log)Deprecated. PUBLIC: Set the writer to which an accessor writes logged messages and SQL. |
void |
setLogin(DatabaseLogin login)Deprecated. PUBLIC: Set the login. |
void |
setLogin(Login login)Deprecated. PUBLIC: Set the login. |
void |
setLogLevel(int level)Deprecated. PUBLIC: Set the log level |
void |
setName(java.lang.String name)Deprecated. PUBLIC: Set the name of the session. |
void |
setProfiler(SessionProfiler profiler)Deprecated. PUBLIC: Set the profiler for the session. |
void |
setProperty(java.lang.String propertyName, java.lang.Object propertyValue)Deprecated. PUBLIC: Allow for user defined properties. |
void |
setSessionLog(SessionLog sessionLog)Deprecated. PUBLIC: Set the session log to which an accessor logs messages and SQL. |
void |
setSessionLog(SessionLog sessionLog)Deprecated. |
void |
setShouldLogMessages(boolean shouldLogMessages)Deprecated. |
void |
setShouldPropagateChanges(boolean choice)Deprecated. ADVANCED: Set whether changes should be propagated to other sessions or applications in a TopLink cluster through the Remote Command Manager mechanism. |
void |
setUseOldCommit(boolean oldCommit)Deprecated. |
void |
severe(java.lang.String message, java.lang.String category)Deprecated. PUBLIC: This method is called when a severe level message needs to be logged. |
boolean |
shouldLog(int Level, java.lang.String category)Deprecated. PUBLIC: Check if a message of the given level would actually be logged. |
boolean |
shouldLogMessages()Deprecated. PUBLIC: Return if logging is enabled (false if log level is OFF) |
boolean |
shouldPropagateChanges()Deprecated. PUBLIC: Return whether changes should be propagated to other sessions or applications in a TopLink cluster through the Remote Command Manager mechanism. |
java.lang.String |
toString()Deprecated. Print the connection status with the session. |
java.lang.Object |
updateObject(java.lang.Object domainObject)Deprecated. PUBLIC: Update the object and all of its privately owned parts in the database. |
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. |
boolean |
usesOldCommit()Deprecated. ADVANCED: Customers may experience errors with older code, that uses query events on commit, and 9.0.4 of TopLink. |
void |
validateCache()Deprecated. ADVANCED: This can be used to help debugging an object identity problem. |
boolean |
verifyDelete(java.lang.Object domainObject)Deprecated. TESTING: This is used by testing code to ensure that a deletion was successful. |
void |
warning(java.lang.String message, java.lang.String category)Deprecated. PUBLIC: This method is called when a warning level message needs to be logged. |
java.lang.Object |
writeObject(java.lang.Object domainObject)Deprecated. PUBLIC: Write the object and all of its privately owned parts in the database. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Session(Login login)
public Session(Project project)
| Method Detail |
public UnitOfWork acquireUnitOfWork()
acquireUnitOfWork in interface SessionUnitOfWork
public void addAlias(java.lang.String alias,
Descriptor descriptor)
public void addQuery(java.lang.String name,
DatabaseQuery query)
addQuery in interface Session
public void beginTransaction()
throws DatabaseException,
ConcurrencyException
DatabaseException - if the database connection is lost or the begin is rejected.ConcurrencyException - if this session's transaction is aquired by another thread and a timeout occurs.isInTransaction()public void clearIntegrityChecker()
clearIntegrityChecker in interface Sessionpublic void clearProfile()
clearProfile in interface Session
public void commitTransaction()
throws DatabaseException,
ConcurrencyException
DatabaseException - most databases validate changes as they are done, normally errors do not occur on commit unless the disk fails or the connection is lost.ConcurrencyException - if this session is not within a transaction.
public boolean compareObjectsDontMatch(java.lang.Object firstObject,
java.lang.Object secondObject)
public boolean containsObjectInIdentityMap(java.lang.Object domainObject)
containsObjectInIdentityMap in interface SessiongetIdentityMapAccessor(), IdentityMapAccessor
public boolean containsObjectInIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass)
containsObjectInIdentityMap in interface SessiongetIdentityMapAccessor(), IdentityMapAccessorpublic boolean containsQuery(java.lang.String queryName)
containsQuery in interface SessionSession.getIdentityMapAccessor(), IdentityMapAccessorpublic java.lang.Object copyObject(java.lang.Object original)
copyObject in interface SessioncopyObject(Object, ObjectCopyingPolicy)
public java.lang.Object copyObject(java.lang.Object original,
ObjectCopyingPolicy policy)
copyObject in interface Session
public void deleteAllObjects(java.util.Collection domainObjects)
throws DatabaseException,
OptimisticLockException
DatabaseException - if an error occurs on the database, these include constraint violations, security violations and general database erros.OptimisticLockException - if the object's descriptor is using optimistic locking and the object has been updated or deleted by another user since it was last read.
public void deleteAllObjects(java.util.Vector domainObjects)
throws DatabaseException,
OptimisticLockException
DatabaseException - if an error occurs on the database, these include constraint violations, security violations and general database erros.OptimisticLockException - if the object's descriptor is using optimistic locking and the object has been updated or deleted by another user since it was last read.
public java.lang.Object deleteObject(java.lang.Object domainObject)
throws DatabaseException,
OptimisticLockException
DatabaseException - if an error occurs on the database, these include constraint violations, security violations and general database erros. An database error is not raised if the object is already deleted or no rows are effected.OptimisticLockException - if the object's descriptor is using optimistic locking and the object has been updated or deleted by another user since it was last read.DeleteObjectQuery
public boolean doesObjectExist(java.lang.Object object)
throws DatabaseException
doesObjectExist in interface SessionDatabaseExceptionpublic void dontLogMessages()
dontLogMessages in interface Session
public int executeNonSelectingCall(Call call)
throws DatabaseException
Example:
session.executeNonSelectingCall(new SQLCall("Delete from Employee");
executeNonSelectingCall in interface SessionDatabaseExceptionexecuteSelectingCall(Call)
public void executeNonSelectingSQL(java.lang.String sqlString)
throws DatabaseException
Example:
session.executeNonSelectingSQL("Delete from Employee");
executeNonSelectingSQL in interface SessionDatabaseExceptionWarning: Allowing an unverified SQL string to be passed into this method makes your application vulnerable to SQL injection attacks.
public java.lang.Object executeQuery(java.lang.String queryName)
throws DatabaseException
executeQuery in interface SessionDatabaseExceptionaddQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName,
java.lang.Class domainClass)
throws DatabaseException
executeQuery in interface SessionDatabaseExceptionDescriptorQueryManager.addQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName,
java.lang.Class domainClass,
java.lang.Object arg1)
throws DatabaseException
executeQuery in interface SessionDatabaseExceptionDescriptorQueryManager.addQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName,
java.lang.Class domainClass,
java.lang.Object arg1,
java.lang.Object arg2)
throws DatabaseException
executeQuery in interface SessionDatabaseExceptionDescriptorQueryManager.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)
throws DatabaseException
executeQuery in interface 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 SessionDatabaseExceptionDescriptorQueryManager.addQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName,
java.lang.Object arg1)
throws DatabaseException
executeQuery in interface SessionDatabaseExceptionaddQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName,
java.lang.Object arg1,
java.lang.Object arg2)
throws DatabaseException
executeQuery in interface SessionDatabaseExceptionaddQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
throws DatabaseException
executeQuery in interface SessionDatabaseExceptionaddQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(java.lang.String queryName,
java.util.Vector argumentValues)
throws DatabaseException
executeQuery in interface SessionDatabaseExceptionaddQuery(String, DatabaseQuery)
public java.lang.Object executeQuery(DatabaseQuery query)
throws DatabaseException
executeQuery in interface SessionDatabaseExceptionDatabaseQuery
public java.lang.Object executeQuery(DatabaseQuery query,
java.util.Vector argumentValues)
throws DatabaseException
executeQuery in interface SessionDatabaseException
public java.util.Vector executeSelectingCall(Call call)
throws DatabaseException
Example:
session.executeSelectingCall(new SQLCall("Select * from Employee");
executeSelectingCall in interface SessionDatabaseExceptionexecuteNonSelectingCall(Call)
public java.util.Vector executeSQL(java.lang.String sqlString)
throws DatabaseException
Example:
session.executeSelectingCall("Select * from Employee");
executeSQL in interface SessionDatabaseExceptionexecuteSelectingCall(Call)public Session getActiveSession()
getActiveSession in interface Sessionpublic UnitOfWork getActiveUnitOfWork()
getActiveUnitOfWork in interface Session
public java.util.Vector getAllFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
DatabaseRow translationRow)
throws QueryException
getAllFromIdentityMap in interface SessionQueryExceptionSession.getIdentityMapAccessor(), IdentityMapAccessor
public java.util.Vector getAllFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
DatabaseRow translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean shouldReturnInvalidatedObjects)
throws QueryException
QueryExceptiongetIdentityMapAccessor(), IdentityMapAccessor
public java.util.Vector getAllFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
DatabaseRow translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy)
throws QueryException
getAllFromIdentityMap in interface SessionQueryExceptiongetIdentityMapAccessor(), IdentityMapAccessorpublic AsOfClause getAsOfClause()
getAsOfClause in interface Sessionnull if no clause set, or this a regular session.acquireHistoricalSession(oracle.toplink.history.AsOfClause)public CacheSynchronizationManager getCacheSynchronizationManager()
getCacheSynchronizationManager in interface Sessionpublic ClassDescriptor getClassDescriptor(java.lang.Class theClass)
getClassDescriptor in interface Sessionpublic ClassDescriptor getClassDescriptor(java.lang.Object domainObject)
getClassDescriptor in interface Sessionpublic ClassDescriptor getClassDescriptorForAlias(java.lang.String alias)
getClassDescriptorForAlias in interface Sessionpublic Descriptor getDescriptor(java.lang.Class theClass)
getDescriptor in interface Sessionpublic Descriptor getDescriptor(java.lang.Object domainObject)
getDescriptor in interface Sessionpublic Descriptor getDescriptorForAlias(java.lang.String alias)
getDescriptorForAlias in interface Sessionpublic java.util.Map getDescriptors()
getDescriptors in interface Sessionpublic SessionEventManager getEventManager()
getEventManager in interface Sessionpublic ExceptionHandler getExceptionHandler()
getExceptionHandler in interface Sessionpublic ExternalTransactionController getExternalTransactionController()
getExternalTransactionController in interface SessionJTATransactionControllerpublic java.lang.Object getFromIdentityMap(java.lang.Object domainObject)
getFromIdentityMap in interface SessiongetIdentityMapAccessor(), IdentityMapAccessor
public java.lang.Object getFromIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass)
getFromIdentityMap in interface SessiongetIdentityMapAccessor(), IdentityMapAccessor
public java.lang.Object getFromIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass,
boolean shouldReturnInvalidatedObjects)
getIdentityMapAccessor(), IdentityMapAccessor
public java.lang.Object getFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
DatabaseRow translationRow)
throws QueryException
getFromIdentityMap in interface SessionQueryExceptionSession.getIdentityMapAccessor(), IdentityMapAccessor
public java.lang.Object getFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
DatabaseRow translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy)
throws QueryException
getFromIdentityMap in interface SessionQueryExceptiongetIdentityMapAccessor(), IdentityMapAccessorpublic IdentityMapAccessor getIdentityMapAccessor()
getIdentityMapAccessor in interface Sessionpublic IntegrityChecker getIntegrityChecker()
getIntegrityChecker in interface Sessionpublic java.io.Writer getLog()
getLog in interface SessionlogMessages()public DatabaseLogin getLogin()
getLogin in interface Sessionpublic Login getDatasourceLogin()
getDatasourceLogin in interface Sessionpublic java.lang.String getName()
getName in interface Sessionpublic java.lang.Number getNextSequenceNumberValue(java.lang.Class domainClass)
getNextSequenceNumberValue in interface Sessionpublic SessionProfiler getProfiler()
getProfiler in interface Sessionpublic Project getProject()
getProject in interface Sessionpublic java.util.Map getProperties()
getProperties in interface Sessionpublic java.lang.Object getProperty(java.lang.String name)
getProperty in interface Sessionpublic java.util.Map getQueries()
getQueries in interface SessiongetAllQueries()public java.util.Vector getAllQueries()
getQueries()public DatabaseQuery getQuery(java.lang.String name)
getQuery in interface Session
public DatabaseQuery getQuery(java.lang.String name,
java.util.Vector arguments)
getQuery in interface SessiongetQuery(String)public SessionLog getSessionLog()
getSessionLog in interface SessionlogMessages()public java.lang.Object getWriteLockValue(java.lang.Object domainObject)
getWriteLockValue in interface SessiongetIdentityMapAccessor(), IdentityMapAccessor
public java.lang.Object getWriteLockValue(java.util.Vector primaryKey,
java.lang.Class theClass)
getWriteLockValue in interface SessiongetIdentityMapAccessor(), IdentityMapAccessor
public java.lang.Object handleException(java.lang.RuntimeException exception)
throws java.lang.RuntimeException
handleException in interface Sessionjava.lang.RuntimeExceptionpublic boolean hasCacheSynchronizationManager()
hasCacheSynchronizationManager in interface Sessionpublic boolean hasDescriptor(java.lang.Class theClass)
hasDescriptor in interface Sessionpublic boolean hasExceptionHandler()
hasExceptionHandler in interface Sessionpublic boolean hasExternalTransactionController()
hasExternalTransactionController in interface SessionJTATransactionControllerpublic 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.
initializeAllIdentityMaps in interface SessiongetIdentityMapAccessor(), IdentityMapAccessorpublic void initializeIdentityMap(java.lang.Class theClass)
initializeIdentityMap in interface SessiongetIdentityMapAccessor(), IdentityMapAccessorpublic void initializeIdentityMaps()
initializeIdentityMaps in interface SessiongetIdentityMapAccessor(), IdentityMapAccessor
public java.lang.Object insertObject(java.lang.Object domainObject)
throws DatabaseException
DatabaseException - if an error occurs on the database, these include constraint violations, security violations and general database erros.InsertObjectQuery, writeObject(Object)public boolean isClassReadOnly(java.lang.Class theClass)
public boolean isClientSession()
isClientSession in interface Sessionpublic boolean isConnected()
isConnected in interface Sessionpublic boolean isDatabaseSession()
isDatabaseSession in interface Sessionpublic boolean isDistributedSession()
isDistributedSession in interface Sessionpublic boolean isInProfile()
isInProfile in interface Sessionpublic void setIsInProfile(boolean inProfile)
public boolean isInTransaction()
public boolean isRemoteSession()
isRemoteSession in interface Sessionpublic boolean isRemoteUnitOfWork()
isRemoteUnitOfWork in interface Sessionpublic boolean isServerSession()
isServerSession in interface Sessionpublic boolean isSessionBroker()
isSessionBroker in interface Sessionpublic boolean isUnitOfWork()
isUnitOfWork in interface Session
public java.util.Vector keyFromObject(java.lang.Object domainObject)
throws ValidationException
keyFromObject in interface SessionValidationExceptionpublic void log(SessionLogEntry entry)
log in interface Sessionpublic void log(SessionLogEntry entry)
log in interface Sessionlog(oracle.toplink.logging.SessionLogEntry)
public void logDebug(java.lang.String message,
java.lang.Object[] arguments)
logDebug in interface Sessionlog(int level, String category, String message, Object[] params)public void logDebug(java.lang.String message)
logDebug in interface Sessionlog(int, String, String)public void logException(java.lang.Exception exception)
logException in interface SessionlogThrowable(int level, String category, Throwable throwable)
public void logMessage(java.lang.String message,
java.lang.Object[] arguments)
logMessage in interface Sessionlog(int level, String category, String message, Object[] params)public void logMessage(java.lang.String message)
logMessage in interface Sessionpublic void logMessages()
logMessages in interface SessionsetLogLevel(int)public void printIdentityMap(java.lang.Class businessClass)
printIdentityMap in interface SessiongetIdentityMapAccessor(), IdentityMapAccessorpublic void printIdentityMaps()
printIdentityMaps in interface SessiongetIdentityMapAccessor(), IdentityMapAccessorpublic java.lang.Object putInIdentityMap(java.lang.Object domainObject)
putInIdentityMap in interface SessiongetIdentityMapAccessor(), IdentityMapAccessor
public java.lang.Object putInIdentityMap(java.lang.Object domainObject,
java.util.Vector key)
putInIdentityMap in interface SessiongetIdentityMapAccessor(), IdentityMapAccessor
public java.lang.Object putInIdentityMap(java.lang.Object domainObject,
java.util.Vector key,
java.lang.Object writeLockValue)
putInIdentityMap in interface SessiongetIdentityMapAccessor(), IdentityMapAccessor
public java.lang.Object putInIdentityMap(java.lang.Object domainObject,
java.util.Vector key,
java.lang.Object writeLockValue,
long readTime)
getIdentityMapAccessor(), IdentityMapAccessor
public java.util.Vector readAllObjects(java.lang.Class domainClass)
throws DatabaseException
readAllObjects in interface SessionDatabaseExceptionReadAllQuery, readAllObjects(Class, Expression)
public java.util.Vector readAllObjects(java.lang.Class domainClass,
java.lang.String sqlString)
throws DatabaseException
readAllObjects in interface SessionDatabaseExceptionReadAllQuery
public java.util.Vector readAllObjects(java.lang.Class referenceClass,
Call aCall)
throws DatabaseException
readAllObjects in interface SessionDatabaseExceptionCall
public java.util.Vector readAllObjects(java.lang.Class domainClass,
Expression expression)
throws DatabaseException
readAllObjects in interface SessionDatabaseExceptionReadAllQuery
public java.lang.Object readObject(java.lang.Class domainClass)
throws DatabaseException
readObject in interface SessionDatabaseExceptionReadObjectQuery, readAllObjects(Class, Expression)
public java.lang.Object readObject(java.lang.Class domainClass,
java.lang.String sqlString)
throws DatabaseException
readObject in interface SessionDatabaseExceptionReadObjectQuery
public java.lang.Object readObject(java.lang.Class domainClass,
Call aCall)
throws DatabaseException
readObject in interface SessionDatabaseExceptionSQLCall, EJBQLCall
public java.lang.Object readObject(java.lang.Class domainClass,
Expression expression)
throws DatabaseException
readObject in interface SessionDatabaseExceptionReadObjectQuery
public java.lang.Object readObject(java.lang.Object object)
throws DatabaseException
readObject in interface SessionDatabaseException
public java.lang.Object refreshAndLockObject(java.lang.Object object)
throws DatabaseException
DatabaseException#refreshAndLockObject(Object, lockMode)
public java.lang.Object refreshAndLockObject(java.lang.Object object,
short lockMode)
throws DatabaseException
Lock Modes: ObjectLevelReadQuery.NO_LOCK, LOCK, LOCK_NOWAIT
DatabaseException
public java.lang.Object refreshObject(java.lang.Object object)
throws DatabaseException
refreshObject in interface SessionDatabaseExceptionpublic void release()
release in interface Sessionpublic void removeFromIdentityMap(java.lang.Object domainObject)
removeFromIdentityMap in interface SessiongetIdentityMapAccessor(), IdentityMapAccessor
public void removeFromIdentityMap(java.util.Vector key,
java.lang.Class theClass)
removeFromIdentityMap in interface SessiongetIdentityMapAccessor(), IdentityMapAccessorpublic void removeProperty(java.lang.String property)
removeProperty in interface Sessionpublic void removeQuery(java.lang.String queryName)
removeQuery in interface SessionremoveQuery(String, Vector)
public void removeQuery(java.lang.String queryName,
java.util.Vector argumentTypes)
public void rollbackTransaction()
throws DatabaseException,
ConcurrencyException
DatabaseException - if the database connection is lost or the rollback fails.ConcurrencyException - if this session is not within a transaction.public void setCacheSynchronizationManager(CacheSynchronizationManager cacheSynchronizationManager)
setCacheSynchronizationManager in interface Sessionpublic void setExceptionHandler(ExceptionHandler exceptionHandler)
setExceptionHandler in interface Sessionpublic void setExternalTransactionController(ExternalTransactionController externalTransactionController)
setExternalTransactionController in interface SessionCustomServerPlatformpublic void setIntegrityChecker(IntegrityChecker integrityChecker)
setIntegrityChecker in interface Sessionpublic void setLog(java.io.Writer log)
setLog in interface SessionlogMessages()public void setLogin(DatabaseLogin login)
public void setLogin(Login login)
public void setDatasourceLogin(Login login)
public void setName(java.lang.String name)
setName in interface Sessionpublic void setProfiler(SessionProfiler profiler)
setProfiler in interface Session
public void setProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
setProperty in interface Sessionpublic void setSessionLog(SessionLog sessionLog)
setSessionLog in interface SessionlogMessage(String)public void setSessionLog(SessionLog sessionLog)
setSessionLog in interface SessionsetSessionLog(oracle.toplink.logging.SessionLog)public void setShouldLogMessages(boolean shouldLogMessages)
setShouldLogMessages in interface SessionsetLogLevel(int)public void setUseOldCommit(boolean oldCommit)
public boolean shouldLogMessages()
shouldLogMessages in interface Sessionpublic java.lang.String toString()
public java.lang.Object updateObject(java.lang.Object domainObject)
throws DatabaseException,
OptimisticLockException
DatabaseException - if an error occurs on the database, these include constraint violations, security violations and general database erros.OptimisticLockException - if the object's descriptor is using optimistic locking and the object has been updated or deleted by another user since it was last read.UpdateObjectQuery, writeObject(Object)
public void updateWriteLockValue(java.lang.Object domainObject,
java.lang.Object writeLockValue)
updateWriteLockValue in interface SessiongetIdentityMapAccessor(), IdentityMapAccessor
public void updateWriteLockValue(java.util.Vector primaryKey,
java.lang.Class theClass,
java.lang.Object writeLockValue)
updateWriteLockValue in interface SessiongetIdentityMapAccessor(), IdentityMapAccessorpublic boolean usesExternalTransactionController()
usesExternalTransactionController in interface Sessionpublic boolean usesOldCommit()
public void validateCache()
validateCache in interface Sessionpublic boolean verifyDelete(java.lang.Object domainObject)
public java.lang.Object writeObject(java.lang.Object domainObject)
throws DatabaseException,
OptimisticLockException
DatabaseException - if an error occurs on the database, these include constraint violations, security violations and general database erros.OptimisticLockException - if the object's descriptor is using optimistic locking and the object has been updated or deleted by another user since it was last read.WriteObjectQuery, insertObject(Object), updateObject(Object)public CommandManager getCommandManager()
getCommandManager in interface CommandProcessorCommandManagerpublic void setCommandManager(CommandManager mgr)
setCommandManager in interface CommandProcessormgr - The CommandManager instance to control the remote command service for this sessionCommandManagerpublic boolean shouldPropagateChanges()
setCommandManager(CommandManager)public void setShouldPropagateChanges(boolean choice)
choice - If true (and the CommandManager is set) then propagation will occursetCommandManager(CommandManager)public int getLogLevel(java.lang.String category)
Return the log level
getLogLevel in interface Sessioncategory - the string representation of a TopLink category, e.g. "sql", "transaction" ...public int getLogLevel()
Return the log level
getLogLevel in interface Sessionpublic void setLogLevel(int level)
Set the log level
setLogLevel in interface Sessionlevel - the new log level
public boolean shouldLog(int Level,
java.lang.String category)
Check if a message of the given level would actually be logged.
shouldLog in interface Sessioncategory - the string representation of a TopLink category
public void log(int level,
java.lang.String category,
java.lang.String message)
Log a message with level and category that needs to be translated.
level - the log request level valuemessage - the string messagecategory - the string representation of a TopLink category.
public void log(int level,
java.lang.String category,
java.lang.String message,
java.lang.Object param)
Log a message with level, category and a parameter that needs to be translated.
level - the log request level valuemessage - the string messagecategory - the string representation of a TopLink category.param - a parameter of the message
public void log(int level,
java.lang.String category,
java.lang.String message,
java.lang.Object param1,
java.lang.Object param2)
Log a message with level, category and two parameters that needs to be translated.
level - the log request level valuemessage - the string messagecategory - the string representation of a TopLink category.param1 - a parameter of the messageparam2 - second parameter of the message
public void log(int level,
java.lang.String category,
java.lang.String message,
java.lang.Object param1,
java.lang.Object param2,
java.lang.Object param3)
Log a message with level, category and three parameters that needs to be translated.
level - the log request level valuemessage - the string messagecategory - the string representation of a TopLink category.param1 - a parameter of the messageparam2 - second parameter of the messageparam3 - third parameter of the message
public void log(int level,
java.lang.String category,
java.lang.String message,
java.lang.Object[] params)
Log a message with level, category and an array of parameters that needs to be translated.
level - the log request level valuemessage - the string messagecategory - the string representation of a TopLink category.params - array of parameters to the message
public void log(int level,
java.lang.String category,
java.lang.String message,
java.lang.Object[] params,
Accessor accessor)
Log a message with level, category, parameters and accessor that needs to be translated.
level - the log request level valuemessage - the string messageparams - array of parameters to the messageaccessor - the connection that generated the log entrycategory - the string representation of a TopLink category.
public void log(int level,
java.lang.String category,
java.lang.String message,
java.lang.Object[] params,
Accessor accessor,
boolean shouldTranslate)
Log a message with level, category, parameters and accessor. shouldTranslate determines if the message needs to be translated.
level - the log request level valuemessage - the string messageparams - array of parameters to the messageaccessor - the connection that generated the log entrycategory - the string representation of a TopLink category.shouldTranslate - true if the message needs to be translated.
public void log(int level,
java.lang.String message,
java.lang.Object[] params,
Accessor accessor)
Log a message with level, parameters and accessor that needs to be translated.
level - the log request level valuemessage - the string messageparams - array of parameters to the messageaccessor - the connection that generated the log entry
public void log(int level,
java.lang.String message,
java.lang.Object[] params,
Accessor accessor,
boolean shouldTranslate)
Log a message with level, parameters and accessor. shouldTranslate determines if the message needs to be translated.
level - the log request level valuemessage - the string messageparams - array of parameters to the messageaccessor - the connection that generated the log entryshouldTranslate - true if the message needs to be translated.
public void logThrowable(int level,
java.lang.String category,
java.lang.Throwable throwable)
Log a throwable with level and category.
level - the log request level valuecategory - the string representation of a TopLink category.throwable - a Throwable
public void severe(java.lang.String message,
java.lang.String category)
This method is called when a severe level message needs to be logged. The message will be translated
message - the message key
public void warning(java.lang.String message,
java.lang.String category)
This method is called when a warning level message needs to be logged. The message will be translated
message - the message key
public void info(java.lang.String message,
java.lang.String category)
This method is called when a info level message needs to be logged. The message will be translated
message - the message key
public void config(java.lang.String message,
java.lang.String category)
This method is called when a config level message needs to be logged. The message will be translated
message - the message key
public void fine(java.lang.String message,
java.lang.String category)
This method is called when a fine level message needs to be logged. The message will be translated
message - the message key
public void finer(java.lang.String message,
java.lang.String category)
This method is called when a finer level message needs to be logged. The message will be translated
message - the message key
public void finest(java.lang.String message,
java.lang.String category)
This method is called when a finest level message needs to be logged. The message will be translated
message - the message key
public java.lang.Object handleSevere(java.lang.RuntimeException exception)
throws java.lang.RuntimeException
handleSevere in interface Sessionjava.lang.RuntimeException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||