- All Superinterfaces:
CoreSessionEventListener,EventListener
- All Known Implementing Classes:
PreLoginMappingAdapter,PreLoginMappingAdapterV2,SessionEventAdapter,org.eclipse.persistence.internal.jaxb.SessionEventListener
Purpose: Used to support session events. To register for events notification an event listener must be registered with the session.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidmissingDescriptor(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.voidPUBLIC: This event is raised on the session after a stored procedure call has been executed that had output parameters.voidPUBLIC: This event is raised on the client session after creation/acquiring.voidPUBLIC: This event is raised on when using the server/client sessions.voidPUBLIC: This event is raised when a ClientSession, with Isolated data, acquires an exclusive connection.voidPUBLIC: 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.voidPUBLIC: This event is raised after the commit has begun on the UnitOfWork and after the changes are calculated.voidPUBLIC: 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.voidPUBLIC: 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.voidPUBLIC: This even will be raised after a UnitOfWorkChangeSet has been mergedvoidPUBLIC: This event is raised on the client session after releasing.voidPUBLIC: 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.voidPUBLIC: This event is raised after a database transaction is rolledback.voidpreBeginTransaction(SessionEvent event) PUBLIC: This event is raised before a database transaction is started.voidPUBLIC: 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.voidPUBLIC: 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.voidPUBLIC: 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.voidPUBLIC: 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.voidPUBLIC: 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.voidPUBLIC: This event is raised before a database transaction is rolledback.
-
Method Details
-
missingDescriptor
PUBLIC: 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. -
moreRowsDetected
PUBLIC: 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. -
noRowsModified
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. -
outputParametersDetected
PUBLIC: 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. -
postAcquireClientSession
PUBLIC: This event is raised on the client session after creation/acquiring. -
postAcquireConnection
PUBLIC: This event is raised on when using the server/client sessions. This event is raised after a connection is acquired from a connection pool. -
postAcquireExclusiveConnection
PUBLIC: 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. -
postAcquireUnitOfWork
PUBLIC: This event is raised on the unit of work after creation/acquiring. This will be raised on nest units of work. -
postBeginTransaction
PUBLIC: This event is raised after a database transaction is started. It is not raised for nested transactions. -
preCalculateUnitOfWorkChangeSet
PUBLIC: This event is raised after the commit has begun on the UnitOfWork but before the changes are calculated. -
postCalculateUnitOfWorkChangeSet
PUBLIC: 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 -
postCommitTransaction
PUBLIC: This event is raised after a database transaction is commited. It is not raised for nested transactions. -
postCommitUnitOfWork
PUBLIC: This event is raised on the unit of work after commit. This will be raised on nest units of work. -
postFlushUnitOfWork
PUBLIC: This event is raised on the unit of work after a flush. -
postConnect
PUBLIC: This event is raised after the session connects to the database. In a server session this event is raised on every new connection established. -
postExecuteCall
PUBLIC: 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. -
postExecuteQuery
PUBLIC: This event is raised after the execution of every query against the session. The event contains the query and query result. -
postReleaseClientSession
PUBLIC: This event is raised on the client session after releasing. -
postReleaseUnitOfWork
PUBLIC: This event is raised on the unit of work after release. This will be raised on nest units of work. -
postResumeUnitOfWork
PUBLIC: This event is raised on the unit of work after resuming. This occurs after pre/postCommit. -
postRollbackTransaction
PUBLIC: This event is raised after a database transaction is rolledback. It is not raised for nested transactions. -
postDistributedMergeUnitOfWorkChangeSet
PUBLIC: This even will be raised after a UnitOfWorkChangeSet has been merged When that changeSet has been received from a distributed session -
postMergeUnitOfWorkChangeSet
PUBLIC: This even will be raised after a UnitOfWorkChangeSet has been merged -
preBeginTransaction
PUBLIC: This event is raised before a database transaction is started. It is not raised for nested transactions. -
preCommitTransaction
PUBLIC: This event is raised before a database transaction is commited. It is not raised for nested transactions. -
preCommitUnitOfWork
PUBLIC: This event is raised on the unit of work before commit. This will be raised on nest units of work. -
preFlushUnitOfWork
PUBLIC: This event is raised on the unit of work before a flush. -
preExecuteCall
PUBLIC: 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. -
preExecuteQuery
PUBLIC: This event is raised before the execution of every query against the session. The event contains the query to be executed. -
prepareUnitOfWork
PUBLIC: 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. -
preReleaseClientSession
PUBLIC: This event is raised on the client session before releasing. -
preReleaseConnection
PUBLIC: This event is raised on when using the server/client sessions. This event is raised before a connection is released into a connection pool. -
preReleaseExclusiveConnection
PUBLIC: This event is fired just before a Client Session, with isolated data, releases its Exclusive Connection -
preReleaseUnitOfWork
PUBLIC: This event is raised on the unit of work before release. This will be raised on nest units of work. -
preRollbackTransaction
PUBLIC: This event is raised before a database transaction is rolledback. It is not raised for nested transactions. -
preDistributedMergeUnitOfWorkChangeSet
PUBLIC: This even will be raised before a UnitOfWorkChangeSet has been merged When that changeSet has been received from a distributed session -
preMergeUnitOfWorkChangeSet
PUBLIC: This even will be raised before a UnitOfWorkChangeSet has been merged -
preLogin
PUBLIC: This Event is raised before the session logs in. -
postLogin
PUBLIC: This Event is raised after the session logs in. -
preLogout
PUBLIC: This Event is raised before the session logs out. -
postLogout
PUBLIC: This Event is raised after the session logs out.
-