Interface ExternalTransactionController

    • Method Detail

      • beginTransaction

        void beginTransaction​(AbstractSession session)
        INTERNAL: Begin a transaction externally. This allows for EclipseLink to force a JTS transaction.
      • commitTransaction

        void commitTransaction​(AbstractSession session)
        INTERNAL: Commit a transaction externally. This allows for EclipseLink to force a JTS transaction.
      • getActiveUnitOfWork

        UnitOfWorkImpl getActiveUnitOfWork()
        INTERNAL: Return the active unit of work for the current active external transaction.
      • getSession

        AbstractSession getSession()
        INTERNAL: Return the manager's session.
      • rollbackTransaction

        void rollbackTransaction​(AbstractSession session)
        INTERNAL: Rollback a transaction externally. This allows for EclipseLink to force a JTS transaction.
      • markTransactionForRollback

        void markTransactionForRollback()
        INTERNAL: Marks the external transaction for rollback only.
      • setSession

        void setSession​(AbstractSession session)
        INTERNAL: Set the manager's session.
      • initializeSequencingListeners

        void initializeSequencingListeners()
        INTERNAL: Initializes sequencing listeners. Always clears sequencing listeners first. There are two methods calling this method: 1. setSession method - this could lead to initialization of sequencing listeners only if sequencing already connected (that would happen if setSession is called after session.login, which is normally not the case). 2. in the very end of connecting sequencing, after it's determined whether sequencing callbacks (and therefore listeners) will be required.
      • getActiveSequencingCallback

        SequencingCallback getActiveSequencingCallback​(DatabaseSession dbSession,
                                                       SequencingCallbackFactory sequencingCallbackFactory)
        INTERNAL: Returns sequencingCallback for the current active external transaction. DatabaseSession is passed for the sake of SessionBroker case. This method requires active external transaction.
      • clearSequencingListeners

        void clearSequencingListeners()
        INTERNAL: Clears sequencing listeners. Called by initializeSequencingListeners and by sequencing on disconnect.
      • getExceptionHandler

        ExceptionHandler getExceptionHandler()
        Return the exception handler used to handle or wrap exceptions thrown in before/after completion.
      • setExceptionHandler

        void setExceptionHandler​(ExceptionHandler exceptionHandler)
        Set an exception handler to handle or wrap exceptions thrown in before/after completion.