public interface PersistenceUnitInfo
| Modifier and Type | Method and Description |
|---|---|
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 PersistenceUnitInfo.getClassLoader method.
|
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.
|
ClassLoader |
getClassLoader()
Returns ClassLoader that the provider may use to load any classes, resources, or open URLs.
|
List<URL> |
getJarFileUrls()
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.
|
DataSource |
getJtaDataSource()
Returns the JTA-enabled data source to be used by the persistence provider.
|
List<String> |
getManagedClassNames()
Returns the list of the names of the classes that the persistence provider must add to its set of managed classes.
|
List<String> |
getMappingFileNames()
Returns the list of the names of the mapping files that the persistence provider must load to determine the mappings for the entity
classes.
|
ClassLoader |
getNewTempClassLoader()
Return a new instance of a ClassLoader that the provider may use to temporarily load any classes, resources, or open URLs.
|
DataSource |
getNonJtaDataSource()
Returns the non-JTA-enabled data source to be used by the persistence provider for accessing data outside a JTA transaction.
|
String |
getPersistenceProviderClassName()
Returns the fully qualified name of the persistence provider implementation class.
|
String |
getPersistenceUnitName()
Returns the name of the persistence unit.
|
URL |
getPersistenceUnitRootUrl()
Returns the URL for the jar file or directory that is the root of the persistence unit.
|
String |
getPersistenceXMLSchemaVersion()
Returns the schema version of the persistence.xml file.
|
Properties |
getProperties()
Returns a properties object.
|
SharedCacheMode |
getSharedCacheMode()
Returns the specification of how the provider must use a second-level cache for the persistence unit.
|
PersistenceUnitTransactionType |
getTransactionType()
Returns the transaction type of the entity managers created by the EntityManagerFactory.
|
ValidationMode |
getValidationMode()
Returns the validation mode to be used by the persistence provider for the persistence unit.
|
void addTransformer(ClassTransformer transformer)
transformer - provider-supplied transformer that the container invokes at class-(re)definition timeboolean excludeUnlistedClasses()
ClassLoader getClassLoader()
List<URL> getJarFileUrls()
DataSource getJtaDataSource()
List<String> getManagedClassNames()
List<String> getMappingFileNames()
ClassLoader getNewTempClassLoader()
DataSource getNonJtaDataSource()
String getPersistenceProviderClassName()
String getPersistenceUnitName()
URL getPersistenceUnitRootUrl()
String getPersistenceXMLSchemaVersion()
Properties getProperties()
SharedCacheMode getSharedCacheMode()
PersistenceUnitTransactionType getTransactionType()
ValidationMode getValidationMode()
Copyright © 2012 Batoo Software & Consultancy. All Rights Reserved.