Interface OpenJPAEntityManagerFactory

All Superinterfaces:
jakarta.persistence.EntityManagerFactory, Serializable
All Known Subinterfaces:
OpenJPAEntityManagerFactorySPI
All Known Implementing Classes:
EntityManagerFactoryImpl

public interface OpenJPAEntityManagerFactory extends jakarta.persistence.EntityManagerFactory, Serializable
Interface implemented by OpenJPA entity manager factories.
Since:
0.4.0
Author:
Abe White
  • Field Details

  • Method Details

    • getProperties

      Map<String,Object> getProperties()
      Return properties describing this runtime.
      Specified by:
      getProperties in interface jakarta.persistence.EntityManagerFactory
    • putUserObject

      Object putUserObject(Object key, Object val)
      Put the specified key-value pair into the map of user objects.
    • getUserObject

      Object getUserObject(Object key)
      Get the value for the specified key from the map of user objects.
    • getStoreCache

      StoreCache getStoreCache()
      Access the level 2 store cache. This cache acts as a proxy to all named caches.
    • getStoreCache

      StoreCache getStoreCache(String name)
      Access a named level 2 store cache.
    • getQueryResultCache

      QueryResultCache getQueryResultCache()
      Access query result cache.
    • createEntityManager

      OpenJPAEntityManager createEntityManager()
      Specified by:
      createEntityManager in interface jakarta.persistence.EntityManagerFactory
    • createEntityManager

      OpenJPAEntityManager createEntityManager(Map props)
      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
    • getConfiguration

      @Deprecated OpenJPAConfiguration getConfiguration()
      Deprecated.
      cast to OpenJPAEntityManagerFactorySPI instead. This method pierces the published-API boundary, as does the SPI cast.
    • addLifecycleListener

      @Deprecated void addLifecycleListener(Object listener, Class... classes)
      Deprecated.
      cast to OpenJPAEntityManagerFactorySPI instead. This method pierces the published-API boundary, as does the SPI cast.
    • removeLifecycleListener

      @Deprecated void removeLifecycleListener(Object listener)
      Deprecated.
      cast to OpenJPAEntityManagerFactorySPI instead. This method pierces the published-API boundary, as does the SPI cast.
    • addTransactionListener

      @Deprecated void addTransactionListener(Object listener)
      Deprecated.
      cast to OpenJPAEntityManagerFactorySPI instead. This method pierces the published-API boundary, as does the SPI cast.
    • removeTransactionListener

      @Deprecated void removeTransactionListener(Object listener)
      Deprecated.
      cast to OpenJPAEntityManagerFactorySPI instead. This method pierces the published-API boundary, as does the SPI cast.
    • getDynamicQueryBuilder

      QueryBuilder getDynamicQueryBuilder()
      Gets a builder for dynamic queries.
    • getCriteriaBuilder

      OpenJPACriteriaBuilder getCriteriaBuilder()
      Gets the QueryBuilder with OpenJPA-extended capabilities.
      Specified by:
      getCriteriaBuilder in interface jakarta.persistence.EntityManagerFactory
      Since:
      2.0.0
    • getSupportedProperties

      Set<String> getSupportedProperties()
      Get the properties supported by this runtime.
      Since:
      2.0.0