public class ReloadableEntityManagerFactory
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ReloadableEntityManagerFactory.JMXReloadableEntityManagerFactory |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JAKARTA_PERSISTENCE_SHARED_CACHE_MODE |
static java.lang.String |
JAKARTA_PERSISTENCE_TRANSACTION_TYPE |
static java.lang.String |
JAKARTA_PERSISTENCE_VALIDATION_MODE |
static java.lang.String |
OPENEJB_JPA_CRITERIA_LOG_JPQL |
static java.lang.String |
OPENEJB_JPA_CRITERIA_LOG_JPQL_LEVEL |
Constructor and Description |
---|
ReloadableEntityManagerFactory(java.lang.ClassLoader cl,
EntityManagerFactoryCallable callable,
PersistenceUnitInfoImpl unitInfo) |
Modifier and Type | Method and Description |
---|---|
void |
addJarFileUrls(java.lang.String file) |
void |
addManagedClasses(java.lang.String clazz) |
void |
addMappingFile(java.lang.String file) |
<T> void |
addNamedEntityGraph(java.lang.String graphName,
<any> entityGraph) |
void |
addNamedQuery(java.lang.String name,
Query query) |
void |
close() |
void |
createDelegate() |
EntityManager |
createEntityManager() |
EntityManager |
createEntityManager(java.util.Map map) |
EntityManager |
createEntityManager(SynchronizationType synchronizationType) |
EntityManager |
createEntityManager(SynchronizationType synchronizationType,
java.util.Map map) |
Cache |
getCache() |
CriteriaBuilder |
getCriteriaBuilder() |
EntityManagerFactory |
getDelegate() |
EntityManagerFactoryCallable |
getEntityManagerFactoryCallable() |
boolean |
getExcludeUnlistedClasses() |
java.util.List<java.net.URL> |
getJarFileUrls() |
java.util.List<java.lang.String> |
getManagedClasses() |
java.util.List<java.lang.String> |
getMappingFiles() |
Metamodel |
getMetamodel() |
PersistenceUnitUtil |
getPersistenceUnitUtil() |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
java.util.Properties |
getUnitProperties() |
PersistenceUnitInfo |
info() |
boolean |
isOpen() |
void |
overrideClassLoader(java.lang.ClassLoader loader) |
void |
register() |
void |
reload() |
void |
removeJarFileUrls(java.lang.String file) |
void |
removeManagedClasses(java.lang.String clazz) |
void |
removeMappingFile(java.lang.String file) |
void |
removeProperty(java.lang.String key) |
void |
setExcludeUnlistedClasses(boolean excludeUnlistedClasses) |
void |
setProperty(java.lang.String key,
java.lang.String value) |
void |
setProvider(java.lang.String providerRaw) |
void |
setSharedCacheMode(SharedCacheMode mode) |
void |
setTransactionType(PersistenceUnitTransactionType type) |
void |
setValidationMode(ValidationMode mode) |
void |
unregister() |
<T> T |
unwrap(java.lang.Class<T> cls) |
public static final java.lang.String JAKARTA_PERSISTENCE_SHARED_CACHE_MODE
public static final java.lang.String JAKARTA_PERSISTENCE_VALIDATION_MODE
public static final java.lang.String JAKARTA_PERSISTENCE_TRANSACTION_TYPE
public static final java.lang.String OPENEJB_JPA_CRITERIA_LOG_JPQL
public static final java.lang.String OPENEJB_JPA_CRITERIA_LOG_JPQL_LEVEL
public ReloadableEntityManagerFactory(java.lang.ClassLoader cl, EntityManagerFactoryCallable callable, PersistenceUnitInfoImpl unitInfo)
public void overrideClassLoader(java.lang.ClassLoader loader)
public EntityManagerFactoryCallable getEntityManagerFactoryCallable()
public void createDelegate()
public EntityManager createEntityManager()
public EntityManager createEntityManager(java.util.Map map)
public EntityManager createEntityManager(SynchronizationType synchronizationType)
public EntityManager createEntityManager(SynchronizationType synchronizationType, java.util.Map map)
public <T> T unwrap(java.lang.Class<T> cls)
public void addNamedQuery(java.lang.String name, Query query)
public <T> void addNamedEntityGraph(java.lang.String graphName, <any> entityGraph)
public CriteriaBuilder getCriteriaBuilder()
public Metamodel getMetamodel()
public boolean isOpen()
public void close()
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public Cache getCache()
public PersistenceUnitUtil getPersistenceUnitUtil()
public EntityManagerFactory getDelegate()
public void register() throws OpenEJBException
OpenEJBException
public void unregister() throws OpenEJBException
OpenEJBException
public void reload()
public void setSharedCacheMode(SharedCacheMode mode)
public void setValidationMode(ValidationMode mode)
public void setProvider(java.lang.String providerRaw)
public void setTransactionType(PersistenceUnitTransactionType type)
public void setProperty(java.lang.String key, java.lang.String value)
public void removeProperty(java.lang.String key)
public java.util.Properties getUnitProperties()
public java.util.List<java.lang.String> getMappingFiles()
public void addMappingFile(java.lang.String file)
public void removeMappingFile(java.lang.String file)
public java.util.List<java.net.URL> getJarFileUrls()
public void addJarFileUrls(java.lang.String file)
public void removeJarFileUrls(java.lang.String file)
public java.util.List<java.lang.String> getManagedClasses()
public void addManagedClasses(java.lang.String clazz)
public void removeManagedClasses(java.lang.String clazz)
public PersistenceUnitInfo info()
public void setExcludeUnlistedClasses(boolean excludeUnlistedClasses)
public boolean getExcludeUnlistedClasses()