|
ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3 | |||||||||
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 | |
---|---|
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 |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child |
---|
up |
Method Detail |
---|
PersistenceUnit<T> description(String description)
description
element
description
- the value for the element description
PersistenceUnit
String getDescription()
description
element
description
PersistenceUnit<T> removeDescription()
description
element
PersistenceUnit
PersistenceUnit<T> provider(String provider)
provider
element
provider
- the value for the element provider
PersistenceUnit
String getProvider()
provider
element
provider
PersistenceUnit<T> removeProvider()
provider
element
PersistenceUnit
PersistenceUnit<T> jtaDataSource(String jtaDataSource)
jta-data-source
element
jtaDataSource
- the value for the element jta-data-source
PersistenceUnit
String getJtaDataSource()
jta-data-source
element
jta-data-source
PersistenceUnit<T> removeJtaDataSource()
jta-data-source
element
PersistenceUnit
PersistenceUnit<T> nonJtaDataSource(String nonJtaDataSource)
non-jta-data-source
element
nonJtaDataSource
- the value for the element non-jta-data-source
PersistenceUnit
String getNonJtaDataSource()
non-jta-data-source
element
non-jta-data-source
PersistenceUnit<T> removeNonJtaDataSource()
non-jta-data-source
element
PersistenceUnit
PersistenceUnit<T> mappingFile(String... values)
mapping-file
elements,
a new mapping-file
element
values
- list of mapping-file
objects
PersistenceUnit
List<String> getAllMappingFile()
mapping-file
elements
mapping-file
PersistenceUnit<T> removeAllMappingFile()
mapping-file
element
PersistenceUnit
PersistenceUnit<T> jarFile(String... values)
jar-file
elements,
a new jar-file
element
values
- list of jar-file
objects
PersistenceUnit
List<String> getAllJarFile()
jar-file
elements
jar-file
PersistenceUnit<T> removeAllJarFile()
jar-file
element
PersistenceUnit
PersistenceUnit<T> clazz(String... values)
class
elements,
a new class
element
values
- list of class
objects
PersistenceUnit
List<String> getAllClazz()
class
elements
class
PersistenceUnit<T> removeAllClazz()
class
element
PersistenceUnit
PersistenceUnit<T> excludeUnlistedClasses(Boolean excludeUnlistedClasses)
exclude-unlisted-classes
element
excludeUnlistedClasses
- the value for the element exclude-unlisted-classes
PersistenceUnit
Boolean isExcludeUnlistedClasses()
exclude-unlisted-classes
element
exclude-unlisted-classes
PersistenceUnit<T> removeExcludeUnlistedClasses()
exclude-unlisted-classes
element
PersistenceUnit
Properties<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
element
PersistenceUnit
PersistenceUnit<T> name(String name)
name
attribute
name
- the value for the attribute name
PersistenceUnit
String getName()
name
attribute
name
PersistenceUnit<T> removeName()
name
attribute
PersistenceUnit
PersistenceUnit<T> transactionType(PersistenceUnitTransactionType transactionType)
transaction-type
attribute
transactionType
- the value for the attribute transaction-type
PersistenceUnit
PersistenceUnit<T> transactionType(String transactionType)
transaction-type
attribute
transactionType
- the value for the attribute transaction-type
PersistenceUnit
PersistenceUnitTransactionType getTransactionType()
transaction-type
attribute
transaction-type
String getTransactionTypeAsString()
transaction-type
attribute
transaction-type
PersistenceUnit<T> removeTransactionType()
transaction-type
attribute
PersistenceUnit
|
ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |