org.apache.openjpa.persistence
Interface OpenJPAEntityManagerFactory

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

public interface OpenJPAEntityManagerFactory
extends EntityManagerFactory, Serializable

Interface implemented by OpenJPA entity manager factories.

Since:
0.4.0
Author:
Abe White

Method Summary
 OpenJPAEntityManager createEntityManager()
           
 OpenJPAEntityManager createEntityManager(Map props)
          Return an entity manager with the provided additional configuration settings.
 Properties getProperties()
          Return properties describing this runtime.
 QueryResultCache getQueryResultCache()
          Access query result cache.
 StoreCache getStoreCache()
          Access the level 2 store cache.
 StoreCache getStoreCache(String name)
          Access a named level 2 store cache.
 Object getUserObject(Object key)
          Get the value for the specified key from the map of user objects.
 Object putUserObject(Object key, Object val)
          Put the specified key-value pair into the map of user objects.
 
Methods inherited from interface javax.persistence.EntityManagerFactory
close, isOpen
 

Method Detail

getProperties

Properties getProperties()
Return properties describing this runtime.


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 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:

Specified by:
createEntityManager in interface EntityManagerFactory


Copyright © 2006-2007 Apache Software Foundation. All Rights Reserved.