Interface OpenJPAEntityManagerSPI

    • Method Detail

      • getManagedRuntime

        ManagedRuntime getManagedRuntime()
        Return the managed runtime in use.
      • getTransactionListenerCallbackModes

        java.util.EnumSet<CallbackMode> getTransactionListenerCallbackModes()
        The CallbackMode flags for handling transaction listener exceptions.
        Since:
        1.1.0
      • setTransactionListenerCallbackMode

        void setTransactionListenerCallbackMode​(CallbackMode mode)
        The CallbackMode flag for handling transaction listener exceptions. The flags provided here will entirely replace the previous settings.
      • setTransactionListenerCallbackMode

        void setTransactionListenerCallbackMode​(java.util.EnumSet<CallbackMode> modes)
        The CallbackMode flags for handling transaction listener exceptions. The flags provided here will entirely replace the previous settings.
      • addLifecycleListener

        void addLifecycleListener​(java.lang.Object listener,
                                  java.lang.Class... classes)
        Register a listener for lifecycle-related events on the specified classes. If the classes are null, all events will be propagated to the listener.
        Specified by:
        addLifecycleListener in interface OpenJPAEntityManager
      • getLifecycleListenerCallbackModes

        java.util.EnumSet<CallbackMode> getLifecycleListenerCallbackModes()
        The CallbackMode flags for handling lifecycle listener exceptions.
        Since:
        1.1.0
      • setLifecycleListenerCallbackMode

        void setLifecycleListenerCallbackMode​(CallbackMode mode)
        The CallbackMode flag for handling lifecycle listener exceptions. The flags provided here will entirely replace the previous settings.
      • setLifecycleListenerCallbackMode

        void setLifecycleListenerCallbackMode​(java.util.EnumSet<CallbackMode> modes)
        The CallbackMode flags for handling lifecycle listener exceptions. The flags provided here will entirely replace the previous settings.
      • getQuerySQLCache

        boolean getQuerySQLCache()
        Affirms if this receiver is caching database queries.
        Since:
        2.0.0
      • setQuerySQLCache

        void setQuerySQLCache​(boolean flag)
        Sets whether this receiver will cache database queries during its lifetime. The cache configured at BrokerFactory level is not affected by setting it inactive for this receiver.
        Since:
        2.0.0