Class SessionEventAdapter

    • Constructor Detail

      • SessionEventAdapter

        public SessionEventAdapter()
    • Method Detail

      • missingDescriptor

        public void missingDescriptor​(SessionEvent event)
        PUBLIC: This event is raised on the session if a descriptor is missing for a class being persisted. This can be used to lazy register the descriptor or set of descriptors.
        Specified by:
        missingDescriptor in interface SessionEventListener
      • moreRowsDetected

        public void moreRowsDetected​(SessionEvent event)
        PUBLIC: This event is raised on the session after read object query detected more than a single row back from the database. The "result" of the event will be the call. Some applications may want to interpret this as an error or warning condition.
        Specified by:
        moreRowsDetected in interface SessionEventListener
      • noRowsModified

        public void noRowsModified​(SessionEvent event)
        PUBLIC: This event is raised on the session after update or delete SQL has been sent to the database but a row count of zero was returned.
        Specified by:
        noRowsModified in interface SessionEventListener
      • outputParametersDetected

        public void outputParametersDetected​(SessionEvent event)
        PUBLIC: This event is raised on the session after a stored procedure call has been executed that had output parameters. If the proc was used to override an insert/update/delete operation then EclipseLink will not be expecting any return value. This event mechanism allows for a listener to be registered before the proc is call to process the output values. The event "result" will contain a Record of the output values, and property "call" will be the StoredProcedureCall.
        Specified by:
        outputParametersDetected in interface SessionEventListener
      • postAcquireConnection

        public void postAcquireConnection​(SessionEvent event)
        PUBLIC: This event is raised on when using the server/client sessions. This event is raised after a connection is acquired from a connection pool.
        Specified by:
        postAcquireConnection in interface SessionEventListener
      • postAcquireUnitOfWork

        public void postAcquireUnitOfWork​(SessionEvent event)
        PUBLIC: This event is raised on the unit of work after creation/acquiring. This will be raised on nest units of work.
        Specified by:
        postAcquireUnitOfWork in interface SessionEventListener
      • postBeginTransaction

        public void postBeginTransaction​(SessionEvent event)
        PUBLIC: This event is raised after a database transaction is started. It is not raised for nested transactions.
        Specified by:
        postBeginTransaction in interface SessionEventListener
      • postCalculateUnitOfWorkChangeSet

        public void postCalculateUnitOfWorkChangeSet​(SessionEvent event)
        PUBLIC: This event is raised after the commit has begun on the UnitOfWork and after the changes are calculated. The UnitOfWorkChangeSet, at this point, will contain changeSets without the version fields updated and without IdentityField type primary keys. These will be updated after the insert, or update, of the object
        Specified by:
        postCalculateUnitOfWorkChangeSet in interface SessionEventListener
      • postCommitTransaction

        public void postCommitTransaction​(SessionEvent event)
        PUBLIC: This event is raised after a database transaction is commited. It is not raised for nested transactions.
        Specified by:
        postCommitTransaction in interface SessionEventListener
      • postConnect

        public void postConnect​(SessionEvent event)
        PUBLIC: This event is raised after the session connects to the database. In a server session this event is raised on every new connection established.
        Specified by:
        postConnect in interface SessionEventListener
      • postExecuteQuery

        public void postExecuteQuery​(SessionEvent event)
        PUBLIC: This event is raised after the execution of every query against the session. The event contains the query and query result.
        Specified by:
        postExecuteQuery in interface SessionEventListener
      • postRollbackTransaction

        public void postRollbackTransaction​(SessionEvent event)
        PUBLIC: This event is raised after a database transaction is rolledback. It is not raised for nested transactions.
        Specified by:
        postRollbackTransaction in interface SessionEventListener
      • preBeginTransaction

        public void preBeginTransaction​(SessionEvent event)
        PUBLIC: This event is raised before a database transaction is started. It is not raised for nested transactions.
        Specified by:
        preBeginTransaction in interface SessionEventListener
      • preCommitTransaction

        public void preCommitTransaction​(SessionEvent event)
        PUBLIC: This event is raised before a database transaction is committed. It is not raised for nested transactions.
        Specified by:
        preCommitTransaction in interface SessionEventListener
      • preCommitUnitOfWork

        public void preCommitUnitOfWork​(SessionEvent event)
        PUBLIC: This event is raised on the unit of work before commit. This will be raised on nest units of work.
        Specified by:
        preCommitUnitOfWork in interface SessionEventListener
      • preExecuteQuery

        public void preExecuteQuery​(SessionEvent event)
        PUBLIC: This event is raised before the execution of every query against the session. The event contains the query to be executed.
        Specified by:
        preExecuteQuery in interface SessionEventListener
      • prepareUnitOfWork

        public void prepareUnitOfWork​(SessionEvent event)
        PUBLIC: This event is raised on the unit of work after the SQL has been flushed, but the commit transaction has not been executed. It is similar to the JTS prepare phase.
        Specified by:
        prepareUnitOfWork in interface SessionEventListener
      • preReleaseConnection

        public void preReleaseConnection​(SessionEvent event)
        PUBLIC: This event is raised on when using the server/client sessions. This event is raised before a connection is released into a connection pool.
        Specified by:
        preReleaseConnection in interface SessionEventListener
      • preReleaseUnitOfWork

        public void preReleaseUnitOfWork​(SessionEvent event)
        PUBLIC: This event is raised on the unit of work before release. This will be raised on nest units of work.
        Specified by:
        preReleaseUnitOfWork in interface SessionEventListener
      • preRollbackTransaction

        public void preRollbackTransaction​(SessionEvent event)
        PUBLIC: This event is raised before a database transaction is rolledback. It is not raised for nested transactions.
        Specified by:
        preRollbackTransaction in interface SessionEventListener