| Modifier and Type | Field and Description |
|---|---|
| protected SharedCacheMode | |
| protected boolean | |
| private Collection | |
| protected List | |
| protected DataSource | |
| protected List | |
| protected List | |
| protected DataSource | |
| protected String | |
| protected String | |
| protected List | |
| protected URL | |
| protected PersistenceUnitTransactionType | |
| protected Properties | |
| protected ClassLoader | |
| protected ClassLoader | |
| protected ValidationMode |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addTransformer(ClassTransformer
A provider-supplied transformer that the
Container invokes at class-(re)definition time transformer)Implements jakarta. |
| 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 classes. This value corresponds to the <exclude-unlisted-classes> element in the persistence.xml file.Implements jakarta. |
| public ClassLoader | Returns: ClassLoader that the provider may use to load any classes, resources, or open URLs.Implements jakarta. |
| public Collection | |
| public List | Returns: The list of JAR file URLs that the persistence provider must examine for managed classes of the persistence unit. Each jar file URL corresponds to a named <jar-file> element in the persistence.xml file.Implements jakarta. |
| public DataSource | Returns: the JTA-enabled data source to be used by the persistence provider. The data source corresponds to the <jta-data-source> element in the persistence.xml file or is provided at deployment or by the container.Implements jakarta. |
| public List | Returns: The list of the names of the classes that the persistence provider must add it to its set of managed classes. Each name corresponds to a named <class> element in the persistence.xml file.Implements jakarta. |
| public List | Returns: The list of mapping file names 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. This list will not include the orm.xml file if one was specified. Each mapping file name corresponds to a <mapping-file> element in the persistence.xml file.Implements jakarta. |
| public ClassLoader | Returns: Temporary ClassLoader with same visibility as current loaderImplements jakarta. |
| public DataSource | 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 <non-jta-data-source> element in the persistence.xml file or provided at deployment or by the container.Implements jakarta. |
| public String | Returns: The fully qualified name of the persistence provider implementation class. Corresponds to the <provider> element in the persistence.xml file.Implements jakarta. |
| public String | Returns: The name of the persistence unit. Corresponds to the <name> element in the persistence.xml file.Implements jakarta. |
| public List | |
| public URL | Returns: The URL for the jar file 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.Implements jakarta. |
| public String | getPersistenceXMLSchemaVersion()
Implements jakarta. persistence.xml file.
|
| public Properties | Returns: Properties object. Each property corresponds to a <property> element in the persistence.xml fileImplements jakarta. |
| public SharedCacheMode | getSharedCacheMode()
Implements jakarta. |
| public PersistenceUnitTransactionType | Returns: The transaction type of the entity managers created by the EntityManagerFactory. The transaction type corresponds to the transaction-type attribute in the persistence.xml file.Implements jakarta. EntityManagerFactory.
|
| public ValidationMode | getValidationMode()
Implements jakarta. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setPersistenceUnitProperties(List<SEPersistenceUnitProperty> persistenceUnitProperties)
Used with the OX mapping file for the Canonical model processor. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| cacheMode | back to summary |
|---|---|
| protected SharedCacheMode cacheMode | |
| excludeUnlistedClasses | back to summary |
|---|---|
| protected boolean excludeUnlistedClasses | |
| jarFiles | back to summary |
|---|---|
| private Collection<String> jarFiles | |
| jarFileUrls | back to summary |
|---|---|
| protected List<URL> jarFileUrls | |
| jtaDataSource | back to summary |
|---|---|
| protected DataSource jtaDataSource | |
| managedClassNames | back to summary |
|---|---|
| protected List<String> managedClassNames | |
| mappingFiles | back to summary |
|---|---|
| protected List<String> mappingFiles | |
| nonJtaDataSource | back to summary |
|---|---|
| protected DataSource nonJtaDataSource | |
| persistenceProviderClassName | back to summary |
|---|---|
| protected String persistenceProviderClassName | |
| persistenceUnitName | back to summary |
|---|---|
| protected String persistenceUnitName | |
| persistenceUnitProperties | back to summary |
|---|---|
| protected List<SEPersistenceUnitProperty> persistenceUnitProperties | |
| persistenceUnitRootUrl | back to summary |
|---|---|
| protected URL persistenceUnitRootUrl | |
| persistenceUnitTransactionType | back to summary |
|---|---|
| protected PersistenceUnitTransactionType persistenceUnitTransactionType | |
| properties | back to summary |
|---|---|
| protected Properties properties | |
| realClassLoader | back to summary |
|---|---|
| protected ClassLoader realClassLoader | |
| tempClassLoader | back to summary |
|---|---|
| protected ClassLoader tempClassLoader | |
| validationMode | back to summary |
|---|---|
| protected ValidationMode validationMode | |
| SEPersistenceUnitInfo | back to summary |
|---|---|
| public SEPersistenceUnitInfo() | |
| addTransformer | back to summary |
|---|---|
| public void addTransformer(ClassTransformer transformer) Implements jakarta. 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. The transformer has no effect on the result returned by the PersistenceUnitInfo.getNewTempClassLoader method. Classes are only transformed once within the same classloading scope, regardless of how many persistence units they may be a part of.
| |
| excludeUnlistedClasses | back to summary |
|---|---|
| public boolean excludeUnlistedClasses() Implements jakarta. Doc from jakarta. 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() Implements jakarta. Doc from jakarta. Returns ClassLoader that the provider may use to load any classes, resources, or open URLs.
| |
| getJarFiles | back to summary |
|---|---|
| public Collection | |
| getJarFileUrls | back to summary |
|---|---|
| public List Implements jakarta. Doc from jakarta. 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() Implements jakarta. Doc from jakarta. 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 Implements jakarta. Doc from jakarta. 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 Implements jakarta. Doc from jakarta. 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() Implements jakarta. Return 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 PersistenceUnitInfo.getClassLoader. None of the classes loaded by this class loader will be visible to application components.
| |
| getNonJtaDataSource | back to summary |
|---|---|
| public DataSource getNonJtaDataSource() Implements jakarta. Doc from jakarta. 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() Implements jakarta. Doc from jakarta. Returns the fully qualified name of the persistence provider
implementation class. Corresponds to the | |
| getPersistenceUnitName | back to summary |
|---|---|
| public String getPersistenceUnitName() Implements jakarta. Doc from jakarta. Returns the name of the persistence unit. Corresponds to the
| |
| getPersistenceUnitProperties | back to summary |
|---|---|
| public List Used with the OX mapping file for the Canonical model processor. | |
| getPersistenceUnitRootUrl | back to summary |
|---|---|
| public URL getPersistenceUnitRootUrl() Implements jakarta. Doc from jakarta. 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() Implements jakarta. Doc from jakarta. Returns the schema version of the
| |
| getProperties | back to summary |
|---|---|
| public Properties getProperties() Implements jakarta. Doc from jakarta. Returns a properties object. Each property corresponds to a
| |
| getSharedCacheMode | back to summary |
|---|---|
| public SharedCacheMode getSharedCacheMode() Implements jakarta. Doc from jakarta. 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() Implements jakarta. Doc from jakarta. Returns the transaction type of the entity managers created by
the
| |
| getValidationMode | back to summary |
|---|---|
| public ValidationMode getValidationMode() Implements jakarta. Doc from jakarta. Returns the validation mode to be used by the persistence
provider for the persistence unit. The validation mode
corresponds to the
| |
| setClassLoader | back to summary |
|---|---|
| public void setClassLoader(ClassLoader loader) | |
| setExcludeUnlistedClasses | back to summary |
|---|---|
| public void setExcludeUnlistedClasses(boolean excludeUnlistedClasses) | |
| setJarFileUrls | back to summary |
|---|---|
| public void setJarFileUrls(List<URL> jarFileUrls) | |
| setJtaDataSource | back to summary |
|---|---|
| public void setJtaDataSource(DataSource jtaDataSource) | |
| setManagedClassNames | back to summary |
|---|---|
| public void setManagedClassNames(List<String> managedClassNames) | |
| setMappingFileNames | back to summary |
|---|---|
| public void setMappingFileNames(List<String> mappingFiles) | |
| setNewTempClassLoader | back to summary |
|---|---|
| public void setNewTempClassLoader(ClassLoader loader) | |
| setNonJtaDataSource | back to summary |
|---|---|
| public void setNonJtaDataSource(DataSource nonJtaDataSource) | |
| setPersistenceProviderClassName | back to summary |
|---|---|
| public void setPersistenceProviderClassName(String persistenceProviderClassName) | |
| setPersistenceUnitName | back to summary |
|---|---|
| public void setPersistenceUnitName(String persistenceUnitName) | |
| setPersistenceUnitProperties | back to summary |
|---|---|
| public void setPersistenceUnitProperties(List<SEPersistenceUnitProperty> persistenceUnitProperties) Used with the OX mapping file for the Canonical model processor. | |
| setPersistenceUnitRootUrl | back to summary |
|---|---|
| public void setPersistenceUnitRootUrl(URL persistenceUnitRootUrl) | |
| setProperties | back to summary |
|---|---|
| public void setProperties(Properties properties) | |
| setSharedCacheMode | back to summary |
|---|---|
public void setSharedCacheMode(String sharedCacheMode)
| |
| setTransactionType | back to summary |
|---|---|
| public void setTransactionType(PersistenceUnitTransactionType persistenceUnitTransactionType) | |
| setValidationMode | back to summary |
|---|---|
public void setValidationMode(String validationMode)
| |