Package org.eclipse.persistence.sessions
Class SessionEventAdapter
- java.lang.Object
-
- org.eclipse.persistence.sessions.SessionEventAdapter
-
- All Implemented Interfaces:
java.util.EventListener,CoreSessionEventListener,SessionEventListener
- Direct Known Subclasses:
org.eclipse.persistence.internal.jaxb.SessionEventListener
public abstract class SessionEventAdapter extends java.lang.Object implements SessionEventListener
Purpose: To provide a trivial implemetation of SessionEventListener. You may subclass this class rather than implement the entire SessonEventListener interface in cases where only a small subset of the interface methods are needed.
-
-
Constructor Summary
Constructors Constructor Description SessionEventAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmissingDescriptor(SessionEvent event)PUBLIC: This event is raised on the session if a descriptor is missing for a class being persisted.voidmoreRowsDetected(SessionEvent event)PUBLIC: This event is raised on the session after read object query detected more than a single row back from the database.voidnoRowsModified(SessionEvent event)PUBLIC: This event is raised on the session after update or delete SQL has been sent to the database but a row count of zero was returned.voidoutputParametersDetected(SessionEvent event)PUBLIC: This event is raised on the session after a stored procedure call has been executed that had output parameters.voidpostAcquireClientSession(SessionEvent event)PUBLIC: This event is raised on the client session after creation/acquiring.voidpostAcquireConnection(SessionEvent event)PUBLIC: This event is raised on when using the server/client sessions.voidpostAcquireExclusiveConnection(SessionEvent event)PUBLIC: This event is raised when a ClientSession, with Isolated data, acquires an exclusive connection.voidpostAcquireUnitOfWork(SessionEvent event)PUBLIC: This event is raised on the unit of work after creation/acquiring.voidpostBeginTransaction(SessionEvent event)PUBLIC: This event is raised after a database transaction is started.voidpostCalculateUnitOfWorkChangeSet(SessionEvent event)PUBLIC: This event is raised after the commit has begun on the UnitOfWork and after the changes are calculated.voidpostCommitTransaction(SessionEvent event)PUBLIC: This event is raised after a database transaction is commited.voidpostCommitUnitOfWork(SessionEvent event)PUBLIC: This event is raised on the unit of work after commit.voidpostConnect(SessionEvent event)PUBLIC: This event is raised after the session connects to the database.voidpostDistributedMergeUnitOfWorkChangeSet(SessionEvent event)PUBLIC: This even will be raised after a UnitOfWorkChangeSet has been merged When that changeSet has been received from a distributed sessionvoidpostExecuteCall(SessionEvent event)PUBLIC: This event is raised after the execution of every call against the session.voidpostExecuteQuery(SessionEvent event)PUBLIC: This event is raised after the execution of every query against the session.voidpostFlushUnitOfWork(SessionEvent event)PUBLIC: This event is raised on the unit of work after a flush.voidpostLogin(SessionEvent event)PUBLIC: This Event is raised after the session logs in.voidpostLogout(SessionEvent event)PUBLIC: This Event is raised after the session logs out.voidpostMergeUnitOfWorkChangeSet(SessionEvent event)PUBLIC: This even will be raised after a UnitOfWorkChangeSet has been mergedvoidpostReleaseClientSession(SessionEvent event)PUBLIC: This event is raised on the client session after releasing.voidpostReleaseUnitOfWork(SessionEvent event)PUBLIC: This event is raised on the unit of work after release.voidpostResumeUnitOfWork(SessionEvent event)PUBLIC: This event is raised on the unit of work after resuming.voidpostRollbackTransaction(SessionEvent event)PUBLIC: This event is raised after a database transaction is rolledback.voidpreBeginTransaction(SessionEvent event)PUBLIC: This event is raised before a database transaction is started.voidpreCalculateUnitOfWorkChangeSet(SessionEvent event)PUBLIC: This event is raised after the commit has begun on the UnitOfWork but before the changes are calculated.voidpreCommitTransaction(SessionEvent event)PUBLIC: This event is raised before a database transaction is commited.voidpreCommitUnitOfWork(SessionEvent event)PUBLIC: This event is raised on the unit of work before commit.voidpreDistributedMergeUnitOfWorkChangeSet(SessionEvent event)PUBLIC: This even will be raised before a UnitOfWorkChangeSet has been merged When that changeSet has been received from a distributed sessionvoidpreExecuteCall(SessionEvent event)PUBLIC: This event is raised before the execution of every call against the session.voidpreExecuteQuery(SessionEvent event)PUBLIC: This event is raised before the execution of every query against the session.voidpreFlushUnitOfWork(SessionEvent event)PUBLIC: This event is raised on the unit of work before a flush.voidpreLogin(SessionEvent event)PUBLIC: This Event is raised before the session logs in.voidpreLogout(SessionEvent event)PUBLIC: This Event is raised before the session logs out.voidpreMergeUnitOfWorkChangeSet(SessionEvent event)PUBLIC: This even will be raised before a UnitOfWorkChangeSet has been mergedvoidprepareUnitOfWork(SessionEvent event)PUBLIC: This event is raised on the unit of work after the SQL has been flushed, but the commit transaction has not been executed.voidpreReleaseClientSession(SessionEvent event)PUBLIC: This event is raised on the client session before releasing.voidpreReleaseConnection(SessionEvent event)PUBLIC: This event is raised on when using the server/client sessions.voidpreReleaseExclusiveConnection(SessionEvent event)PUBLIC: This event is fired just before a Client Session, with isolated data, releases its Exclusive ConnectionvoidpreReleaseUnitOfWork(SessionEvent event)PUBLIC: This event is raised on the unit of work before release.voidpreRollbackTransaction(SessionEvent event)PUBLIC: This event is raised before a database transaction is rolledback.
-
-
-
Method Detail
-
missingDescriptor
public void missingDescriptor(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised on the session if a descriptor is missing for a class being persisted. This can be used to lazy register the descriptor or set of descriptors.- Specified by:
missingDescriptorin interfaceSessionEventListener
-
moreRowsDetected
public void moreRowsDetected(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised on the session after read object query detected more than a single row back from the database. The "result" of the event will be the call. Some applications may want to interpret this as an error or warning condition.- Specified by:
moreRowsDetectedin interfaceSessionEventListener
-
noRowsModified
public void noRowsModified(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised on the session after update or delete SQL has been sent to the database but a row count of zero was returned.- Specified by:
noRowsModifiedin interfaceSessionEventListener
-
outputParametersDetected
public void outputParametersDetected(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised on the session after a stored procedure call has been executed that had output parameters. If the proc was used to override an insert/update/delete operation then EclipseLink will not be expecting any return value. This event mechanism allows for a listener to be registered before the proc is call to process the output values. The event "result" will contain a Record of the output values, and property "call" will be the StoredProcedureCall.- Specified by:
outputParametersDetectedin interfaceSessionEventListener
-
postAcquireClientSession
public void postAcquireClientSession(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised on the client session after creation/acquiring.- Specified by:
postAcquireClientSessionin interfaceSessionEventListener
-
postAcquireConnection
public void postAcquireConnection(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised on when using the server/client sessions. This event is raised after a connection is acquired from a connection pool.- Specified by:
postAcquireConnectionin interfaceSessionEventListener
-
postAcquireExclusiveConnection
public void postAcquireExclusiveConnection(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised when a ClientSession, with Isolated data, acquires an exclusive connection. The event will contain the ClientSession that is being acquired. Users can set properties within the ConnectionPolicy of that ClientSession for access within this event.- Specified by:
postAcquireExclusiveConnectionin interfaceSessionEventListener
-
postAcquireUnitOfWork
public void postAcquireUnitOfWork(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised on the unit of work after creation/acquiring. This will be raised on nest units of work.- Specified by:
postAcquireUnitOfWorkin interfaceSessionEventListener
-
postBeginTransaction
public void postBeginTransaction(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised after a database transaction is started. It is not raised for nested transactions.- Specified by:
postBeginTransactionin interfaceSessionEventListener
-
preCalculateUnitOfWorkChangeSet
public void preCalculateUnitOfWorkChangeSet(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised after the commit has begun on the UnitOfWork but before the changes are calculated.- Specified by:
preCalculateUnitOfWorkChangeSetin interfaceSessionEventListener
-
postCalculateUnitOfWorkChangeSet
public void postCalculateUnitOfWorkChangeSet(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised after the commit has begun on the UnitOfWork and after the changes are calculated. The UnitOfWorkChangeSet, at this point, will contain changeSets without the version fields updated and without IdentityField type primary keys. These will be updated after the insert, or update, of the object- Specified by:
postCalculateUnitOfWorkChangeSetin interfaceSessionEventListener
-
postCommitTransaction
public void postCommitTransaction(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised after a database transaction is commited. It is not raised for nested transactions.- Specified by:
postCommitTransactionin interfaceSessionEventListener
-
postCommitUnitOfWork
public void postCommitUnitOfWork(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised on the unit of work after commit. This will be raised on nest units of work.- Specified by:
postCommitUnitOfWorkin interfaceSessionEventListener
-
postFlushUnitOfWork
public void postFlushUnitOfWork(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised on the unit of work after a flush.- Specified by:
postFlushUnitOfWorkin interfaceSessionEventListener
-
postDistributedMergeUnitOfWorkChangeSet
public void postDistributedMergeUnitOfWorkChangeSet(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This even will be raised after a UnitOfWorkChangeSet has been merged When that changeSet has been received from a distributed session- Specified by:
postDistributedMergeUnitOfWorkChangeSetin interfaceSessionEventListener
-
postMergeUnitOfWorkChangeSet
public void postMergeUnitOfWorkChangeSet(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This even will be raised after a UnitOfWorkChangeSet has been merged- Specified by:
postMergeUnitOfWorkChangeSetin interfaceSessionEventListener
-
postConnect
public void postConnect(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised after the session connects to the database. In a server session this event is raised on every new connection established.- Specified by:
postConnectin interfaceSessionEventListener
-
postExecuteCall
public void postExecuteCall(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised after the execution of every call against the session. The event contains the call and call result. This differs from query execution in that the call has been translated.- Specified by:
postExecuteCallin interfaceSessionEventListener
-
postExecuteQuery
public void postExecuteQuery(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised after the execution of every query against the session. The event contains the query and query result.- Specified by:
postExecuteQueryin interfaceSessionEventListener
-
postReleaseClientSession
public void postReleaseClientSession(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised on the client session after releasing.- Specified by:
postReleaseClientSessionin interfaceSessionEventListener
-
postReleaseUnitOfWork
public void postReleaseUnitOfWork(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised on the unit of work after release. This will be raised on nest units of work.- Specified by:
postReleaseUnitOfWorkin interfaceSessionEventListener
-
postResumeUnitOfWork
public void postResumeUnitOfWork(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised on the unit of work after resuming. This occurs after pre/postCommit.- Specified by:
postResumeUnitOfWorkin interfaceSessionEventListener
-
postRollbackTransaction
public void postRollbackTransaction(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised after a database transaction is rolledback. It is not raised for nested transactions.- Specified by:
postRollbackTransactionin interfaceSessionEventListener
-
preBeginTransaction
public void preBeginTransaction(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised before a database transaction is started. It is not raised for nested transactions.- Specified by:
preBeginTransactionin interfaceSessionEventListener
-
preCommitTransaction
public void preCommitTransaction(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised before a database transaction is commited. It is not raised for nested transactions.- Specified by:
preCommitTransactionin interfaceSessionEventListener
-
preCommitUnitOfWork
public void preCommitUnitOfWork(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised on the unit of work before commit. This will be raised on nest units of work.- Specified by:
preCommitUnitOfWorkin interfaceSessionEventListener
-
preFlushUnitOfWork
public void preFlushUnitOfWork(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised on the unit of work before a flush.- Specified by:
preFlushUnitOfWorkin interfaceSessionEventListener
-
preExecuteCall
public void preExecuteCall(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised before the execution of every call against the session. The event contains the call to be executed. This differs from query execution in that the call has been translated.- Specified by:
preExecuteCallin interfaceSessionEventListener
-
preExecuteQuery
public void preExecuteQuery(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised before the execution of every query against the session. The event contains the query to be executed.- Specified by:
preExecuteQueryin interfaceSessionEventListener
-
prepareUnitOfWork
public void prepareUnitOfWork(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised on the unit of work after the SQL has been flushed, but the commit transaction has not been executed. It is similar to the JTS prepare phase.- Specified by:
prepareUnitOfWorkin interfaceSessionEventListener
-
preReleaseClientSession
public void preReleaseClientSession(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised on the client session before releasing.- Specified by:
preReleaseClientSessionin interfaceSessionEventListener
-
preReleaseConnection
public void preReleaseConnection(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised on when using the server/client sessions. This event is raised before a connection is released into a connection pool.- Specified by:
preReleaseConnectionin interfaceSessionEventListener
-
preReleaseExclusiveConnection
public void preReleaseExclusiveConnection(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is fired just before a Client Session, with isolated data, releases its Exclusive Connection- Specified by:
preReleaseExclusiveConnectionin interfaceSessionEventListener
-
preReleaseUnitOfWork
public void preReleaseUnitOfWork(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised on the unit of work before release. This will be raised on nest units of work.- Specified by:
preReleaseUnitOfWorkin interfaceSessionEventListener
-
preDistributedMergeUnitOfWorkChangeSet
public void preDistributedMergeUnitOfWorkChangeSet(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This even will be raised before a UnitOfWorkChangeSet has been merged When that changeSet has been received from a distributed session- Specified by:
preDistributedMergeUnitOfWorkChangeSetin interfaceSessionEventListener
-
preMergeUnitOfWorkChangeSet
public void preMergeUnitOfWorkChangeSet(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This even will be raised before a UnitOfWorkChangeSet has been merged- Specified by:
preMergeUnitOfWorkChangeSetin interfaceSessionEventListener
-
preRollbackTransaction
public void preRollbackTransaction(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This event is raised before a database transaction is rolledback. It is not raised for nested transactions.- Specified by:
preRollbackTransactionin interfaceSessionEventListener
-
preLogin
public void preLogin(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This Event is raised before the session logs in.- Specified by:
preLoginin interfaceSessionEventListener
-
postLogin
public void postLogin(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This Event is raised after the session logs in.- Specified by:
postLoginin interfaceSessionEventListener
-
preLogout
public void preLogout(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This Event is raised before the session logs out.- Specified by:
preLogoutin interfaceSessionEventListener
-
postLogout
public void postLogout(SessionEvent event)
Description copied from interface:SessionEventListenerPUBLIC: This Event is raised after the session logs out.- Specified by:
postLogoutin interfaceSessionEventListener
-
-