Package org.eclipse.persistence.sessions
Class SessionEvent
java.lang.Object
java.util.EventObject
org.eclipse.persistence.sessions.SessionEvent
- All Implemented Interfaces:
Serializable
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.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Call
Some events may have a call associated with them (pre/postExecuteCall).protected int
The code of the event being raised.static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
protected Hashtable
Additional properties may be added.protected DatabaseQuery
Some events may have a query associated with them (pre/postExecuteQuery).protected Object
Some events may have a result associated with them (pre/postExecuteQuery).protected Session
The session or unit of work raising the event.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCall()
PUBLIC: Some events may have a call associated with them (pre/postExecuteCall).int
PUBLIC: The code of the session event being raised.PUBLIC: Additional properties may be added to the event.getProperty
(String name) PUBLIC: Additional properties may be added to the event.getQuery()
PUBLIC: Some events may have a query associated with them (pre/postExecuteQuery).PUBLIC: Some events may have a result associated with them (pre/postExecuteQuery).PUBLIC: The session in which the event is raised.void
INTERNAL: Some events may have a call associated with them (pre/postExecuteCall).void
setEventCode
(int eventCode) INTERNAL: The code of the session event being raised.void
setProperties
(Hashtable properties) INTERNAL: Additional properties may be added to the event.void
setProperty
(String name, 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
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
-
Field Details
-
query
Some events may have a query associated with them (pre/postExecuteQuery). -
call
Some events may have a call associated with them (pre/postExecuteCall). -
result
Some events may have a result associated with them (pre/postExecuteQuery). -
session
The session or unit of work raising the event. -
eventCode
protected int eventCodeThe code of the event being raised. This is an integer constant value as defined below. -
properties
Additional properties may be added. -
PreExecuteQuery
public static final int PreExecuteQuery- See Also:
-
PostExecuteQuery
public static final int PostExecuteQuery- See Also:
-
PreBeginTransaction
public static final int PreBeginTransaction- See Also:
-
PostBeginTransaction
public static final int PostBeginTransaction- See Also:
-
PreCommitTransaction
public static final int PreCommitTransaction- See Also:
-
PostCommitTransaction
public static final int PostCommitTransaction- See Also:
-
PreRollbackTransaction
public static final int PreRollbackTransaction- See Also:
-
PostRollbackTransaction
public static final int PostRollbackTransaction- See Also:
-
PreExecuteCall
public static final int PreExecuteCall- See Also:
-
PostExecuteCall
public static final int PostExecuteCall- See Also:
-
PostAcquireUnitOfWork
public static final int PostAcquireUnitOfWork- See Also:
-
PreCommitUnitOfWork
public static final int PreCommitUnitOfWork- See Also:
-
PostCommitUnitOfWork
public static final int PostCommitUnitOfWork- See Also:
-
PreReleaseUnitOfWork
public static final int PreReleaseUnitOfWork- See Also:
-
PostReleaseUnitOfWork
public static final int PostReleaseUnitOfWork- See Also:
-
PrepareUnitOfWork
public static final int PrepareUnitOfWork- See Also:
-
PostResumeUnitOfWork
public static final int PostResumeUnitOfWork- See Also:
-
PostAcquireClientSession
public static final int PostAcquireClientSession- See Also:
-
PreReleaseClientSession
public static final int PreReleaseClientSession- See Also:
-
PostReleaseClientSession
public static final int PostReleaseClientSession- See Also:
-
PostAcquireConnection
public static final int PostAcquireConnection- See Also:
-
PostAcquireExclusiveConnection
public static final int PostAcquireExclusiveConnection- See Also:
-
PreReleaseConnection
public static final int PreReleaseConnection- See Also:
-
PreReleaseExclusiveConnection
public static final int PreReleaseExclusiveConnection- See Also:
-
OutputParametersDetected
public static final int OutputParametersDetected- See Also:
-
MoreRowsDetected
public static final int MoreRowsDetected- See Also:
-
PostConnect
public static final int PostConnect- See Also:
-
PreLogin
public static final int PreLogin- See Also:
-
PostLogin
public static final int PostLogin- See Also:
-
PreLogout
public static final int PreLogout- See Also:
-
PostLogout
public static final int PostLogout- See Also:
-
PreMergeUnitOfWorkChangeSet
public static final int PreMergeUnitOfWorkChangeSet- See Also:
-
PreDistributedMergeUnitOfWorkChangeSet
public static final int PreDistributedMergeUnitOfWorkChangeSet- See Also:
-
PostMergeUnitOfWorkChangeSet
public static final int PostMergeUnitOfWorkChangeSet- See Also:
-
PostDistributedMergeUnitOfWorkChangeSet
public static final int PostDistributedMergeUnitOfWorkChangeSet- See Also:
-
PreCalculateUnitOfWorkChangeSet
public static final int PreCalculateUnitOfWorkChangeSet- See Also:
-
PostCalculateUnitOfWorkChangeSet
public static final int PostCalculateUnitOfWorkChangeSet- See Also:
-
MissingDescriptor
public static final int MissingDescriptor- See Also:
-
NoRowsModified
public static final int NoRowsModified- See Also:
-
-
Constructor Details
-
SessionEvent
INTERNAL: Create the event.
-
-
Method Details
-
getEventCode
public int getEventCode()PUBLIC: The code of the session event being raised. This is an integer constant value from this class. -
getProperties
PUBLIC: Additional properties may be added to the event. -
getProperty
PUBLIC: Additional properties may be added to the event. -
getCall
PUBLIC: Some events may have a call associated with them (pre/postExecuteCall). -
getQuery
PUBLIC: Some events may have a query associated with them (pre/postExecuteQuery). -
getResult
PUBLIC: Some events may have a result associated with them (pre/postExecuteQuery). -
getSession
PUBLIC: The session in which the event is raised. -
setEventCode
public void setEventCode(int eventCode) INTERNAL: The code of the session event being raised. This is an integer constant value from this class. -
setProperties
INTERNAL: Additional properties may be added to the event. -
setProperty
INTERNAL: Additional properties may be added to the event. -
setCall
INTERNAL: Some events may have a call associated with them (pre/postExecuteCall). -
setQuery
INTERNAL: Some events may have a query associated with them (pre/postExecuteQuery). -
setResult
INTERNAL: Some events may have a result associated with them (pre/postExecuteQuery). -
setSession
INTERNAL: The session in which the event is raised.
-