Top Description Fields Constructors Methods
org.eclipse.persistence.sessions

public Class SessionEventManager

extends CoreSessionEventManager<SessionEventListener>
implements Cloneable, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, java.lang.Cloneable
Imports
java.util.*, java.io.*, org.eclipse.persistence.queries.*, org.eclipse.persistence.core.sessions.CoreSessionEventManager, org.eclipse.persistence.internal.databaseaccess.*, org.eclipse.persistence.internal.sessions.*, org.eclipse.persistence.sessions.broker.SessionBroker, org.eclipse.persistence.sessions.server.ClientSession

Purpose: Used to support session events. To register for events notification an event listener must be registered with the session.

See Also
Session#getEventManager(), SessionEvent

Field Summary

Modifier and TypeField and Description
protected List<SessionEventListener>
protected Session

Constructor Summary

AccessConstructor and Description
public
SessionEventManager()

INTERNAL: Default constructor.

public
SessionEventManager(Session session)

PUBLIC: Create a new session event manager for a session

Method Summary

Modifier and TypeMethod and Description
public void
addListener(SessionEventListener listener)

Implements abstract org.eclipse.persistence.core.sessions.CoreSessionEventManager.addListener.

PUBLIC: Add the event listener to the session.
public Object
clone()

Overrides java.lang.Object.clone.

INTERNAL: Shallow clone the event manager.
public SessionEventManager
clone(Session newSession)

INTERNAL: Clone the event manager for the new session.

protected void
endOperationProfile()

INTERNAL: End call

public List<SessionEventListener>
getListeners()

PUBLIC: The event listeners will receive all events raised by this session.

public Session
getSession()

INTERNAL: Get the session for this session event manager

public boolean
hasListeners()

PUBLIC: Check if there are any event listeners.

public void
missingDescriptor(Class<?> missingClass)

INTERNAL: Raised for missing descriptors for lazy registration.

public void
moreRowsDetected(DatabaseCall call)

INTERNAL: Raised for stored proc output parameters.

public void
noRowsModified(ModifyQuery query, Object object)

INTERNAL: Raised for stored proc output parameters.

public void
outputParametersDetected(DataRecord outputRow, DatasourceCall call)

INTERNAL: Raised for stored proc output parameters.

public void
postAcquireClientSession()

INTERNAL: Post acquire client session.

public void
postAcquireConnection(Accessor accessor)

INTERNAL: Raised after acquire a connection from a connection pool.

public void
postAcquireExclusiveConnection(ClientSession clientSession, Accessor accessor)

INTERNAL: Raised after acquire a connection from a connection pool.

public void
postAcquireUnitOfWork()

INTERNAL: Post acquire unit of work.

public void
postBeginTransaction()

INTERNAL: Post begin transaction.

public void
postCalculateUnitOfWorkChangeSet(UnitOfWorkChangeSet changeSet)

INTERNAL: Post calculate UnitOfWork Change Set.

public void
postCommitTransaction()

INTERNAL: Post commit transaction.

public void
postCommitUnitOfWork()

INTERNAL: Post commit unit of work.

public void
postConnect(Accessor accessor)

INTERNAL: Raised after connecting.

public void
postDistributedMergeUnitOfWorkChangeSet(UnitOfWorkChangeSet changeSet)

INTERNAL: Pre execute query.

public void
postExecuteCall(Call call, Object result)

INTERNAL: Post execute call.

public void
postExecuteQuery(DatabaseQuery query, Object result)

INTERNAL: Post execute query.

public void
postLogin(Session session)

INTERNAL: post login to the session.

public void
postLogout(Session session)

INTERNAL: post logout to the session.

public void
postMergeUnitOfWorkChangeSet(UnitOfWorkChangeSet changeSet)

INTERNAL: Pre execute query.

public void
postReleaseClientSession()

INTERNAL: Post release client session.

public void
postReleaseUnitOfWork()

INTERNAL: Post release unit of work.

public void
postResumeUnitOfWork()

INTERNAL: Post resume unit of work.

public void
postRollbackTransaction()

INTERNAL: Post rollback transaction.

public void
preBeginTransaction()

INTERNAL: Pre begin transaction.

public void
preCalculateUnitOfWorkChangeSet()

INTERNAL: Pre calculate UnitOfWork Change Set.

public void
preCommitTransaction()

INTERNAL: Pre commit transaction.

