Interface OpenJPAEntityManagerFactorySPI

    • Method Detail

      • 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. The listener will be passed on to all new entity managers. See the org.apache.openjpa.event package for listener types.
        Specified by:
        addLifecycleListener in interface OpenJPAEntityManagerFactory
        Since:
        0.3.3
      • addTransactionListener

        void addTransactionListener​(java.lang.Object listener)
        Register a listener for transaction-related events on the specified classes. The listener will be passed on to all new entity managers. See the org.apache.openjpa.event package for listener types.
        Specified by:
        addTransactionListener in interface OpenJPAEntityManagerFactory
        Since:
        1.0.0
      • createEntityManager

        OpenJPAEntityManagerSPI createEntityManager​(java.util.Map props)
        Description copied from interface: OpenJPAEntityManagerFactory
        Return an entity manager with the provided additional configuration settings. OpenJPA recognizes the following configuration settings in this method:
        • openjpa.ConnectionUsername
        • openjpa.ConnectionPassword
        • openjpa.ConnectionRetainMode
        • openjpa.TransactionMode
        Specified by:
        createEntityManager in interface jakarta.persistence.EntityManagerFactory
        Specified by:
        createEntityManager in interface OpenJPAEntityManagerFactory