|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersistenceUnit<T>
This interface defines the contract for the persistence-unit
xsd type
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getClazzList()
Returns all class elements |
java.lang.String |
getDescription()
Returns the description element |
java.util.List<java.lang.String> |
getJarFileList()
Returns all jar-file elements |
java.lang.String |
getJtaDataSource()
Returns the jta-data-source element |
java.util.List<java.lang.String> |
getMappingFileList()
Returns all mapping-file elements |
java.lang.String |
getName()
Returns the name element |
java.lang.String |
getNonJtaDataSource()
Returns the non-jta-data-source element |
java.lang.String |
getProvider()
Returns the provider element |
PersistenceUnitCachingType |
getSharedCacheMode()
Returns the shared-cache-mode element |
java.lang.String |
getSharedCacheModeAsString()
Returns the shared-cache-mode element |
PersistenceUnitTransactionType |
getTransactionType()
Returns the transaction-type element |
java.lang.String |
getTransactionTypeAsString()
Returns the transaction-type element |
PersistenceUnitValidationModeType |
getValidationMode()
Returns the validation-mode element |
java.lang.String |
getValidationModeAsString()
Returns the validation-mode element |
java.lang.Boolean |
isExcludeUnlistedClasses()
Returns the exclude-unlisted-classes element |
Properties<PersistenceUnit<T>> |
properties()
If not already created, a new properties element will be created and returned. |
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> |
setClazz(java.lang.String clazz)
Creates a new class element |
PersistenceUnit<T> |
setClazzList(java.lang.String... values)
Creates for all String objects representing class elements,
a new class element |
PersistenceUnit<T> |
setDescription(java.lang.String description)
If not already created, a new description element with the given value will be created. |
PersistenceUnit<T> |
setExcludeUnlistedClasses(java.lang.Boolean excludeUnlistedClasses)
If not already created, a new exclude-unlisted-classes element with the given value will be created. |
PersistenceUnit<T> |
setJarFile(java.lang.String jarFile)
Creates a new jar-file element |
PersistenceUnit<T> |
setJarFileList(java.lang.String... values)
Creates for all String objects representing jar-file elements,
a new jar-file element |
PersistenceUnit<T> |
setJtaDataSource(java.lang.String jtaDataSource)
If not already created, a new jta-data-source element with the given value will be created. |
PersistenceUnit<T> |
setMappingFile(java.lang.String mappingFile)
Creates a new mapping-file element |
PersistenceUnit<T> |
setMappingFileList(java.lang.String... values)
Creates for all String objects representing mapping-file elements,
a new mapping-file element |
PersistenceUnit<T> |
setName(java.lang.String name)
Sets the name attribute |
PersistenceUnit<T> |
setNonJtaDataSource(java.lang.String nonJtaDataSource)
If not already created, a new non-jta-data-source element with the given value will be created. |
PersistenceUnit<T> |
setProvider(java.lang.String provider)
If not already created, a new provider element with the given value will be created. |
PersistenceUnit<T> |
setSharedCacheMode(PersistenceUnitCachingType sharedCacheMode)
If not already created, a new shared-cache-mode element with the given value will be created. |
PersistenceUnit<T> |
setSharedCacheMode(java.lang.String sharedCacheMode)
If not already created, a new shared-cache-mode element with the given value will be created. |
PersistenceUnit<T> |
setTransactionType(PersistenceUnitTransactionType transactionType)
Sets the transaction-type attribute |
PersistenceUnit<T> |
setTransactionType(java.lang.String transactionType)
Sets the transaction-type attribute |
PersistenceUnit<T> |
setValidationMode(PersistenceUnitValidationModeType validationMode)
If not already created, a new validation-mode element with the given value will be created. |
PersistenceUnit<T> |
setValidationMode(java.lang.String validationMode)
If not already created, a new validation-mode element with the given value will be created. |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child |
---|
up |
Method Detail |
---|
PersistenceUnit<T> setDescription(java.lang.String description)
description
element with the given value will be created.
Otherwise, the existing description
element will be updated with the given value.
PersistenceUnit
PersistenceUnit<T> removeDescription()
description
element
PersistenceUnit
java.lang.String getDescription()
description
element
description
PersistenceUnit<T> setProvider(java.lang.String provider)
provider
element with the given value will be created.
Otherwise, the existing provider
element will be updated with the given value.
PersistenceUnit
PersistenceUnit<T> removeProvider()
provider
element
PersistenceUnit
java.lang.String getProvider()
provider
element
provider
PersistenceUnit<T> setJtaDataSource(java.lang.String jtaDataSource)
jta-data-source
element with the given value will be created.
Otherwise, the existing jta-data-source
element will be updated with the given value.
PersistenceUnit
PersistenceUnit<T> removeJtaDataSource()
jta-data-source
element
PersistenceUnit
java.lang.String getJtaDataSource()
jta-data-source
element
jta-data-source
PersistenceUnit<T> setNonJtaDataSource(java.lang.String nonJtaDataSource)
non-jta-data-source
element with the given value will be created.
Otherwise, the existing non-jta-data-source
element will be updated with the given value.
PersistenceUnit
PersistenceUnit<T> removeNonJtaDataSource()
non-jta-data-source
element
PersistenceUnit
java.lang.String getNonJtaDataSource()
non-jta-data-source
element
non-jta-data-source
PersistenceUnit<T> setMappingFile(java.lang.String mappingFile)
mapping-file
element
PersistenceUnit
PersistenceUnit<T> setMappingFileList(java.lang.String... values)
mapping-file
elements,
a new mapping-file
element
list
- of mapping-file
objects
PersistenceUnit
PersistenceUnit<T> removeAllMappingFile()
mapping-file
element
PersistenceUnit
java.util.List<java.lang.String> getMappingFileList()
mapping-file
elements
mapping-file
PersistenceUnit<T> setJarFile(java.lang.String jarFile)
jar-file
element
PersistenceUnit
PersistenceUnit<T> setJarFileList(java.lang.String... values)
jar-file
elements,
a new jar-file
element
list
- of jar-file
objects
PersistenceUnit
PersistenceUnit<T> removeAllJarFile()
jar-file
element
PersistenceUnit
java.util.List<java.lang.String> getJarFileList()
jar-file
elements
jar-file
PersistenceUnit<T> setClazz(java.lang.String clazz)
class
element
PersistenceUnit
PersistenceUnit<T> setClazzList(java.lang.String... values)
class
elements,
a new class
element
list
- of class
objects
PersistenceUnit
PersistenceUnit<T> removeAllClazz()
class
element
PersistenceUnit
java.util.List<java.lang.String> getClazzList()
class
elements
class
PersistenceUnit<T> setExcludeUnlistedClasses(java.lang.Boolean excludeUnlistedClasses)
exclude-unlisted-classes
element with the given value will be created.
Otherwise, the existing exclude-unlisted-classes
element will be updated with the given value.
PersistenceUnit
PersistenceUnit<T> removeExcludeUnlistedClasses()
exclude-unlisted-classes
element
PersistenceUnit
java.lang.Boolean isExcludeUnlistedClasses()
exclude-unlisted-classes
element
exclude-unlisted-classes
PersistenceUnit<T> setSharedCacheMode(PersistenceUnitCachingType sharedCacheMode)
shared-cache-mode
element with the given value will be created.
Otherwise, the existing shared-cache-mode
element will be updated with the given value.
PersistenceUnit
PersistenceUnit<T> setSharedCacheMode(java.lang.String sharedCacheMode)
shared-cache-mode
element with the given value will be created.
Otherwise, the existing shared-cache-mode
element will be updated with the given value.
PersistenceUnit
PersistenceUnitCachingType getSharedCacheMode()
shared-cache-mode
element
shared-cache-mode
java.lang.String getSharedCacheModeAsString()
shared-cache-mode
element
shared-cache-mode
PersistenceUnit<T> setValidationMode(PersistenceUnitValidationModeType validationMode)
validation-mode
element with the given value will be created.
Otherwise, the existing validation-mode
element will be updated with the given value.
PersistenceUnit
PersistenceUnit<T> setValidationMode(java.lang.String validationMode)
validation-mode
element with the given value will be created.
Otherwise, the existing validation-mode
element will be updated with the given value.
PersistenceUnit
PersistenceUnitValidationModeType getValidationMode()
validation-mode
element
validation-mode
java.lang.String getValidationModeAsString()
validation-mode
element
validation-mode
PersistenceUnit<T> removeProperties()
properties
element
PersistenceUnit
Properties<PersistenceUnit<T>> properties()
properties
element will be created and returned.
Otherwise, the existing properties
element will be returned.
properties
PersistenceUnit<T> setName(java.lang.String name)
name
attribute
name
- the value for the attribute name
PersistenceUnit
PersistenceUnit<T> removeName()
name
attribute
PersistenceUnit
java.lang.String getName()
name
element
name
PersistenceUnit<T> setTransactionType(PersistenceUnitTransactionType transactionType)
transaction-type
attribute
transactionType
- the value for the attribute transaction-type
PersistenceUnit
PersistenceUnit<T> setTransactionType(java.lang.String transactionType)
transaction-type
attribute
transactionType
- the value for the attribute transaction-type
PersistenceUnit
PersistenceUnit<T> removeTransactionType()
transaction-type
attribute
PersistenceUnit
PersistenceUnitTransactionType getTransactionType()
transaction-type
element
transaction-type
java.lang.String getTransactionTypeAsString()
transaction-type
element
transaction-type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |