<persistence-unit/> element in a persistence.xml file
whether parsed directly by Hibernate or passed to us by an EE container as a
javax.persistence.spi.PersistenceUnitInfo .
Easier to consolidate both views into a single contract and extract information through that shared contract.
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private boolean | |
| private List | |
| private Object | |
| private List | |
| private String | |
| private Object | |
| private final URL | |
| private Properties | |
| private String | |
| private SharedCacheMode | |
| private PersistenceUnitTransactionType | |
| private boolean | |
| private ValidationMode |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public ClassLoader | |
| public List | |
| public Object | |
| public List | |
| public List | |
| public String | getName()
Implements org. |
| public Object | |
| public URL | getPersistenceUnitRootUrl()
Implements org. |
| public Properties | |
| public String | getProviderClassName()
Implements org. null if not specified.
|
| public SharedCacheMode | |
| public ClassLoader | |
| public PersistenceUnitTransactionType | |
| public ValidationMode | |
| public boolean | isExcludeUnlistedClasses()
Implements org. |
| public boolean | isUseQuotedIdentifiers()
Implements org. |
| public void | pushClassTransformer(EnhancementContext enhancementContext)
Implements org. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| classes | back to summary |
|---|---|
| private List<String> classes | |
| excludeUnlistedClasses | back to summary |
|---|---|
| private boolean excludeUnlistedClasses | |
| jarFileUrls | back to summary |
|---|---|
| private List<URL> jarFileUrls | |
| jtaDataSource | back to summary |
|---|---|
| private Object jtaDataSource | |
| mappingFiles | back to summary |
|---|---|
| private List<String> mappingFiles | |
| name | back to summary |
|---|---|
| private String name | |
| nonJtaDataSource | back to summary |
|---|---|
| private Object nonJtaDataSource | |
| persistenceUnitRootUrl | back to summary |
|---|---|
| private final URL persistenceUnitRootUrl | |
| properties | back to summary |
|---|---|
| private Properties properties | |
| providerClassName | back to summary |
|---|---|
| private String providerClassName | |
| sharedCacheMode | back to summary |
|---|---|
| private SharedCacheMode sharedCacheMode | |
| transactionType | back to summary |
|---|---|
| private PersistenceUnitTransactionType transactionType | |
| useQuotedIdentifiers | back to summary |
|---|---|
| private boolean useQuotedIdentifiers | |
| validationMode | back to summary |
|---|---|
| private ValidationMode validationMode | |
| ParsedPersistenceXmlDescriptor | back to summary |
|---|---|
| public ParsedPersistenceXmlDescriptor(URL persistenceUnitRootUrl) | |
| addClasses | back to summary |
|---|---|
| public void addClasses(String... classes) | |
| addClasses | back to summary |
|---|---|
| public void addClasses(List<String> classes) | |
| addJarFileUrl | back to summary |
|---|---|
| public void addJarFileUrl(URL jarFileUrl) | |
| addMappingFiles | back to summary |
|---|---|
| public void addMappingFiles(String... mappingFiles) | |
| addMappingFiles | back to summary |
|---|---|
| public void addMappingFiles(List<String> mappingFiles) | |
| getClassLoader | back to summary |
|---|---|
| public ClassLoader getClassLoader() Implements org.
| |
| getJarFileUrls | back to summary |
|---|---|
| public List Implements org.
| |
| getJtaDataSource | back to summary |
|---|---|
| public Object getJtaDataSource() Implements org.
| |
| getManagedClassNames | back to summary |
|---|---|
| public List Implements org.
| |
| getMappingFileNames | back to summary |
|---|---|
| public List Implements org.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Get the persistence unit name, | |
| getNonJtaDataSource | back to summary |
|---|---|
| public Object getNonJtaDataSource() Implements org.
| |
| getPersistenceUnitRootUrl | back to summary |
|---|---|
| public URL getPersistenceUnitRootUrl() Implements org. Doc from org. Get the root url for the persistence unit. Intended to describe the base for scanning. | |
| getProperties | back to summary |
|---|---|
| public Properties getProperties() Implements org.
| |
| getProviderClassName | back to summary |
|---|---|
| public String getProviderClassName() Implements org. Doc from org. Get the explicitly specified provider class name, or | |
| getSharedCacheMode | back to summary |
|---|---|
| public SharedCacheMode getSharedCacheMode() Implements org.
| |
| getTempClassLoader | back to summary |
|---|---|
| public ClassLoader getTempClassLoader() Implements org.
| |
| getTransactionType | back to summary |
|---|---|
| public PersistenceUnitTransactionType getTransactionType() Implements org.
| |
| getValidationMode | back to summary |
|---|---|
| public ValidationMode getValidationMode() Implements org.
| |
| isExcludeUnlistedClasses | back to summary |
|---|---|
| public boolean isExcludeUnlistedClasses() Implements org. Doc from org. Essentially should scanning for classes be performed? If not, the list of classes available is limited to:
| |
| isUseQuotedIdentifiers | back to summary |
|---|---|
| public boolean isUseQuotedIdentifiers() Implements org. Doc from org. Is the use of quoted identifiers in effect for this whole persistence unit?
| |
| pushClassTransformer | back to summary |
|---|---|
| public void pushClassTransformer(EnhancementContext enhancementContext) Implements org.
| |
| setExcludeUnlistedClasses | back to summary |
|---|---|
| public void setExcludeUnlistedClasses(boolean excludeUnlistedClasses) | |
| setJtaDataSource | back to summary |
|---|---|
| public void setJtaDataSource(Object jtaDataSource) | |
| setName | back to summary |
|---|---|
| public void setName(String name) | |
| setNonJtaDataSource | back to summary |
|---|---|
| public void setNonJtaDataSource(Object nonJtaDataSource) | |
| setProviderClassName | back to summary |
|---|---|
| public void setProviderClassName(String providerClassName) | |
| setSharedCacheMode | back to summary |
|---|---|
| public void setSharedCacheMode(String sharedCacheMode) | |
| setTransactionType | back to summary |
|---|---|
| public void setTransactionType(PersistenceUnitTransactionType transactionType) | |
| setUseQuotedIdentifiers | back to summary |
|---|---|
| public void setUseQuotedIdentifiers(boolean useQuotedIdentifiers) | |
| setValidationMode | back to summary |
|---|---|
| public void setValidationMode(String validationMode) | |