public class PersistenceUnitMetadata extends Object implements javax.persistence.spi.PersistenceUnitInfo
| Modifier and Type | Field and Description |
|---|---|
private List<String> |
classes
The classes.
|
private boolean |
excludeUnlistedClasses
The exclude unlisted classes.
|
private Set<String> |
jarFiles
The jar files.
|
private Set<URL> |
jarUrls |
private static org.slf4j.Logger |
log
logger instance.
|
private URL |
mappedUrl |
private List<String> |
packages
The packages.
|
private String |
persistenceUnitName
Persistence Unit name.
|
private Properties |
properties
The properties.
|
private String |
provider
The provider.
|
private URL |
rootUrl |
private String |
schemaVersion |
private javax.persistence.spi.PersistenceUnitTransactionType |
transactionType
The transaction type.
|
| Constructor and Description |
|---|
PersistenceUnitMetadata() |
PersistenceUnitMetadata(String xmlSchemaVersion,
URL rootUrl,
URL mappingFileUrl) |
| Modifier and Type | Method and Description |
|---|---|
void |
addJarFile(String jarFile)
Sets the jar files.
|
private void |
addJarFileUrl(String jarFile)
Adds jar file URL.
|
void |
addTransformer(javax.persistence.spi.ClassTransformer paramClassTransformer) |
boolean |
excludeUnlistedClasses() |
int |
getBatchSize()
Return batch.size value.
|
List<String> |
getClasses()
Gets the classes.
|
ClassLoader |
getClassLoader() |
String |
getClient()
Gets the client.
|
boolean |
getExcludeUnlistedClasses()
Gets the exclude unlisted classes.
|
Set<String> |
getJarFiles()
Gets the jar files.
|
List<URL> |
getJarFileUrls() |
DataSource |
getJtaDataSource() |
List<String> |
getManagedClassNames() |
List<URL> |
getManagedURLs()
Returns list of managed urls.
|
URL |
getMappedUrl() |
List<String> |
getMappingFileNames() |
ClassLoader |
getNewTempClassLoader() |
DataSource |
getNonJtaDataSource() |
List<String> |
getPackages()
Gets the packages.
|
String |
getPersistenceProviderClassName() |
String |
getPersistenceUnitName() |
URL |
getPersistenceUnitRootUrl() |
String |
getPersistenceXMLSchemaVersion() |
Properties |
getProperties() |
String |
getProperty(String prop)
Gets the property.
|
javax.persistence.SharedCacheMode |
getSharedCacheMode() |
javax.persistence.spi.PersistenceUnitTransactionType |
getTransactionType() |
javax.persistence.ValidationMode |
getValidationMode() |
private boolean |
isBatch()
Returns true, if pu is specified with batch size.
|
void |
setClasses(List<String> classes)
Sets the classes.
|
void |
setExcludeUnlistedClasses(boolean excludeUnlistedClasses)
Sets the exclude unlisted classes.
|
void |
setPackages(List<String> packages)
Sets the packages.
|
void |
setPersistenceUnitName(String persistenceUnitName)
Sets the persistence unit name.
|
void |
setProperties(Properties properties)
Sets the properties.
|
void |
setProvider(String provider)
Sets the provider.
|
void |
setTransactionType(javax.persistence.spi.PersistenceUnitTransactionType transactionType)
Sets the transaction type.
|
String |
toString() |
private static org.slf4j.Logger log
private String persistenceUnitName
private String provider
private javax.persistence.spi.PersistenceUnitTransactionType transactionType
private Properties properties
private boolean excludeUnlistedClasses
private URL rootUrl
private String schemaVersion
private URL mappedUrl
public String getPersistenceUnitName()
getPersistenceUnitName in interface javax.persistence.spi.PersistenceUnitInfopublic void setPersistenceUnitName(String persistenceUnitName)
persistenceUnitName - the persistenceUnitName to setpublic void setTransactionType(javax.persistence.spi.PersistenceUnitTransactionType transactionType)
transactionType - the new transaction typepublic void setProvider(String provider)
provider - the new providerpublic void setClasses(List<String> classes)
classes - the new classespublic void setPackages(List<String> packages)
packages - the new packagespublic void addJarFile(String jarFile)
jarFiles - the new jar filespublic boolean getExcludeUnlistedClasses()
public void setExcludeUnlistedClasses(boolean excludeUnlistedClasses)
excludeUnlistedClasses - the new exclude unlisted classespublic String getPersistenceProviderClassName()
getPersistenceProviderClassName in interface javax.persistence.spi.PersistenceUnitInfopublic javax.persistence.spi.PersistenceUnitTransactionType getTransactionType()
getTransactionType in interface javax.persistence.spi.PersistenceUnitInfopublic DataSource getJtaDataSource()
getJtaDataSource in interface javax.persistence.spi.PersistenceUnitInfopublic DataSource getNonJtaDataSource()
getNonJtaDataSource in interface javax.persistence.spi.PersistenceUnitInfopublic List<String> getMappingFileNames()
getMappingFileNames in interface javax.persistence.spi.PersistenceUnitInfopublic List<URL> getJarFileUrls()
getJarFileUrls in interface javax.persistence.spi.PersistenceUnitInfopublic URL getPersistenceUnitRootUrl()
getPersistenceUnitRootUrl in interface javax.persistence.spi.PersistenceUnitInfopublic List<String> getManagedClassNames()
getManagedClassNames in interface javax.persistence.spi.PersistenceUnitInfopublic boolean excludeUnlistedClasses()
excludeUnlistedClasses in interface javax.persistence.spi.PersistenceUnitInfopublic javax.persistence.SharedCacheMode getSharedCacheMode()
getSharedCacheMode in interface javax.persistence.spi.PersistenceUnitInfopublic javax.persistence.ValidationMode getValidationMode()
getValidationMode in interface javax.persistence.spi.PersistenceUnitInfopublic Properties getProperties()
getProperties in interface javax.persistence.spi.PersistenceUnitInfopublic void setProperties(Properties properties)
properties - the properties to setpublic String getPersistenceXMLSchemaVersion()
getPersistenceXMLSchemaVersion in interface javax.persistence.spi.PersistenceUnitInfopublic ClassLoader getClassLoader()
getClassLoader in interface javax.persistence.spi.PersistenceUnitInfopublic void addTransformer(javax.persistence.spi.ClassTransformer paramClassTransformer)
addTransformer in interface javax.persistence.spi.PersistenceUnitInfopublic ClassLoader getNewTempClassLoader()
getNewTempClassLoader in interface javax.persistence.spi.PersistenceUnitInfopublic String getProperty(String prop)
prop - the propprivate void addJarFileUrl(String jarFile)
jarFile - jar file pathpublic String getClient()
private boolean isBatch()
public int getBatchSize()
public URL getMappedUrl()
Copyright © 2015. All Rights Reserved.