public interface EntityManagerFactoryCache
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.EntityManagerFactory |
get(java.lang.String unitName)
Returns the EntityManagerFactory for the given persistence unit name
|
void |
put(java.net.URI uri,
java.lang.String unitName,
javax.persistence.EntityManagerFactory factory)
Caches an EntityManagerFactory.
|
javax.persistence.EntityManagerFactory get(java.lang.String unitName)
unitName - the persistence unit namevoid put(java.net.URI uri,
java.lang.String unitName,
javax.persistence.EntityManagerFactory factory)
throws org.fabric3.api.host.Fabric3Exception
uri - the URI of the contribution the persistence unit is defined inunitName - the persistence unit namefactory - the EntityManagerFactory to cacheorg.fabric3.api.host.Fabric3Exception - if there is an error caching the EntityManagerFactory