|
EclipseLink 2.0.0, build 'v20091127-r5931' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.sessions.SessionEventManager
public class SessionEventManager
Purpose: Used to support session events. To register for events notification an event listener must be registered with the session.
Session.getEventManager()
,
SessionEvent
,
Serialized FormField Summary | |
---|---|
protected java.util.List<SessionEventListener> |
listeners
|
protected Session |
session
|
Constructor Summary | |
---|---|
SessionEventManager()
INTERNAL: Default constructor. |
|
SessionEventManager(Session session)
PUBLIC: Create a new session event manager for a session |
Method Summary | |
---|---|
void |
addListener(SessionEventListener listener)
PUBLIC: Add the event listener to the session. |
java.lang.Object |
clone()
INTERNAL: Shallow clone the event manager. |
SessionEventManager |
clone(Session newSession)
INTERNAL: Clone the event manager for the new session. |
protected void |
endOperationProfile()
INTERNAL: End call |
java.util.List<SessionEventListener> |
getListeners()
PUBLIC: The event listeners will receive all events raised by this session. |
Session |
getSession()
INTERNAL: Get the session for this session event manager |
boolean |
hasListeners()
PUBLIC: Check if there are any event listeners. |
void |
missingDescriptor(java.lang.Class missingClass)
INTERNAL: Raised for missing descriptors for lazy registration. |
void |
moreRowsDetected(org.eclipse.persistence.internal.databaseaccess.DatabaseCall call)
INTERNAL: Raised for stored proc output parameters. |
void |
noRowsModified(ModifyQuery query,
java.lang.Object object)
INTERNAL: Raised for stored proc output parameters. |
void |
outputParametersDetected(Record outputRow,
org.eclipse.persistence.internal.databaseaccess.DatasourceCall call)
INTERNAL: Raised for stored proc output parameters. |
void |
postAcquireClientSession()
INTERNAL: Post acquire client session. |
void |
postAcquireConnection(org.eclipse.persistence.internal.databaseaccess.Accessor accessor)
INTERNAL: Raised after acquire a connection from a connection pool. |
void |
postAcquireExclusiveConnection(ClientSession clientSession,
org.eclipse.persistence.internal.databaseaccess.Accessor accessor)
INTERNAL: Raised after acquire a connection from a connection pool. |
void |
postAcquireUnitOfWork()
INTERNAL: Post acquire unit of work. |
void |
postBeginTransaction()
INTERNAL: Post begin transaction. |
void |
postCalculateUnitOfWorkChangeSet(org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet changeSet)
INTERNAL: Post calculate UnitOfWork Change Set. |
void |
postCommitTransaction()
INTERNAL: Post commit transaction. |
void |
postCommitUnitOfWork()
INTERNAL: Post commit unit of work. |
void |
postConnect(org.eclipse.persistence.internal.databaseaccess.Accessor accessor)
INTERNAL: Raised after connecting. |
void |
postDistributedMergeUnitOfWorkChangeSet(org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet changeSet)
INTERNAL: Pre execute query. |
void |
postExecuteQuery(DatabaseQuery query,
java.lang.Object result)
INTERNAL: Post execute query. |
void |
postLogin(Session session)
INTERNAL: post login to the session. |
void |
postMergeUnitOfWorkChangeSet(org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet changeSet)
INTERNAL: Pre execute query. |
void |
postReleaseClientSession()
INTERNAL: Post release client session. |
void |
postReleaseUnitOfWork()
INTERNAL: Post release unit of work. |
void |
postResumeUnitOfWork()
INTERNAL: Post resume unit of work. |
void |
postRollbackTransaction()
INTERNAL: Post rollback transaction. |
void |
preBeginTransaction()
INTERNAL: Pre begin transaction. |
void |
preCalculateUnitOfWorkChangeSet()
INTERNAL: Pre calculate UnitOfWork Change Set. |
void |
preCommitTransaction()
INTERNAL: Pre commit transaction. |
void |
preCommitUnitOfWork()
INTERNAL: Pre commit unit of work. |
void |
preDistributedMergeUnitOfWorkChangeSet(org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet changeSet)
INTERNAL: Pre merge Distributed UnitOfWorkChangeSet |
void |
preExecuteQuery(DatabaseQuery query)
INTERNAL: Pre execute query. |
void |
preLogin(Session session)
INTERNAL: Pre login to the session. |
void |
preMergeUnitOfWorkChangeSet(org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet changeSet)
INTERNAL: Pre merge UnitOfWorkChangeSet |
void |
prepareUnitOfWork()
INTERNAL: Prepare unit of work. |
void |
preReleaseClientSession()
INTERNAL: Pre release client session. |
void |
preReleaseConnection(org.eclipse.persistence.internal.databaseaccess.Accessor accessor)
INTERNAL: Raised before release a connection to a connection pool. |
void |
preReleaseExclusiveConnection(ClientSession clientSession,
org.eclipse.persistence.internal.databaseaccess.Accessor accessor)
INTERNAL: This event is fired just before a Client Session, with isolated data, releases its Exclusive Connection |
void |
preReleaseUnitOfWork()
INTERNAL: Pre release unit of work. |
void |
preRollbackTransaction()
INTERNAL: Pre rollback transaction. |
void |
removeListener(SessionEventListener listener)
PUBLIC: Remove the event listener from the session. |
protected void |
setListeners(java.util.List<SessionEventListener> listeners)
The event listeners will receive all events raised by this session. |
void |
setSession(Session session)
INTERNAL: Set the session for this session event manager |
protected void |
startOperationProfile()
INTERNAL: Start call |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<SessionEventListener> listeners
protected Session session
Constructor Detail |
---|
public SessionEventManager()
public SessionEventManager(Session session)
Method Detail |
---|
public void addListener(SessionEventListener listener)
public java.lang.Object clone()
clone
in class java.lang.Object
public SessionEventManager clone(Session newSession)
public java.util.List<SessionEventListener> getListeners()
public Session getSession()
public boolean hasListeners()
public void missingDescriptor(java.lang.Class missingClass)
public void moreRowsDetected(org.eclipse.persistence.internal.databaseaccess.DatabaseCall call)
public void noRowsModified(ModifyQuery query, java.lang.Object object)
public void outputParametersDetected(Record outputRow, org.eclipse.persistence.internal.databaseaccess.DatasourceCall call)
public void postAcquireClientSession()
public void postAcquireConnection(org.eclipse.persistence.internal.databaseaccess.Accessor accessor)
public void postAcquireExclusiveConnection(ClientSession clientSession, org.eclipse.persistence.internal.databaseaccess.Accessor accessor)
public void postAcquireUnitOfWork()
public void postBeginTransaction()
public void postCommitTransaction()
public void postCommitUnitOfWork()
public void postConnect(org.eclipse.persistence.internal.databaseaccess.Accessor accessor)
public void postExecuteQuery(DatabaseQuery query, java.lang.Object result)
public void postReleaseClientSession()
public void postReleaseUnitOfWork()
public void postResumeUnitOfWork()
public void postRollbackTransaction()
public void postDistributedMergeUnitOfWorkChangeSet(org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet changeSet)
public void postMergeUnitOfWorkChangeSet(org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet changeSet)
public void preBeginTransaction()
public void preCalculateUnitOfWorkChangeSet()
public void postCalculateUnitOfWorkChangeSet(org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet changeSet)
public void preCommitTransaction()
public void preCommitUnitOfWork()
public void preExecuteQuery(DatabaseQuery query)
public void preLogin(Session session)
public void postLogin(Session session)
public void prepareUnitOfWork()
public void preReleaseClientSession()
public void preReleaseConnection(org.eclipse.persistence.internal.databaseaccess.Accessor accessor)
public void preReleaseExclusiveConnection(ClientSession clientSession, org.eclipse.persistence.internal.databaseaccess.Accessor accessor)
public void preReleaseUnitOfWork()
public void preRollbackTransaction()
public void preDistributedMergeUnitOfWorkChangeSet(org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet changeSet)
public void preMergeUnitOfWorkChangeSet(org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet changeSet)
public void removeListener(SessionEventListener listener)
protected void setListeners(java.util.List<SessionEventListener> listeners)
public void setSession(Session session)
protected void startOperationProfile()
protected void endOperationProfile()
|
EclipseLink 2.0.0, build 'v20091127-r5931' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |