Class SessionEvent

java.lang.Object
java.util.EventObject
org.eclipse.persistence.sessions.SessionEvent
All Implemented Interfaces:
Serializable

public class SessionEvent extends EventObject

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.

See Also:
  • Field Details

    • query

      protected DatabaseQuery query
      Some events may have a query associated with them (pre/postExecuteQuery).
    • call

      protected Call call
      Some events may have a call associated with them (pre/postExecuteCall).
    • result

      protected Object result
      Some events may have a result associated with them (pre/postExecuteQuery).
    • session

      protected Session session
      The session or unit of work raising the event.
    • eventCode

      protected int eventCode
      The code of the event being raised. This is an integer constant value as defined below.
    • properties

      protected Hashtable 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

      public SessionEvent(int eventCode, Session session)
      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 Hashtable getProperties()
      PUBLIC: Additional properties may be added to the event.
    • getProperty

      public Object getProperty(String name)
      PUBLIC: Additional properties may be added to the event.
    • getCall

      public Call getCall()
      PUBLIC: Some events may have a call associated with them (pre/postExecuteCall).
    • getQuery

      public DatabaseQuery getQuery()
      PUBLIC: Some events may have a query associated with them (pre/postExecuteQuery).
    • getResult

      public Object getResult()
      PUBLIC: Some events may have a result associated with them (pre/postExecuteQuery).
    • getSession

      public Session 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

      public void setProperties(Hashtable properties)
      INTERNAL: Additional properties may be added to the event.
    • setProperty

      public void setProperty(String name, Object value)
      INTERNAL: Additional properties may be added to the event.
    • setCall

      public void setCall(Call call)
      INTERNAL: Some events may have a call associated with them (pre/postExecuteCall).
    • setQuery

      public void setQuery(DatabaseQuery query)
      INTERNAL: Some events may have a query associated with them (pre/postExecuteQuery).
    • setResult

      public void setResult(Object result)
      INTERNAL: Some events may have a result associated with them (pre/postExecuteQuery).
    • setSession

      public void setSession(Session session)
      INTERNAL: The session in which the event is raised.