Package org.apache.openejb.jee.jpa.unit
Class PersistenceUnit
- java.lang.Object
-
- org.apache.openejb.jee.jpa.unit.PersistenceUnit
-
public class PersistenceUnit extends Object
Configuration of a persistence unit.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>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>clazzprotected Stringdescriptionprotected BooleanexcludeUnlistedClassesprotected List<String>jarFileprotected StringjtaDataSourceprotected List<String>mappingFileprotected Stringnameprotected StringnonJtaDataSourceprotected Propertiespropertiesprotected Stringproviderprotected booleanscannedprotected jakarta.persistence.SharedCacheModesharedCacheModeprotected TransactionTypetransactionTypeprotected jakarta.persistence.ValidationModevalidationMode
-
Constructor Summary
Constructors Constructor Description PersistenceUnit()PersistenceUnit(String unitName)PersistenceUnit(String name, String provider)
-
Method Summary
-
-
-
Field Detail
-
description
protected String description
-
provider
protected String provider
-
jtaDataSource
protected String jtaDataSource
-
nonJtaDataSource
protected String nonJtaDataSource
-
excludeUnlistedClasses
protected Boolean excludeUnlistedClasses
-
sharedCacheMode
protected jakarta.persistence.SharedCacheMode sharedCacheMode
-
validationMode
protected jakarta.persistence.ValidationMode validationMode
-
properties
protected Properties properties
-
name
protected String name
-
transactionType
protected TransactionType transactionType
-
scanned
protected boolean scanned
-
-
Method Detail
-
isScanned
public boolean isScanned()
-
setScanned
public void setScanned(boolean scanned)
-
getId
public String getId()
-
setId
public void setId(String id)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String value)
-
getProvider
public String getProvider()
-
setProvider
public void setProvider(String value)
-
setProvider
public void setProvider(Class value)
-
getJtaDataSource
public String getJtaDataSource()
-
setJtaDataSource
public void setJtaDataSource(String value)
-
getNonJtaDataSource
public String getNonJtaDataSource()
-
setNonJtaDataSource
public void setNonJtaDataSource(String value)
-
addClass
public boolean addClass(String s)
-
addClass
public boolean addClass(Class clazz)
-
isExcludeUnlistedClasses
public Boolean isExcludeUnlistedClasses()
-
setExcludeUnlistedClasses
public void setExcludeUnlistedClasses(Boolean value)
-
setProperties
public void setProperties(Properties properties)
-
getProperties
public Properties getProperties()
-
getName
public String getName()
-
setName
public void setName(String value)
-
getTransactionType
public TransactionType getTransactionType()
-
setTransactionType
public void setTransactionType(TransactionType value)
-
getSharedCacheMode
public jakarta.persistence.SharedCacheMode getSharedCacheMode()
-
getValidationMode
public jakarta.persistence.ValidationMode getValidationMode()
-
setValidationMode
public void setValidationMode(jakarta.persistence.ValidationMode validationMode)
-
setSharedCacheMode
public void setSharedCacheMode(jakarta.persistence.SharedCacheMode sharedCacheMode)
-
-