|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.descriptor.impl.persistence20.PersistenceUnitImpl<T>
public class PersistenceUnitImpl<T>
This class implements the persistence-unit xsd type
| Constructor Summary | |
|---|---|
PersistenceUnitImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
|
|
PersistenceUnitImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
|
|
| 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. |
T |
up()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistenceUnitImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
public PersistenceUnitImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
| Method Detail |
|---|
public T up()
up in interface org.jboss.shrinkwrap.descriptor.api.Child<T>public 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.
setDescription in interface PersistenceUnit<T>PersistenceUnitpublic PersistenceUnit<T> removeDescription()
description element
removeDescription in interface PersistenceUnit<T>PersistenceUnitpublic java.lang.String getDescription()
description element
getDescription in interface PersistenceUnit<T>descriptionpublic 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.
setProvider in interface PersistenceUnit<T>PersistenceUnitpublic PersistenceUnit<T> removeProvider()
provider element
removeProvider in interface PersistenceUnit<T>PersistenceUnitpublic java.lang.String getProvider()
provider element
getProvider in interface PersistenceUnit<T>providerpublic 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.
setJtaDataSource in interface PersistenceUnit<T>PersistenceUnitpublic PersistenceUnit<T> removeJtaDataSource()
jta-data-source element
removeJtaDataSource in interface PersistenceUnit<T>PersistenceUnitpublic java.lang.String getJtaDataSource()
jta-data-source element
getJtaDataSource in interface PersistenceUnit<T>jta-data-sourcepublic 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.
setNonJtaDataSource in interface PersistenceUnit<T>PersistenceUnitpublic PersistenceUnit<T> removeNonJtaDataSource()
non-jta-data-source element
removeNonJtaDataSource in interface PersistenceUnit<T>PersistenceUnitpublic java.lang.String getNonJtaDataSource()
non-jta-data-source element
getNonJtaDataSource in interface PersistenceUnit<T>non-jta-data-sourcepublic PersistenceUnit<T> setMappingFile(java.lang.String mappingFile)
mapping-file element
setMappingFile in interface PersistenceUnit<T>PersistenceUnitpublic PersistenceUnit<T> setMappingFileList(java.lang.String... values)
mapping-file elements,
a new mapping-file element
setMappingFileList in interface PersistenceUnit<T>list - of mapping-file objects
PersistenceUnitpublic PersistenceUnit<T> removeAllMappingFile()
mapping-file element
removeAllMappingFile in interface PersistenceUnit<T>PersistenceUnitpublic java.util.List<java.lang.String> getMappingFileList()
mapping-file elements
getMappingFileList in interface PersistenceUnit<T>mapping-filepublic PersistenceUnit<T> setJarFile(java.lang.String jarFile)
jar-file element
setJarFile in interface PersistenceUnit<T>PersistenceUnitpublic PersistenceUnit<T> setJarFileList(java.lang.String... values)
jar-file elements,
a new jar-file element
setJarFileList in interface PersistenceUnit<T>list - of jar-file objects
PersistenceUnitpublic PersistenceUnit<T> removeAllJarFile()
jar-file element
removeAllJarFile in interface PersistenceUnit<T>PersistenceUnitpublic java.util.List<java.lang.String> getJarFileList()
jar-file elements
getJarFileList in interface PersistenceUnit<T>jar-filepublic PersistenceUnit<T> setClazz(java.lang.String clazz)
class element
setClazz in interface PersistenceUnit<T>PersistenceUnitpublic PersistenceUnit<T> setClazzList(java.lang.String... values)
class elements,
a new class element
setClazzList in interface PersistenceUnit<T>list - of class objects
PersistenceUnitpublic PersistenceUnit<T> removeAllClazz()
class element
removeAllClazz in interface PersistenceUnit<T>PersistenceUnitpublic java.util.List<java.lang.String> getClazzList()
class elements
getClazzList in interface PersistenceUnit<T>classpublic 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.
setExcludeUnlistedClasses in interface PersistenceUnit<T>PersistenceUnitpublic PersistenceUnit<T> removeExcludeUnlistedClasses()
exclude-unlisted-classes element
removeExcludeUnlistedClasses in interface PersistenceUnit<T>PersistenceUnitpublic java.lang.Boolean isExcludeUnlistedClasses()
exclude-unlisted-classes element
isExcludeUnlistedClasses in interface PersistenceUnit<T>exclude-unlisted-classespublic 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.
setSharedCacheMode in interface PersistenceUnit<T>PersistenceUnitpublic 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.
setSharedCacheMode in interface PersistenceUnit<T>PersistenceUnitpublic PersistenceUnitCachingType getSharedCacheMode()
shared-cache-mode element
getSharedCacheMode in interface PersistenceUnit<T>shared-cache-modepublic java.lang.String getSharedCacheModeAsString()
shared-cache-mode element
getSharedCacheModeAsString in interface PersistenceUnit<T>shared-cache-modepublic 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.
setValidationMode in interface PersistenceUnit<T>PersistenceUnitpublic 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.
setValidationMode in interface PersistenceUnit<T>PersistenceUnitpublic PersistenceUnitValidationModeType getValidationMode()
validation-mode element
getValidationMode in interface PersistenceUnit<T>validation-modepublic java.lang.String getValidationModeAsString()
validation-mode element
getValidationModeAsString in interface PersistenceUnit<T>validation-modepublic PersistenceUnit<T> removeProperties()
properties element
removeProperties in interface PersistenceUnit<T>PersistenceUnitpublic Properties<PersistenceUnit<T>> properties()
properties element will be created and returned.
Otherwise, the existing properties element will be returned.
properties in interface PersistenceUnit<T>propertiespublic PersistenceUnit<T> setName(java.lang.String name)
name attribute
setName in interface PersistenceUnit<T>name - the value for the attribute name
PersistenceUnitpublic PersistenceUnit<T> removeName()
name attribute
removeName in interface PersistenceUnit<T>PersistenceUnitpublic java.lang.String getName()
name element
getName in interface PersistenceUnit<T>namepublic PersistenceUnit<T> setTransactionType(PersistenceUnitTransactionType transactionType)
transaction-type attribute
setTransactionType in interface PersistenceUnit<T>transactionType - the value for the attribute transaction-type
PersistenceUnitpublic PersistenceUnit<T> setTransactionType(java.lang.String transactionType)
transaction-type attribute
setTransactionType in interface PersistenceUnit<T>transactionType - the value for the attribute transaction-type
PersistenceUnitpublic PersistenceUnit<T> removeTransactionType()
transaction-type attribute
removeTransactionType in interface PersistenceUnit<T>PersistenceUnitpublic PersistenceUnitTransactionType getTransactionType()
transaction-type element
getTransactionType in interface PersistenceUnit<T>transaction-typepublic java.lang.String getTransactionTypeAsString()
transaction-type element
getTransactionTypeAsString in interface PersistenceUnit<T>transaction-type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||