public void
preCommitUnitOfWork()

INTERNAL: Pre commit unit of work.

public void
preDistributedMergeUnitOfWorkChangeSet(UnitOfWorkChangeSet changeSet)

INTERNAL: Pre merge Distributed UnitOfWorkChangeSet

public void
preExecuteCall(Call call)

INTERNAL: Pre execute call.

public void
preExecuteQuery(DatabaseQuery query)

INTERNAL: Pre execute query.

public void
preLogin(Session session)

INTERNAL: Pre login to the session.

public void
preLogout(Session session)

INTERNAL: Pre logout to the session.

public void
preMergeUnitOfWorkChangeSet(UnitOfWorkChangeSet changeSet)

INTERNAL: Pre merge UnitOfWorkChangeSet

public void
prepareUnitOfWork()

INTERNAL: Prepare unit of work.

public void
preReleaseClientSession()

INTERNAL: Pre release client session.

public void
preReleaseConnection(Accessor accessor)

INTERNAL: Raised before release a connection to a connection pool.

public void
preReleaseExclusiveConnection(ClientSession clientSession, Accessor accessor)

INTERNAL: This event is fired just before a Client Session, with isolated data, releases its Exclusive Connection

public void
preReleaseUnitOfWork()

INTERNAL: Pre release unit of work.

public void
preRollbackTransaction()

INTERNAL: Pre rollback transaction.

public void
removeListener(SessionEventListener listener)

PUBLIC: Remove the event listener from the session.

protected void
setListeners(List<SessionEventListener> listeners)

The event listeners will receive all events raised by this session.

public void
setSession(Session session)

INTERNAL: Set the session for this session event manager

protected void
startOperationProfile()

INTERNAL: Start call

Field Detail

listenersback to summary
protected List<SessionEventListener> listeners
sessionback to summary
protected Session session

Constructor Detail

SessionEventManagerback to summary
public SessionEventManager()

INTERNAL: Default constructor.

SessionEventManagerback to summary
public SessionEventManager(Session session)

PUBLIC: Create a new session event manager for a session

Method Detail

addListenerback to summary
public void addListener(SessionEventListener listener)

Implements abstract org.eclipse.persistence.core.sessions.CoreSessionEventManager.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.

Annotations
@Override
cloneback to summary
public Object clone()

Overrides java.lang.Object.clone.

INTERNAL: Shallow clone the event manager.

Returns:Object

Doc from java.lang.Object.clone.

a clone of this instance.

Annotations
@Override
cloneback to summary
public SessionEventManager clone(Session newSession)

INTERNAL: Clone the event manager for the new session.

endOperationProfileback to summary
protected void endOperationProfile()

INTERNAL: End call

getListenersback to summary
public List<SessionEventListener> 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.

getSessionback to summary
public Session getSession()

INTERNAL: Get the session for this session event manager

hasListenersback to summary
public boolean hasListeners()

PUBLIC: Check if there are any event listeners.

missingDescriptorback to summary
public void missingDescriptor(Class<?> missingClass)

INTERNAL: Raised for missing descriptors for lazy registration.

moreRowsDetectedback to summary
public void moreRowsDetected(DatabaseCall call)

INTERNAL: Raised for stored proc output parameters.

noRowsModifiedback to summary
public void noRowsModified(ModifyQuery query, Object object)

INTERNAL: Raised for stored proc output parameters.

outputParametersDetectedback to summary
public void outputParametersDetected(DataRecord outputRow, DatasourceCall call)

INTERNAL: Raised for stored proc output parameters.

postAcquireClientSessionback to summary
public void postAcquireClientSession()

INTERNAL: Post acquire client session.

postAcquireConnectionback to summary
public void postAcquireConnection(Accessor accessor)

INTERNAL: Raised after acquire a connection from a connection pool.

postAcquireExclusiveConnectionback to summary
public void postAcquireExclusiveConnection(ClientSession clientSession, Accessor accessor)

INTERNAL: Raised after acquire a connection from a connection pool.

postAcquireUnitOfWorkback to summary
public void postAcquireUnitOfWork()

INTERNAL: Post acquire unit of work.

postBeginTransactionback to summary
public void postBeginTransaction()

INTERNAL: Post begin transaction.

postCalculateUnitOfWorkChangeSetback to summary
public void postCalculateUnitOfWorkChangeSet(UnitOfWorkChangeSet changeSet)

