Module org.eclipse.persistence.core
Package org.eclipse.persistence.sessions
Class SessionEventManager
java.lang.Object
org.eclipse.persistence.core.sessions.CoreSessionEventManager<SessionEventListener>
org.eclipse.persistence.sessions.SessionEventManager
- All Implemented Interfaces:
Serializable,Cloneable
public class SessionEventManager
extends CoreSessionEventManager<SessionEventListener>
implements Cloneable, Serializable
Purpose: Used to support session events. To register for events notification an event listener must be registered with the session.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionINTERNAL: Default constructor.SessionEventManager(Session session) PUBLIC: Create a new session event manager for a session -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(SessionEventListener listener) PUBLIC: Add the event listener to the session.clone()INTERNAL: Shallow clone the event manager.INTERNAL: Clone the event manager for the new session.protected voidINTERNAL: End callPUBLIC: The event listeners will receive all events raised by this session.INTERNAL: Get the session for this session event managerbooleanPUBLIC: Check if there are any event listeners.voidmissingDescriptor(Class<?> missingClass) INTERNAL: Raised for missing descriptors for lazy registration.voidmoreRowsDetected(DatabaseCall call) INTERNAL: Raised for stored proc output parameters.voidnoRowsModified(ModifyQuery query, Object object) INTERNAL: Raised for stored proc output parameters.voidoutputParametersDetected(DataRecord outputRow, DatasourceCall call) INTERNAL: Raised for stored proc output parameters.voidINTERNAL: Post acquire client session.voidpostAcquireConnection(Accessor accessor) INTERNAL: Raised after acquire a connection from a connection pool.voidpostAcquireExclusiveConnection(ClientSession clientSession, Accessor accessor) INTERNAL: Raised after acquire a connection from a connection pool.voidINTERNAL: Post acquire unit of work.voidINTERNAL: Post begin transaction.voidINTERNAL: Post calculate UnitOfWork Change Set.voidINTERNAL: Post commit transaction.voidINTERNAL: Post commit unit of work.voidpostConnect(Accessor accessor) INTERNAL: Raised after connecting.voidINTERNAL: Pre execute query.voidpostExecuteCall(Call call, Object result) INTERNAL: Post execute call.voidpostExecuteQuery(DatabaseQuery query, Object result) INTERNAL: Post execute query.voidINTERNAL: Post flush unit of work.voidINTERNAL: post login to the session.voidpostLogout(Session session) INTERNAL: post logout to the session.voidpostMergeUnitOfWorkChangeSet(UnitOfWorkChangeSet changeSet) INTERNAL: Pre execute query.voidINTERNAL: Post release client session.voidINTERNAL: Post release unit of work.voidINTERNAL: Post resume unit of work.voidINTERNAL: Post rollback transaction.voidINTERNAL: Pre begin transaction.voidINTERNAL: Pre calculate UnitOfWork Change Set.voidINTERNAL: Pre commit transaction.voidINTERNAL: Pre commit unit of work.voidINTERNAL: Pre merge Distributed UnitOfWorkChangeSetvoidpreExecuteCall(Call call) INTERNAL: Pre execute call.voidpreExecuteQuery(DatabaseQuery query) INTERNAL: Pre execute query.voidINTERNAL: Pre flush unit of work.voidINTERNAL: Pre login to the session.voidINTERNAL: Pre logout to the session.voidpreMergeUnitOfWorkChangeSet(UnitOfWorkChangeSet changeSet) INTERNAL: Pre merge UnitOfWorkChangeSetvoidINTERNAL: Prepare unit of work.voidINTERNAL: Pre release client session.voidpreReleaseConnection(Accessor accessor) INTERNAL: Raised before release a connection to a connection pool.voidpreReleaseExclusiveConnection(ClientSession clientSession, Accessor accessor) INTERNAL: This event is fired just before a Client Session, with isolated data, releases its Exclusive ConnectionvoidINTERNAL: Pre release unit of work.voidINTERNAL: Pre rollback transaction.voidremoveListener(SessionEventListener listener) PUBLIC: Remove the event listener from the session.protected voidsetListeners(List<SessionEventListener> listeners) The event listeners will receive all events raised by this session.voidsetSession(Session session) INTERNAL: Set the session for this session event managerprotected voidINTERNAL: Start call
-
Field Details
-
listeners
-
session
-
-
Constructor Details
-
SessionEventManager
public SessionEventManager()INTERNAL: Default constructor. -
SessionEventManager
PUBLIC: Create a new session event manager for a session
-
-
Method Details
-
addListener
PUBLIC: Add the event listener to the session. The listener will receive all events raised by this session. Also unit of works acquire from this session will inherit the listeners. If session is a broker then its members add the listener, too.- Specified by:
addListenerin classCoreSessionEventManager<SessionEventListener>
-
clone
INTERNAL: Shallow clone the event manager. -
clone
INTERNAL: Clone the event manager for the new session. -
getListeners
PUBLIC: The event listeners will receive all events raised by this session. Also unit of works acquire from this session will inherit the listeners. -
getSession
INTERNAL: Get the session for this session event manager -
hasListeners
public boolean hasListeners()PUBLIC: Check if there are any event listeners. -
missingDescriptor
INTERNAL: Raised for missing descriptors for lazy registration. -
moreRowsDetected
INTERNAL: Raised for stored proc output parameters. -
noRowsModified
INTERNAL: Raised for stored proc output parameters. -
outputParametersDetected
INTERNAL: Raised for stored proc output parameters. -
postAcquireClientSession
public void postAcquireClientSession()INTERNAL: Post acquire client session. -
postAcquireConnection
INTERNAL: Raised after acquire a connection from a connection pool. -
postAcquireExclusiveConnection
INTERNAL: Raised after acquire a connection from a connection pool. -
postAcquireUnitOfWork
public void postAcquireUnitOfWork()INTERNAL: Post acquire unit of work. -
postBeginTransaction
public void postBeginTransaction()INTERNAL: Post begin transaction. -
postCommitTransaction
public void postCommitTransaction()INTERNAL: Post commit transaction. -
postCommitUnitOfWork
public void postCommitUnitOfWork()INTERNAL: Post commit unit of work. -
postFlushUnitOfWork
public void postFlushUnitOfWork()INTERNAL: Post flush unit of work. -
postConnect
INTERNAL: Raised after connecting. -
postExecuteCall
INTERNAL: Post execute call. -
postExecuteQuery
INTERNAL: Post execute query. -
postReleaseClientSession
public void postReleaseClientSession()INTERNAL: Post release client session. -
postReleaseUnitOfWork
public void postReleaseUnitOfWork()INTERNAL: Post release unit of work. -
postResumeUnitOfWork
public void postResumeUnitOfWork()INTERNAL: Post resume unit of work. -
postRollbackTransaction
public void postRollbackTransaction()INTERNAL: Post rollback transaction. -
postDistributedMergeUnitOfWorkChangeSet
INTERNAL: Pre execute query. -
postMergeUnitOfWorkChangeSet
INTERNAL: Pre execute query. -
preBeginTransaction
public void preBeginTransaction()INTERNAL: Pre begin transaction. -
preCalculateUnitOfWorkChangeSet
public void preCalculateUnitOfWorkChangeSet()INTERNAL: Pre calculate UnitOfWork Change Set. -
postCalculateUnitOfWorkChangeSet
INTERNAL: Post calculate UnitOfWork Change Set. -
preCommitTransaction
public void preCommitTransaction()INTERNAL: Pre commit transaction. -
preCommitUnitOfWork
public void preCommitUnitOfWork()INTERNAL: Pre commit unit of work. -
preFlushUnitOfWork
public void preFlushUnitOfWork()INTERNAL: Pre flush unit of work. -
preExecuteCall
INTERNAL: Pre execute call. -
preExecuteQuery
INTERNAL: Pre execute query. -
preLogin
INTERNAL: Pre login to the session. -
postLogin
INTERNAL: post login to the session. -
preLogout
INTERNAL: Pre logout to the session. -
postLogout
INTERNAL: post logout to the session. -
prepareUnitOfWork
public void prepareUnitOfWork()INTERNAL: Prepare unit of work. -
preReleaseClientSession
public void preReleaseClientSession()INTERNAL: Pre release client session. -
preReleaseConnection
INTERNAL: Raised before release a connection to a connection pool. -
preReleaseExclusiveConnection
INTERNAL: This event is fired just before a Client Session, with isolated data, releases its Exclusive Connection -
preReleaseUnitOfWork
public void preReleaseUnitOfWork()INTERNAL: Pre release unit of work. -
preRollbackTransaction
public void preRollbackTransaction()INTERNAL: Pre rollback transaction. -
preDistributedMergeUnitOfWorkChangeSet
INTERNAL: Pre merge Distributed UnitOfWorkChangeSet -
preMergeUnitOfWorkChangeSet
INTERNAL: Pre merge UnitOfWorkChangeSet -
removeListener
PUBLIC: Remove the event listener from the session. If session is a broker and the listener was in its list, then its members remove the listener, too. -
setListeners
The event listeners will receive all events raised by this session. Also unit of works acquire from this session will inherit the listeners. -
setSession
INTERNAL: Set the session for this session event manager -
startOperationProfile
protected void startOperationProfile()INTERNAL: Start call -
endOperationProfile
protected void endOperationProfile()INTERNAL: End call
-