|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject org.eclipse.persistence.sessions.SessionEvent
public class SessionEvent
Purpose: Encapsulate the information provided with session events. This is used as the argument to any event raised by the session. To register for events notification an event listener must be registered with the session.
SessionEventManager.addListener(SessionEventListener)
,
Session.getEventManager()
,
SessionEventListener
,
Serialized FormFields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
SessionEvent(int eventCode,
Session session)
INTERNAL: Create the event. |
Method Summary | |
---|---|
int |
getEventCode()
PUBLIC: The code of the session event being raised. |
java.util.Hashtable |
getProperties()
PUBLIC: Additional properties may be added to the event. |
java.lang.Object |
getProperty(java.lang.String name)
PUBLIC: Additional properties may be added to the event. |
DatabaseQuery |
getQuery()
PUBLIC: Some events may have a query associated with them (pre/postExecuteQuery). |
java.lang.Object |
getResult()
PUBLIC: Some events may have a result associated with them (pre/postExecuteQuery). |
Session |
getSession()
PUBLIC: The session in which the event is raised. |
void |
setEventCode(int eventCode)
INTERNAL: The code of the session event being raised. |
void |
setProperties(java.util.Hashtable properties)
INTERNAL: Additional properties may be added to the event. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
INTERNAL: Additional properties may be added to the event. |
void |
setQuery(DatabaseQuery query)
INTERNAL: Some events may have a query associated with them (pre/postExecuteQuery). |
void |
setResult(java.lang.Object result)
INTERNAL: Some events may have a result associated with them (pre/postExecuteQuery). |
void |
setSession(Session session)
INTERNAL: The session in which the event is raised. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected DatabaseQuery query
protected java.lang.Object result
protected Session session
protected int eventCode
protected java.util.Hashtable properties
public static final int PreExecuteQuery
public static final int PostExecuteQuery
public static final int PreBeginTransaction
public static final int PostBeginTransaction
public static final int PreCommitTransaction
public static final int PostCommitTransaction
public static final int PreRollbackTransaction
public static final int PostRollbackTransaction
public static final int PostAcquireUnitOfWork
public static final int PreCommitUnitOfWork
public static final int PostCommitUnitOfWork
public static final int PreReleaseUnitOfWork
public static final int PostReleaseUnitOfWork
public static final int PrepareUnitOfWork
public static final int PostResumeUnitOfWork
public static final int PostAcquireClientSession
public static final int PreReleaseClientSession
public static final int PostReleaseClientSession
public static final int PostAcquireConnection
public static final int PostAcquireExclusiveConnection
public static final int PreReleaseConnection
public static final int PreReleaseExclusiveConnection
public static final int OutputParametersDetected
public static final int MoreRowsDetected
public static final int PostConnect
public static final int PreLogin
public static final int PostLogin
public static final int PreMergeUnitOfWorkChangeSet
public static final int PreDistributedMergeUnitOfWorkChangeSet
public static final int PostMergeUnitOfWorkChangeSet
public static final int PostDistributedMergeUnitOfWorkChangeSet
public static final int PreCalculateUnitOfWorkChangeSet
public static final int PostCalculateUnitOfWorkChangeSet
public static final int MissingDescriptor
public static final int NoRowsModified
Constructor Detail |
---|
public SessionEvent(int eventCode, Session session)
Method Detail |
---|
public int getEventCode()
public java.util.Hashtable getProperties()
public java.lang.Object getProperty(java.lang.String name)
public DatabaseQuery getQuery()
public java.lang.Object getResult()
public Session getSession()
public void setEventCode(int eventCode)
public void setProperties(java.util.Hashtable properties)
public void setProperty(java.lang.String name, java.lang.Object value)
public void setQuery(DatabaseQuery query)
public void setResult(java.lang.Object result)
public void setSession(Session session)
|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |