public class 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="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 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 java.util.Properties |
properties |
protected java.lang.String |
provider |
protected boolean |
scanned |
protected SharedCacheMode |
sharedCacheMode |
protected TransactionType |
transactionType |
protected ValidationMode |
validationMode |
Constructor and Description |
---|
PersistenceUnit() |
PersistenceUnit(java.lang.String unitName) |
PersistenceUnit(java.lang.String name,
java.lang.String provider) |
Modifier and Type | Method and Description |
---|---|
boolean |
addClass(java.lang.Class clazz) |
boolean |
addClass(java.lang.String s) |
java.util.List<java.lang.String> |
getClazz() |
java.lang.String |
getDescription() |
java.lang.String |
getId() |
java.util.List<java.lang.String> |
getJarFile() |
java.lang.String |
getJtaDataSource() |
java.util.List<java.lang.String> |
getMappingFile() |
java.lang.String |
getName() |
java.lang.String |
getNonJtaDataSource() |
java.util.Properties |
getProperties() |
java.lang.String |
getProperty(java.lang.String key) |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue) |
java.lang.String |
getProvider() |
SharedCacheMode |
getSharedCacheMode() |
TransactionType |
getTransactionType() |
ValidationMode |
getValidationMode() |
java.lang.Boolean |
isExcludeUnlistedClasses() |
boolean |
isScanned() |
void |
setDescription(java.lang.String value) |
void |
setExcludeUnlistedClasses(java.lang.Boolean value) |
void |
setId(java.lang.String id) |
void |
setJtaDataSource(java.lang.String value) |
void |
setName(java.lang.String value) |
void |
setNonJtaDataSource(java.lang.String value) |
void |
setProperties(java.util.Properties properties) |
java.lang.Object |
setProperty(java.lang.String key,
java.lang.String value) |
void |
setProvider(java.lang.Class value) |
void |
setProvider(java.lang.String value) |
void |
setScanned(boolean scanned) |
void |
setSharedCacheMode(SharedCacheMode sharedCacheMode) |
void |
setTransactionType(TransactionType value) |
void |
setValidationMode(ValidationMode validationMode) |
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 SharedCacheMode sharedCacheMode
protected ValidationMode validationMode
protected java.util.Properties properties
protected java.lang.String name
protected TransactionType transactionType
protected boolean scanned
public PersistenceUnit(java.lang.String name, java.lang.String provider)
public PersistenceUnit()
public PersistenceUnit(java.lang.String unitName)
public boolean isScanned()
public void setScanned(boolean scanned)
public java.lang.String getId()
public void setId(java.lang.String id)
public java.lang.String getDescription()
public void setDescription(java.lang.String value)
public java.lang.String getProvider()
public void setProvider(java.lang.String value)
public void setProvider(java.lang.Class value)
public java.lang.String getJtaDataSource()
public void setJtaDataSource(java.lang.String value)
public java.lang.String getNonJtaDataSource()
public void setNonJtaDataSource(java.lang.String value)
public java.util.List<java.lang.String> getMappingFile()
public java.util.List<java.lang.String> getJarFile()
public java.util.List<java.lang.String> getClazz()
public boolean addClass(java.lang.String s)
public boolean addClass(java.lang.Class clazz)
public java.lang.Boolean isExcludeUnlistedClasses()
public void setExcludeUnlistedClasses(java.lang.Boolean value)
public void setProperties(java.util.Properties properties)
public java.util.Properties getProperties()
public java.lang.String getProperty(java.lang.String key)
public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
public java.lang.Object setProperty(java.lang.String key, java.lang.String value)
public java.lang.String getName()
public void setName(java.lang.String value)
public TransactionType getTransactionType()
public void setTransactionType(TransactionType value)
public SharedCacheMode getSharedCacheMode()
public ValidationMode getValidationMode()
public void setValidationMode(ValidationMode validationMode)
public void setSharedCacheMode(SharedCacheMode sharedCacheMode)