public class 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="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 | 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 Properties |
properties |
protected String |
provider |
protected boolean |
scanned |
protected javax.persistence.SharedCacheMode |
sharedCacheMode |
protected TransactionType |
transactionType |
protected javax.persistence.ValidationMode |
validationMode |
| Constructor and Description |
|---|
PersistenceUnit() |
PersistenceUnit(String unitName) |
PersistenceUnit(String name,
String provider) |
protected String description
protected String provider
protected String jtaDataSource
protected String nonJtaDataSource
protected Boolean excludeUnlistedClasses
protected javax.persistence.SharedCacheMode sharedCacheMode
protected javax.persistence.ValidationMode validationMode
protected Properties properties
protected String name
protected TransactionType transactionType
protected boolean scanned
public PersistenceUnit()
public PersistenceUnit(String unitName)
public boolean isScanned()
public void setScanned(boolean scanned)
public String getId()
public void setId(String id)
public String getDescription()
public void setDescription(String value)
public String getProvider()
public void setProvider(String value)
public void setProvider(Class value)
public String getJtaDataSource()
public void setJtaDataSource(String value)
public String getNonJtaDataSource()
public void setNonJtaDataSource(String value)
public boolean addClass(String s)
public boolean addClass(Class clazz)
public Boolean isExcludeUnlistedClasses()
public void setExcludeUnlistedClasses(Boolean value)
public void setProperties(Properties properties)
public Properties getProperties()
public String getName()
public void setName(String value)
public TransactionType getTransactionType()
public void setTransactionType(TransactionType value)
public javax.persistence.SharedCacheMode getSharedCacheMode()
public javax.persistence.ValidationMode getValidationMode()
public void setValidationMode(javax.persistence.ValidationMode validationMode)
public void setSharedCacheMode(javax.persistence.SharedCacheMode sharedCacheMode)
Copyright © 1999–2020 The Apache Software Foundation. All rights reserved.