Class TrmEntityManagerFactory

java.lang.Object
oracle.tmm.jta.common.TrmEntityManagerFactory
All Implemented Interfaces:
Supplier<javax.persistence.EntityManager>

@Provider @RequestScoped public class TrmEntityManagerFactory extends Object implements Supplier<javax.persistence.EntityManager>
MicroTx EntityManager factory to create the Entity Manager to the database configured with MicroTX Library
  • Constructor Details

    • TrmEntityManagerFactory

      public TrmEntityManagerFactory()
  • Method Details

    • getEntityManager

      @Produces public javax.persistence.EntityManager getEntityManager(javax.enterprise.inject.spi.InjectionPoint ip) throws SQLException
      Get the Entity Manager to the database configured with MicroTx
      Returns:
      Entity Manager to the database
      Throws:
      SQLException
    • NonActiveXAEntityManager

      public javax.persistence.EntityManager NonActiveXAEntityManager(String dataSourceName) throws TrmConnectionException
      Throws:
      TrmConnectionException
    • getEntityManagerByName

      public javax.persistence.EntityManager getEntityManagerByName(String dataSourceName) throws SQLException
      Throws:
      SQLException
    • get

      public javax.persistence.EntityManager get()
      Specified by:
      get in interface Supplier<javax.persistence.EntityManager>