|
||||||||||
| 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.
PersistenceUnitPersistenceUnit<T> removeDescription()
description element
PersistenceUnitjava.lang.String getDescription()
description element
descriptionPersistenceUnit<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.
PersistenceUnitPersistenceUnit<T> removeProvider()
provider element
PersistenceUnitjava.lang.String getProvider()
provider element
providerPersistenceUnit<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.
PersistenceUnitPersistenceUnit<T> removeJtaDataSource()
jta-data-source element
PersistenceUnitjava.lang.String getJtaDataSource()
jta-data-source element
jta-data-sourcePersistenceUnit<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.
PersistenceUnitPersistenceUnit<T> removeNonJtaDataSource()
non-jta-data-source element
PersistenceUnitjava.lang.String getNonJtaDataSource()
non-jta-data-source element
non-jta-data-sourcePersistenceUnit<T> setMappingFile(java.lang.String mappingFile)
mapping-file element
PersistenceUnitPersistenceUnit<T> setMappingFileList(java.lang.String... values)
mapping-file elements,
a new mapping-file element
list - of mapping-file objects
PersistenceUnitPersistenceUnit<T> removeAllMappingFile()
mapping-file element
PersistenceUnitjava.util.List<java.lang.String> getMappingFileList()
mapping-file elements
mapping-filePersistenceUnit<T> setJarFile(java.lang.String jarFile)
jar-file element
PersistenceUnitPersistenceUnit<T> setJarFileList(java.lang.String... values)
jar-file elements,
a new jar-file element
list - of jar-file objects
PersistenceUnitPersistenceUnit<T> removeAllJarFile()
jar-file element
PersistenceUnitjava.util.List<java.lang.String> getJarFileList()
jar-file elements
jar-filePersistenceUnit<T> setClazz(java.lang.String clazz)
class element
PersistenceUnitPersistenceUnit<T> setClazzList(java.lang.String... values)
class elements,
a new class element
list - of class objects
PersistenceUnitPersistenceUnit<T> removeAllClazz()
class element
PersistenceUnitjava.util.List<java.lang.String> getClazzList()
class elements
classPersistenceUnit<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.
PersistenceUnitPersistenceUnit<T> removeExcludeUnlistedClasses()
exclude-unlisted-classes element
PersistenceUnitjava.lang.Boolean isExcludeUnlistedClasses()
exclude-unlisted-classes element
exclude-unlisted-classesPersistenceUnit<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.
PersistenceUnitPersistenceUnit<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.
PersistenceUnitPersistenceUnitCachingType getSharedCacheMode()
shared-cache-mode element
shared-cache-modejava.lang.String getSharedCacheModeAsString()
shared-cache-mode element
shared-cache-modePersistenceUnit<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.
PersistenceUnitPersistenceUnit<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.
PersistenceUnitPersistenceUnitValidationModeType getValidationMode()
validation-mode element
validation-modejava.lang.String getValidationModeAsString()
validation-mode element
validation-modePersistenceUnit<T> removeProperties()
properties element
PersistenceUnitProperties<PersistenceUnit<T>> properties()
properties element will be created and returned.
Otherwise, the existing properties element will be returned.
propertiesPersistenceUnit<T> setName(java.lang.String name)
name attribute
name - the value for the attribute name
PersistenceUnitPersistenceUnit<T> removeName()
name attribute
PersistenceUnitjava.lang.String getName()
name element
namePersistenceUnit<T> setTransactionType(PersistenceUnitTransactionType transactionType)
transaction-type attribute
transactionType - the value for the attribute transaction-type
PersistenceUnitPersistenceUnit<T> setTransactionType(java.lang.String transactionType)
transaction-type attribute
transactionType - the value for the attribute transaction-type
PersistenceUnitPersistenceUnit<T> removeTransactionType()
transaction-type attribute
PersistenceUnitPersistenceUnitTransactionType getTransactionType()
transaction-type element
transaction-typejava.lang.String getTransactionTypeAsString()
transaction-type element
transaction-type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||