Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa » persistence » [javadoc | source]
org.apache.openjpa.persistence
public interface: OpenJPAEntityManagerFactory [javadoc | source]

All Implemented Interfaces:
    Serializable, javax.persistence.EntityManagerFactory

All Known Implementing Classes:
    OpenJPAEntityManagerFactorySPI, EntityManagerFactoryImpl

Interface implemented by OpenJPA entity manager factories.
Field Summary
public static final  int CONN_RETAIN_DEMAND   
     
    public static final  int CONN_RETAIN_TRANS   
       
      public static final  int CONN_RETAIN_ALWAYS   
         
        Method from org.apache.openjpa.persistence.OpenJPAEntityManagerFactory Summary:
        addLifecycleListener,   addTransactionListener,   createEntityManager,   createEntityManager,   getConfiguration,   getProperties,   getQueryResultCache,   getStoreCache,   getStoreCache,   getUserObject,   putUserObject,   removeLifecycleListener,   removeTransactionListener
        Method from org.apache.openjpa.persistence.OpenJPAEntityManagerFactory Detail:
         public  void addLifecycleListener(Object listener,
            Class classes)Deprecated! cast -  to OpenJPAEntityManagerFactorySPI  instead. This
        method pierces the published-API boundary, as does the SPI cast.

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

         public OpenJPAEntityManager createEntityManager()
         public 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
         public OpenJPAConfiguration getConfiguration()Deprecated! cast -  to OpenJPAEntityManagerFactorySPI  instead. This
        method pierces the published-API boundary, as does the SPI cast.

         public Properties getProperties()
          Return properties describing this runtime.
         public QueryResultCache getQueryResultCache()
          Access query result cache.
         public StoreCache getStoreCache()
          Access the level 2 store cache. This cache acts as a proxy to all named caches.
         public StoreCache getStoreCache(String name)
          Access a named level 2 store cache.
         public Object getUserObject(Object key)
          Get the value for the specified key from the map of user objects.
         public Object putUserObject(Object key,
            Object val)
          Put the specified key-value pair into the map of user objects.
         public  void removeLifecycleListener(Object listener)Deprecated! cast -  to OpenJPAEntityManagerFactorySPI  instead. This
        method pierces the published-API boundary, as does the SPI cast.

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