public interface PersistenceUnit<T> extends Child<T>
persistence-unit
xsd typeModifier and Type | Method and Description |
---|---|
PersistenceUnit<T> |
clazz(String... values)
Creates for all String objects representing
class elements,
a new class element |
PersistenceUnit<T> |
description(String description)
Sets the
description element |
PersistenceUnit<T> |
excludeUnlistedClasses(Boolean excludeUnlistedClasses)
Sets the
exclude-unlisted-classes element |
List<String> |
getAllClazz()
Returns all
class elements |
List<String> |
getAllJarFile()
Returns all
jar-file elements |
List<String> |
getAllMappingFile()
Returns all
mapping-file elements |
String |
getDescription()
Returns the
description element |
String |
getJtaDataSource()
Returns the
jta-data-source element |
String |
getName()
Returns the
name attribute |
String |
getNonJtaDataSource()
Returns the
non-jta-data-source element |
Properties<PersistenceUnit<T>> |
getOrCreateProperties()
If not already created, a new
properties element with the given value will be created. |
String |
getProvider()
Returns the
provider element |
PersistenceUnitCachingType |
getSharedCacheMode()
Returns the
shared-cache-mode element |
String |
getSharedCacheModeAsString()
Returns the
shared-cache-mode element |
PersistenceUnitTransactionType |
getTransactionType()
Returns the
transaction-type attribute |
String |
getTransactionTypeAsString()
Returns the
transaction-type attribute |
PersistenceUnitValidationModeType |
getValidationMode()
Returns the
validation-mode element |
String |
getValidationModeAsString()
Returns the
validation-mode element |
Boolean |
isExcludeUnlistedClasses()
Returns the
exclude-unlisted-classes element |
PersistenceUnit<T> |
jarFile(String... values)
Creates for all String objects representing
jar-file elements,
a new jar-file element |
PersistenceUnit<T> |
jtaDataSource(String jtaDataSource)
Sets the
jta-data-source element |
PersistenceUnit<T> |
mappingFile(String... values)
Creates for all String objects representing
mapping-file elements,
a new mapping-file element |
PersistenceUnit<T> |
name(String name)
Sets the
name attribute |
PersistenceUnit<T> |
nonJtaDataSource(String nonJtaDataSource)
Sets the
non-jta-data-source element |
PersistenceUnit<T> |
provider(String provider)
Sets the
provider element |
PersistenceUnit<T> |
removeAllClazz()
Removes the
class element |
PersistenceUnit<T> |
removeAllJarFile()
Removes the
jar-file element |
PersistenceUnit<T> |
removeAllMappingFile()
Removes the
mapping-file element |
PersistenceUnit<T> |
removeDescription()
Removes the
description element |
PersistenceUnit<T> |
removeExcludeUnlistedClasses()
Removes the
exclude-unlisted-classes element |
PersistenceUnit<T> |
removeJtaDataSource()
Removes the
jta-data-source element |
PersistenceUnit<T> |
removeName()
Removes the
name attribute |
PersistenceUnit<T> |
removeNonJtaDataSource()
Removes the
non-jta-data-source element |
PersistenceUnit<T> |
removeProperties()
Removes the
properties element |
PersistenceUnit<T> |
removeProvider()
Removes the
provider element |
PersistenceUnit<T> |
removeSharedCacheMode()
Removes the
shared-cache-mode attribute |
PersistenceUnit<T> |
removeTransactionType()
Removes the
transaction-type attribute |
PersistenceUnit<T> |
removeValidationMode()
Removes the
validation-mode attribute |
PersistenceUnit<T> |
sharedCacheMode(PersistenceUnitCachingType sharedCacheMode)
Sets the
shared-cache-mode element |
PersistenceUnit<T> |
sharedCacheMode(String sharedCacheMode)
Sets the
shared-cache-mode element |
PersistenceUnit<T> |
transactionType(PersistenceUnitTransactionType transactionType)
Sets the
transaction-type attribute |
PersistenceUnit<T> |
transactionType(String transactionType)
Sets the
transaction-type attribute |
PersistenceUnit<T> |
validationMode(PersistenceUnitValidationModeType validationMode)
Sets the
validation-mode element |
PersistenceUnit<T> |
validationMode(String validationMode)
Sets the
validation-mode element |
PersistenceUnit<T> description(String description)
description
elementdescription
- the value for the element description
PersistenceUnit
String getDescription()
description
elementdescription
PersistenceUnit<T> removeDescription()
description
elementPersistenceUnit
PersistenceUnit<T> provider(String provider)
provider
elementprovider
- the value for the element provider
PersistenceUnit
String getProvider()
provider
elementprovider
PersistenceUnit<T> removeProvider()
provider
elementPersistenceUnit
PersistenceUnit<T> jtaDataSource(String jtaDataSource)
jta-data-source
elementjtaDataSource
- the value for the element jta-data-source
PersistenceUnit
String getJtaDataSource()
jta-data-source
elementjta-data-source
PersistenceUnit<T> removeJtaDataSource()
jta-data-source
elementPersistenceUnit
PersistenceUnit<T> nonJtaDataSource(String nonJtaDataSource)
non-jta-data-source
elementnonJtaDataSource
- the value for the element non-jta-data-source
PersistenceUnit
String getNonJtaDataSource()
non-jta-data-source
elementnon-jta-data-source
PersistenceUnit<T> removeNonJtaDataSource()
non-jta-data-source
elementPersistenceUnit
PersistenceUnit<T> mappingFile(String... values)
mapping-file
elements,
a new mapping-file
elementvalues
- list of mapping-file
objectsPersistenceUnit
List<String> getAllMappingFile()
mapping-file
elementsmapping-file
PersistenceUnit<T> removeAllMappingFile()
mapping-file
elementPersistenceUnit
PersistenceUnit<T> jarFile(String... values)
jar-file
elements,
a new jar-file
elementvalues
- list of jar-file
objectsPersistenceUnit
PersistenceUnit<T> removeAllJarFile()
jar-file
elementPersistenceUnit
PersistenceUnit<T> clazz(String... values)
class
elements,
a new class
elementvalues
- list of class
objectsPersistenceUnit
PersistenceUnit<T> removeAllClazz()
class
elementPersistenceUnit
PersistenceUnit<T> excludeUnlistedClasses(Boolean excludeUnlistedClasses)
exclude-unlisted-classes
elementexcludeUnlistedClasses
- the value for the element exclude-unlisted-classes
PersistenceUnit
Boolean isExcludeUnlistedClasses()
exclude-unlisted-classes
elementexclude-unlisted-classes
PersistenceUnit<T> removeExcludeUnlistedClasses()
exclude-unlisted-classes
elementPersistenceUnit
PersistenceUnit<T> sharedCacheMode(PersistenceUnitCachingType sharedCacheMode)
shared-cache-mode
elementsharedCacheMode
- the value for the element shared-cache-mode
PersistenceUnit
PersistenceUnit<T> sharedCacheMode(String sharedCacheMode)
shared-cache-mode
elementsharedCacheMode
- the value for the element shared-cache-mode
PersistenceUnit
PersistenceUnitCachingType getSharedCacheMode()
shared-cache-mode
elementshared-cache-mode
String getSharedCacheModeAsString()
shared-cache-mode
elementshared-cache-mode
PersistenceUnit<T> removeSharedCacheMode()
shared-cache-mode
attributePersistenceUnit
PersistenceUnit<T> validationMode(PersistenceUnitValidationModeType validationMode)
validation-mode
elementvalidationMode
- the value for the element validation-mode
PersistenceUnit
PersistenceUnit<T> validationMode(String validationMode)
validation-mode
elementvalidationMode
- the value for the element validation-mode
PersistenceUnit
PersistenceUnitValidationModeType getValidationMode()
validation-mode
elementvalidation-mode
String getValidationModeAsString()
validation-mode
elementvalidation-mode
PersistenceUnit<T> removeValidationMode()
validation-mode
attributePersistenceUnit
Properties<PersistenceUnit<T>> getOrCreateProperties()
properties
element with the given value will be created.
Otherwise, the existing properties
element will be returned.Properties>
PersistenceUnit<T> removeProperties()
properties
elementPersistenceUnit
PersistenceUnit<T> name(String name)
name
attributename
- the value for the attribute name
PersistenceUnit
String getName()
name
attributename
PersistenceUnit<T> removeName()
name
attributePersistenceUnit
PersistenceUnit<T> transactionType(PersistenceUnitTransactionType transactionType)
transaction-type
attributetransactionType
- the value for the attribute transaction-type
PersistenceUnit
PersistenceUnit<T> transactionType(String transactionType)
transaction-type
attributetransactionType
- the value for the attribute transaction-type
PersistenceUnit
PersistenceUnitTransactionType getTransactionType()
transaction-type
attributetransaction-type
String getTransactionTypeAsString()
transaction-type
attributetransaction-type
PersistenceUnit<T> removeTransactionType()
transaction-type
attributePersistenceUnit
Copyright © 2017 JBoss by Red Hat. All rights reserved.