
public interface PersistenceUnit<T> extends Child<T>, PersistencePersistenceUnitCommType<T,PersistenceUnit<T>,Properties<PersistenceUnit<T>>>
persistence-unit xsd type| Modifier 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 |
PersistenceUnitTransactionType |
getTransactionType()
Returns the
transaction-type attribute |
String |
getTransactionTypeAsString()
Returns the
transaction-type attribute |
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> |
removeTransactionType()
Removes the
transaction-type attribute |
PersistenceUnit<T> |
transactionType(PersistenceUnitTransactionType transactionType)
Sets the
transaction-type attribute |
PersistenceUnit<T> |
transactionType(String transactionType)
Sets the
transaction-type attribute |
PersistenceUnit<T> description(String description)
description elementdescription - the value for the element descriptionPersistenceUnitString getDescription()
description elementdescriptionPersistenceUnit<T> removeDescription()
description elementPersistenceUnitPersistenceUnit<T> provider(String provider)
provider elementprovider - the value for the element providerPersistenceUnitString getProvider()
provider elementproviderPersistenceUnit<T> removeProvider()
provider elementPersistenceUnitPersistenceUnit<T> jtaDataSource(String jtaDataSource)
jta-data-source elementjtaDataSource - the value for the element jta-data-sourcePersistenceUnitString getJtaDataSource()
jta-data-source elementjta-data-sourcePersistenceUnit<T> removeJtaDataSource()
jta-data-source elementPersistenceUnitPersistenceUnit<T> nonJtaDataSource(String nonJtaDataSource)
non-jta-data-source elementnonJtaDataSource - the value for the element non-jta-data-sourcePersistenceUnitString getNonJtaDataSource()
non-jta-data-source elementnon-jta-data-sourcePersistenceUnit<T> removeNonJtaDataSource()
non-jta-data-source elementPersistenceUnitPersistenceUnit<T> mappingFile(String... values)
mapping-file elements,
a new mapping-file elementvalues - list of mapping-file objectsPersistenceUnitList<String> getAllMappingFile()
mapping-file elementsmapping-filePersistenceUnit<T> removeAllMappingFile()
mapping-file elementPersistenceUnitPersistenceUnit<T> jarFile(String... values)
jar-file elements,
a new jar-file elementvalues - list of jar-file objectsPersistenceUnitPersistenceUnit<T> removeAllJarFile()
jar-file elementPersistenceUnitPersistenceUnit<T> clazz(String... values)
class elements,
a new class elementvalues - list of class objectsPersistenceUnitPersistenceUnit<T> removeAllClazz()
class elementPersistenceUnitPersistenceUnit<T> excludeUnlistedClasses(Boolean excludeUnlistedClasses)
exclude-unlisted-classes elementexcludeUnlistedClasses - the value for the element exclude-unlisted-classesPersistenceUnitBoolean isExcludeUnlistedClasses()
exclude-unlisted-classes elementexclude-unlisted-classesPersistenceUnit<T> removeExcludeUnlistedClasses()
exclude-unlisted-classes elementPersistenceUnitProperties<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 elementPersistenceUnitPersistenceUnit<T> name(String name)
name attributename - the value for the attribute namePersistenceUnitString getName()
name attributenamePersistenceUnit<T> removeName()
name attributePersistenceUnitPersistenceUnit<T> transactionType(PersistenceUnitTransactionType transactionType)
transaction-type attributetransactionType - the value for the attribute transaction-typePersistenceUnitPersistenceUnit<T> transactionType(String transactionType)
transaction-type attributetransactionType - the value for the attribute transaction-typePersistenceUnitPersistenceUnitTransactionType getTransactionType()
transaction-type attributetransaction-typeString getTransactionTypeAsString()
transaction-type attributetransaction-typePersistenceUnit<T> removeTransactionType()
transaction-type attributePersistenceUnitCopyright © 2021 JBoss by Red Hat. All rights reserved.