INTERNAL: Post calculate UnitOfWork Change Set.

postCommitTransactionback to summary
public void postCommitTransaction()

INTERNAL: Post commit transaction.

postCommitUnitOfWorkback to summary
public void postCommitUnitOfWork()

INTERNAL: Post commit unit of work.

postConnectback to summary
public void postConnect(Accessor accessor)

INTERNAL: Raised after connecting.

postDistributedMergeUnitOfWorkChangeSetback to summary
public void postDistributedMergeUnitOfWorkChangeSet(UnitOfWorkChangeSet changeSet)

INTERNAL: Pre execute query.

postExecuteCallback to summary
public void postExecuteCall(Call call, Object result)

INTERNAL: Post execute call.

postExecuteQueryback to summary
public void postExecuteQuery(DatabaseQuery query, Object result)

INTERNAL: Post execute query.

postLoginback to summary
public void postLogin(Session session)

INTERNAL: post login to the session.

postLogoutback to summary
public void postLogout(Session session)

INTERNAL: post logout to the session.

postMergeUnitOfWorkChangeSetback to summary
public void postMergeUnitOfWorkChangeSet(UnitOfWorkChangeSet changeSet)

INTERNAL: Pre execute query.

postReleaseClientSessionback to summary
public void postReleaseClientSession()

INTERNAL: Post release client session.

postReleaseUnitOfWorkback to summary
public void postReleaseUnitOfWork()

INTERNAL: Post release unit of work.

postResumeUnitOfWorkback to summary
public void postResumeUnitOfWork()

INTERNAL: Post resume unit of work.

postRollbackTransactionback to summary
public void postRollbackTransaction()

INTERNAL: Post rollback transaction.

preBeginTransactionback to summary
public void preBeginTransaction()

INTERNAL: Pre begin transaction.

preCalculateUnitOfWorkChangeSetback to summary
public void preCalculateUnitOfWorkChangeSet()

INTERNAL: Pre calculate UnitOfWork Change Set.

preCommitTransactionback to summary
public void preCommitTransaction()

INTERNAL: Pre commit transaction.

preCommitUnitOfWorkback to summary
public void preCommitUnitOfWork()

INTERNAL: Pre commit unit of work.

preDistributedMergeUnitOfWorkChangeSetback to summary
public void preDistributedMergeUnitOfWorkChangeSet(UnitOfWorkChangeSet changeSet)

INTERNAL: Pre merge Distributed UnitOfWorkChangeSet

preExecuteCallback to summary
public void preExecuteCall(Call call)

INTERNAL: Pre execute call.

preExecuteQueryback to summary
public void preExecuteQuery(DatabaseQuery query)

INTERNAL: Pre execute query.

preLoginback to summary
public void preLogin(Session session)

INTERNAL: Pre login to the session.

preLogoutback to summary
public void preLogout(Session session)

INTERNAL: Pre logout to the session.

preMergeUnitOfWorkChangeSetback to summary
public void preMergeUnitOfWorkChangeSet(UnitOfWorkChangeSet changeSet)

INTERNAL: Pre merge UnitOfWorkChangeSet

prepareUnitOfWorkback to summary
public void prepareUnitOfWork()

INTERNAL: Prepare unit of work.

preReleaseClientSessionback to summary
public void preReleaseClientSession()

INTERNAL: Pre release client session.

preReleaseConnectionback to summary
public void preReleaseConnection(Accessor accessor)

INTERNAL: Raised before release a connection to a connection pool.

preReleaseExclusiveConnectionback to summary
public void preReleaseExclusiveConnection(ClientSession clientSession, Accessor accessor)

INTERNAL: This event is fired just before a Client Session, with isolated data, releases its Exclusive Connection

preReleaseUnitOfWorkback to summary
public void preReleaseUnitOfWork()

INTERNAL: Pre release unit of work.

preRollbackTransactionback to summary
public void preRollbackTransaction()

INTERNAL: Pre rollback transaction.

removeListenerback to summary
public void removeListener(SessionEventListener listener)

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.

setListenersback to summary
protected void setListeners(List<SessionEventListener> listeners)

The event listeners will receive all events raised by this session. Also unit of works acquire from this session will inherit the listeners.

setSessionback to summary
public void setSession(Session session)

INTERNAL: Set the session for this session event manager

startOperationProfileback to summary
protected void startOperationProfile()

INTERNAL: Start call