Module eclipselink

Class SessionEvent

    • Field Detail

      • 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.
      • PostRollbackTransaction

        public static final int PostRollbackTransaction
        See Also:
        Constant Field Values
      • PostAcquireClientSession

        public static final int PostAcquireClientSession
        See Also:
        Constant Field Values
      • PreReleaseClientSession

        public static final int PreReleaseClientSession
        See Also:
        Constant Field Values
      • PostReleaseClientSession

        public static final int PostReleaseClientSession
        See Also:
        Constant Field Values
      • PostAcquireExclusiveConnection

        public static final int PostAcquireExclusiveConnection
        See Also:
        Constant Field Values
      • PreReleaseExclusiveConnection

        public static final int PreReleaseExclusiveConnection
        See Also:
        Constant Field Values
      • OutputParametersDetected

        public static final int OutputParametersDetected
        See Also:
        Constant Field Values
      • PreMergeUnitOfWorkChangeSet

        public static final int PreMergeUnitOfWorkChangeSet
        See Also:
        Constant Field Values
      • PreDistributedMergeUnitOfWorkChangeSet

        public static final int PreDistributedMergeUnitOfWorkChangeSet
        See Also:
        Constant Field Values
      • PostMergeUnitOfWorkChangeSet

        public static final int PostMergeUnitOfWorkChangeSet
        See Also:
        Constant Field Values
      • PostDistributedMergeUnitOfWorkChangeSet

        public static final int PostDistributedMergeUnitOfWorkChangeSet
        See Also:
        Constant Field Values
      • PreCalculateUnitOfWorkChangeSet

        public static final int PreCalculateUnitOfWorkChangeSet
        See Also:
        Constant Field Values
      • PostCalculateUnitOfWorkChangeSet

        public static final int PostCalculateUnitOfWorkChangeSet
        See Also:
        Constant Field Values
    • Constructor Detail

      • SessionEvent

        public SessionEvent​(int eventCode,
                            Session session)
        INTERNAL: Create the event.
    • Method Detail

      • 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.