public static class Persistence.PersistenceUnit
extends java.lang.Object
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="provider" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="jta-data-source" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="non-jta-data-source" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="mapping-file" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
<element name="jar-file" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
<element name="class" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
<element name="exclude-unlisted-classes" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
<element name="shared-cache-mode" type="{http://java.sun.com/xml/ns/persistence}persistence-unit-caching-type" minOccurs="0"/>
<element name="validation-mode" type="{http://java.sun.com/xml/ns/persistence}persistence-unit-validation-mode-type" minOccurs="0"/>
<element name="properties" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="property" maxOccurs="unbounded" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
</element>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
</sequence>
<attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="transaction-type" type="{http://java.sun.com/xml/ns/persistence}persistence-unit-transaction-type" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Class and Description |
|---|---|
static class |
Persistence.PersistenceUnit.Properties
Java class for anonymous complex type.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.lang.String> |
clazz |
protected java.lang.String |
description |
protected java.lang.Boolean |
excludeUnlistedClasses |
protected java.util.List<java.lang.String> |
jarFile |
protected java.lang.String |
jtaDataSource |
protected java.util.List<java.lang.String> |
mappingFile |
protected java.lang.String |
name |
protected java.lang.String |
nonJtaDataSource |
protected Persistence.PersistenceUnit.Properties |
properties |
protected java.lang.String |
provider |
protected PersistenceUnitCaching |
sharedCacheMode |
protected java.lang.String |
transactionType |
protected PersistenceUnitValidationMode |
validationMode |
| Constructor and Description |
|---|
PersistenceUnit() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getClazz()
Gets the value of the clazz property.
|
java.lang.String |
getDescription()
Gets the value of the description property.
|
java.util.List<java.lang.String> |
getJarFile()
Gets the value of the jarFile property.
|
java.lang.String |
getJtaDataSource()
Gets the value of the jtaDataSource property.
|
java.util.List<java.lang.String> |
getMappingFile()
Gets the value of the mappingFile property.
|
java.lang.String |
getName()
Gets the value of the name property.
|
java.lang.String |
getNonJtaDataSource()
Gets the value of the nonJtaDataSource property.
|
Persistence.PersistenceUnit.Properties |
getProperties()
Gets the value of the properties property.
|
java.lang.String |
getProvider()
Gets the value of the provider property.
|
PersistenceUnitCaching |
getSharedCacheMode()
Gets the value of the sharedCacheMode property.
|
java.lang.String |
getTransactionType()
Gets the value of the transactionType property.
|
PersistenceUnitValidationMode |
getValidationMode()
Gets the value of the validationMode property.
|
java.lang.Boolean |
isExcludeUnlistedClasses()
Gets the value of the excludeUnlistedClasses property.
|
void |
setDescription(java.lang.String value)
Sets the value of the description property.
|
void |
setExcludeUnlistedClasses(java.lang.Boolean value)
Sets the value of the excludeUnlistedClasses property.
|
void |
setJtaDataSource(java.lang.String value)
Sets the value of the jtaDataSource property.
|
void |
setName(java.lang.String value)
Sets the value of the name property.
|
void |
setNonJtaDataSource(java.lang.String value)
Sets the value of the nonJtaDataSource property.
|
void |
setProperties(Persistence.PersistenceUnit.Properties value)
Sets the value of the properties property.
|
void |
setProvider(java.lang.String value)
Sets the value of the provider property.
|
void |
setSharedCacheMode(PersistenceUnitCaching value)
Sets the value of the sharedCacheMode property.
|
void |
setTransactionType(java.lang.String value)
Sets the value of the transactionType property.
|
void |
setValidationMode(PersistenceUnitValidationMode value)
Sets the value of the validationMode property.
|
protected java.lang.String description
protected java.lang.String provider
protected java.lang.String jtaDataSource
protected java.lang.String nonJtaDataSource
protected java.util.List<java.lang.String> mappingFile
protected java.util.List<java.lang.String> jarFile
protected java.util.List<java.lang.String> clazz
protected java.lang.Boolean excludeUnlistedClasses
protected PersistenceUnitCaching sharedCacheMode
protected PersistenceUnitValidationMode validationMode
protected Persistence.PersistenceUnit.Properties properties
protected java.lang.String name
protected java.lang.String transactionType
public java.lang.String getDescription()
Stringpublic void setDescription(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getProvider()
Stringpublic void setProvider(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getJtaDataSource()
Stringpublic void setJtaDataSource(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getNonJtaDataSource()
Stringpublic void setNonJtaDataSource(java.lang.String value)
value - allowed object is
Stringpublic java.util.List<java.lang.String> getMappingFile()
set method for the mappingFile property.
For example, to add a new item, do as follows:
getMappingFile().add(newItem);
Objects of the following type(s) are allowed in the list
Stringpublic java.util.List<java.lang.String> getJarFile()
set method for the jarFile property.
For example, to add a new item, do as follows:
getJarFile().add(newItem);
Objects of the following type(s) are allowed in the list
Stringpublic java.util.List<java.lang.String> getClazz()
set method for the clazz property.
For example, to add a new item, do as follows:
getClazz().add(newItem);
Objects of the following type(s) are allowed in the list
Stringpublic java.lang.Boolean isExcludeUnlistedClasses()
Booleanpublic void setExcludeUnlistedClasses(java.lang.Boolean value)
value - allowed object is
Booleanpublic PersistenceUnitCaching getSharedCacheMode()
PersistenceUnitCachingpublic void setSharedCacheMode(PersistenceUnitCaching value)
value - allowed object is
PersistenceUnitCachingpublic PersistenceUnitValidationMode getValidationMode()
PersistenceUnitValidationModepublic void setValidationMode(PersistenceUnitValidationMode value)
value - allowed object is
PersistenceUnitValidationModepublic Persistence.PersistenceUnit.Properties getProperties()
Persistence.PersistenceUnit.Propertiespublic void setProperties(Persistence.PersistenceUnit.Properties value)
value - allowed object is
Persistence.PersistenceUnit.Propertiespublic java.lang.String getName()
Stringpublic void setName(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getTransactionType()
Stringpublic void setTransactionType(java.lang.String value)
value - allowed object is
String