Package | Description |
---|---|
org.jboss.shrinkwrap.descriptor.api.persistence21 |
Provides the interfaces and enumeration types as defined in the schema
|
Modifier and Type | Method and Description |
---|---|
PersistenceUnit<T> |
PersistenceUnit.clazz(String... values)
Creates for all String objects representing
class elements,
a new class element |
PersistenceUnit<PersistenceDescriptor> |
PersistenceDescriptor.createPersistenceUnit()
Creates a new
persistence-unit element |
PersistenceUnit<T> |
PersistenceUnit.description(String description)
Sets the
description element |
PersistenceUnit<T> |
PersistenceUnit.excludeUnlistedClasses(Boolean excludeUnlistedClasses)
Sets the
exclude-unlisted-classes element |
PersistenceUnit<PersistenceDescriptor> |
PersistenceDescriptor.getOrCreatePersistenceUnit()
If not already created, a new
persistence-unit element will be created and returned. |
PersistenceUnit<T> |
PersistenceUnit.jarFile(String... values)
Creates for all String objects representing
jar-file elements,
a new jar-file element |
PersistenceUnit<T> |
PersistenceUnit.jtaDataSource(String jtaDataSource)
Sets the
jta-data-source element |
PersistenceUnit<T> |
PersistenceUnit.mappingFile(String... values)
Creates for all String objects representing
mapping-file elements,
a new mapping-file element |
PersistenceUnit<T> |
PersistenceUnit.name(String name)
Sets the
name attribute |
PersistenceUnit<T> |
PersistenceUnit.nonJtaDataSource(String nonJtaDataSource)
Sets the
non-jta-data-source element |
PersistenceUnit<T> |
PersistenceUnit.provider(String provider)
Sets the
provider element |
PersistenceUnit<T> |
PersistenceUnit.removeAllClazz()
Removes the
class element |
PersistenceUnit<T> |
PersistenceUnit.removeAllJarFile()
Removes the
jar-file element |
PersistenceUnit<T> |
PersistenceUnit.removeAllMappingFile()
Removes the
mapping-file element |
PersistenceUnit<T> |
PersistenceUnit.removeDescription()
Removes the
description element |
PersistenceUnit<T> |
PersistenceUnit.removeExcludeUnlistedClasses()
Removes the
exclude-unlisted-classes element |
PersistenceUnit<T> |
PersistenceUnit.removeJtaDataSource()
Removes the
jta-data-source element |
PersistenceUnit<T> |
PersistenceUnit.removeName()
Removes the
name attribute |
PersistenceUnit<T> |
PersistenceUnit.removeNonJtaDataSource()
Removes the
non-jta-data-source element |
PersistenceUnit<T> |
PersistenceUnit.removeProperties()
Removes the
properties element |
PersistenceUnit<T> |
PersistenceUnit.removeProvider()
Removes the
provider element |
PersistenceUnit<T> |
PersistenceUnit.removeSharedCacheMode()
Removes the
shared-cache-mode attribute |
PersistenceUnit<T> |
PersistenceUnit.removeTransactionType()
Removes the
transaction-type attribute |
PersistenceUnit<T> |
PersistenceUnit.removeValidationMode()
Removes the
validation-mode attribute |
PersistenceUnit<T> |
PersistenceUnit.sharedCacheMode(PersistenceUnitCachingType sharedCacheMode)
Sets the
shared-cache-mode element |
PersistenceUnit<T> |
PersistenceUnit.sharedCacheMode(String sharedCacheMode)
Sets the
shared-cache-mode element |
PersistenceUnit<T> |
PersistenceUnit.transactionType(PersistenceUnitTransactionType transactionType)
Sets the
transaction-type attribute |
PersistenceUnit<T> |
PersistenceUnit.transactionType(String transactionType)
Sets the
transaction-type attribute |
PersistenceUnit<T> |
PersistenceUnit.validationMode(PersistenceUnitValidationModeType validationMode)
Sets the
validation-mode element |
PersistenceUnit<T> |
PersistenceUnit.validationMode(String validationMode)
Sets the
validation-mode element |
Modifier and Type | Method and Description |
---|---|
List<PersistenceUnit<PersistenceDescriptor>> |
PersistenceDescriptor.getAllPersistenceUnit()
Returns all
persistence-unit elements |
Properties<PersistenceUnit<T>> |
PersistenceUnit.getOrCreateProperties()
If not already created, a new
properties element with the given value will be created. |
Copyright © 2020 JBoss by Red Hat. All rights reserved.