javax.persistence.EntityManagerFactory.
| Modifier and Type | Method and Description |
|---|---|
| public void | addTransformer(ClassTransformer
provider-supplied transformer that the
container invokes at class-(re)definition time transformer)Add a transformer supplied by the provider that will be
called for every new class definition or class redefinition
that gets loaded by the loader returned by the
|
| public boolean | Returns: whether classes in the root of the persistence unit that have not been explicitly listed are to be included in the set of managed classesReturns whether classes in the root of the persistence unit that have not been explicitly listed are to be included in the set of managed classes. |
| public ClassLoader | Returns: ClassLoader that the provider may use to load any classes, resources, or open URLsReturns ClassLoader that the provider may use to load any classes, resources, or open URLs. |
| public List | Returns: a list of URL objects referring to jar files or directoriesReturns a list of URLs for the jar files or exploded jar file directories that the persistence provider must examine for managed classes of the persistence unit. |
| public DataSource | Returns: the JTA-enabled data source to be used by the persistence providerReturns the JTA-enabled data source to be used by the persistence provider. |
| public List | Returns: the list of the names of the classes that the persistence provider must add to its set of managed classesReturns the list of the names of the classes that the persistence provider must add to its set of managed classes. |
| public List | Returns: the list of mapping file names that the persistence provider must load to determine the mappings for the entity classesReturns the list of the names of the mapping files that the persistence provider must load to determine the mappings for the entity classes. |
| public ClassLoader | Returns: temporary ClassLoader with same visibility as current loaderReturn a new instance of a ClassLoader that the provider may use to temporarily load any classes, resources, or open URLs. |
| public DataSource | Returns: the non-JTA-enabled data source to be used by the persistence provider for accessing data outside a JTA transactionReturns the non-JTA-enabled data source to be used by the persistence provider for accessing data outside a JTA transaction. |
| public String | Returns: the fully qualified name of the persistence provider implementation classReturns the fully qualified name of the persistence provider implementation class. |
| public String | Returns: the name of the persistence unitReturns the name of the persistence unit. |
| public URL | Returns: a URL referring to a jar file or directoryReturns the URL for the jar file or directory that is the root of the persistence unit. |
| public String | Returns: persistence.xml schema versionReturns the schema version of the |
| public Properties | |
| public SharedCacheMode | Returns: the second-level cache mode that must be used by the provider for the persistence unitReturns the specification of how the provider must use a second-level cache for the persistence unit. |
| public PersistenceUnitTransactionType | Returns: transaction type of the entity managers created by the EntityManagerFactoryReturns the transaction type of the entity managers created by
the |
| public ValidationMode | Returns: the validation mode to be used by the persistence provider for the persistence unitReturns the validation mode to be used by the persistence provider for the persistence unit. |
| addTransformer | back to summary |
|---|---|
| public void addTransformer(ClassTransformer transformer) Add a transformer supplied by the provider that will be
called for every new class definition or class redefinition
that gets loaded by the loader returned by the
| |
| excludeUnlistedClasses | back to summary |
|---|---|
| public boolean excludeUnlistedClasses() Returns whether classes in the root of the persistence unit
that have not been explicitly listed are to be included in the
set of managed classes. This value corresponds to the
| |
| getClassLoader | back to summary |
|---|---|
| public ClassLoader getClassLoader() Returns ClassLoader that the provider may use to load any classes, resources, or open URLs.
| |
| getJarFileUrls | back to summary |
|---|---|
| public List Returns a list of URLs for the jar files or exploded jar
file directories that the persistence provider must examine
for managed classes of the persistence unit. Each URL
corresponds to a | |
| getJtaDataSource | back to summary |
|---|---|
| public DataSource getJtaDataSource() Returns the JTA-enabled data source to be used by the
persistence provider. The data source corresponds to the
| |
| getManagedClassNames | back to summary |
|---|---|
| public List Returns the list of the names of the classes that the
persistence provider must add to its set of managed
classes. Each name corresponds to a named | |
| getMappingFileNames | back to summary |
|---|---|
| public List Returns the list of the names of the mapping files that the
persistence provider must load to determine the mappings for
the entity classes. The mapping files must be in the standard
XML mapping format, be uniquely named and be resource-loadable
from the application classpath. Each mapping file name
corresponds to a | |
| getNewTempClassLoader | back to summary |
|---|---|
| public ClassLoader getNewTempClassLoader() Return a new instance of a ClassLoader that the provider may
use to temporarily load any classes, resources, or open
URLs. The scope and classpath of this loader is exactly the
same as that of the loader returned by
| |
| getNonJtaDataSource | back to summary |
|---|---|
| public DataSource getNonJtaDataSource() Returns the non-JTA-enabled data source to be used by the
persistence provider for accessing data outside a JTA
transaction. The data source corresponds to the named
| |
| getPersistenceProviderClassName | back to summary |
|---|---|
| public String getPersistenceProviderClassName() Returns the fully qualified name of the persistence provider
implementation class. Corresponds to the
| |
| getPersistenceUnitName | back to summary |
|---|---|
| public String getPersistenceUnitName() Returns the name of the persistence unit. Corresponds to the
| |
| getPersistenceUnitRootUrl | back to summary |
|---|---|
| public URL getPersistenceUnitRootUrl() Returns the URL for the jar file or directory that is the root of the persistence unit. (If the persistence unit is rooted in the WEB-INF/classes directory, this will be the URL of that directory.) The URL will either be a file: URL referring to a jar file or referring to a directory that contains an exploded jar file, or some other URL from which an InputStream in jar format can be obtained.
| |
| getPersistenceXMLSchemaVersion | back to summary |
|---|---|
| public String getPersistenceXMLSchemaVersion() Returns the schema version of the
| |
| getProperties | back to summary |
|---|---|
| public Properties getProperties() Returns a properties object. Each property corresponds to a
| |
| getSharedCacheMode | back to summary |
|---|---|
| public SharedCacheMode getSharedCacheMode() Returns the specification of how the provider must use
a second-level cache for the persistence unit.
The result of this method corresponds to the
| |
| getTransactionType | back to summary |
|---|---|
| public PersistenceUnitTransactionType getTransactionType() Returns the transaction type of the entity managers created by
the
| |
| getValidationMode | back to summary |
|---|---|
| public ValidationMode getValidationMode() Returns the validation mode to be used by the persistence
provider for the persistence unit. The validation mode
corresponds to the
| |