@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public static class Persistence.PersistenceUnit extends 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://xmlns.jcp.org/xml/ns/persistence}persistence-unit-caching-type" minOccurs="0"/>
<element name="validation-mode" type="{http://xmlns.jcp.org/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://xmlns.jcp.org/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 List<String> |
clazz |
protected String |
description |
protected Boolean |
excludeUnlistedClasses |
protected List<String> |
jarFile |
protected String |
jtaDataSource |
protected List<String> |
mappingFile |
protected String |
name |
protected String |
nonJtaDataSource |
protected Persistence.PersistenceUnit.Properties |
properties |
protected String |
provider |
protected PersistenceUnitCachingType |
sharedCacheMode |
protected PersistenceUnitTransactionType |
transactionType |
protected PersistenceUnitValidationModeType |
validationMode |
| Constructor and Description |
|---|
PersistenceUnit() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getClazz()
Gets the value of the clazz property.
|
String |
getDescription()
Gets the value of the description property.
|
List<String> |
getJarFile()
Gets the value of the jarFile property.
|
String |
getJtaDataSource()
Gets the value of the jtaDataSource property.
|
List<String> |
getMappingFile()
Gets the value of the mappingFile property.
|
String |
getName()
Gets the value of the name property.
|
String |
getNonJtaDataSource()
Gets the value of the nonJtaDataSource property.
|
Persistence.PersistenceUnit.Properties |
getProperties()
Gets the value of the properties property.
|
String |
getProvider()
Gets the value of the provider property.
|
PersistenceUnitCachingType |
getSharedCacheMode()
Gets the value of the sharedCacheMode property.
|
PersistenceUnitTransactionType |
getTransactionType()
Gets the value of the transactionType property.
|
PersistenceUnitValidationModeType |
getValidationMode()
Gets the value of the validationMode property.
|
Boolean |
isExcludeUnlistedClasses()
Gets the value of the excludeUnlistedClasses property.
|
void |
setDescription(String value)
Sets the value of the description property.
|
void |
setExcludeUnlistedClasses(Boolean value)
Sets the value of the excludeUnlistedClasses property.
|
void |
setJtaDataSource(String value)
Sets the value of the jtaDataSource property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setNonJtaDataSource(String value)
Sets the value of the nonJtaDataSource property.
|
void |
setProperties(Persistence.PersistenceUnit.Properties value)
Sets the value of the properties property.
|
void |
setProvider(String value)
Sets the value of the provider property.
|
void |
setSharedCacheMode(PersistenceUnitCachingType value)
Sets the value of the sharedCacheMode property.
|
void |
setTransactionType(PersistenceUnitTransactionType value)
Sets the value of the transactionType property.
|
void |
setValidationMode(PersistenceUnitValidationModeType value)
Sets the value of the validationMode property.
|
@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") protected String description
@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") protected String provider
@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") protected String jtaDataSource
@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") protected String nonJtaDataSource
@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") protected List<String> mappingFile
@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") protected List<String> jarFile
@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") protected List<String> clazz
@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") protected Boolean excludeUnlistedClasses
@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") protected PersistenceUnitCachingType sharedCacheMode
@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") protected PersistenceUnitValidationModeType validationMode
@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") protected Persistence.PersistenceUnit.Properties properties
@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") protected String name
@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") protected PersistenceUnitTransactionType transactionType
@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public String getDescription()
String@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public void setDescription(String value)
value - allowed object is
String@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public String getProvider()
String@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public void setProvider(String value)
value - allowed object is
String@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public String getJtaDataSource()
String@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public void setJtaDataSource(String value)
value - allowed object is
String@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public String getNonJtaDataSource()
String@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public void setNonJtaDataSource(String value)
value - allowed object is
String@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public List<String> getMappingFile()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a 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
String
@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public List<String> getJarFile()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a 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
String
@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public List<String> getClazz()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a 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
String
@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public Boolean isExcludeUnlistedClasses()
Boolean@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public void setExcludeUnlistedClasses(Boolean value)
value - allowed object is
Boolean@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public PersistenceUnitCachingType getSharedCacheMode()
PersistenceUnitCachingType@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public void setSharedCacheMode(PersistenceUnitCachingType value)
value - allowed object is
PersistenceUnitCachingType@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public PersistenceUnitValidationModeType getValidationMode()
PersistenceUnitValidationModeType@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public void setValidationMode(PersistenceUnitValidationModeType value)
value - allowed object is
PersistenceUnitValidationModeType@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public Persistence.PersistenceUnit.Properties getProperties()
Persistence.PersistenceUnit.Properties@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public void setProperties(Persistence.PersistenceUnit.Properties value)
value - allowed object is
Persistence.PersistenceUnit.Properties@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public String getName()
String@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public void setName(String value)
value - allowed object is
String@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public PersistenceUnitTransactionType getTransactionType()
PersistenceUnitTransactionType@Generated(value="com.sun.tools.xjc.Driver", date="2019-06-14T08:12:34+00:00", comments="JAXB RI v2.3.0") public void setTransactionType(PersistenceUnitTransactionType value)
value - allowed object is
PersistenceUnitTransactionTypeCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.