Class Persistence.PersistenceUnit
- Enclosing class:
- Persistence
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="{https://jakarta.ee/xml/ns/persistence}persistence-unit-caching-type" minOccurs="0"/>
<element name="validation-mode" type="{https://jakarta.ee/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="{https://jakarta.ee/xml/ns/persistence}persistence-unit-transaction-type" />
</restriction>
</complexContent>
</complexType>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classJava class for anonymous complex type. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Booleanprotected Stringprotected Stringprotected Stringprotected Persistence.PersistenceUnit.Propertiesprotected Stringprotected PersistenceUnitCachingTypeprotected PersistenceUnitTransactionTypeprotected PersistenceUnitValidationModeType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClazz()Gets the value of the clazz property.Gets the value of the description property.Gets the value of the jarFile property.Gets the value of the jtaDataSource property.Gets the value of the mappingFile property.getName()Gets the value of the name property.Gets the value of the nonJtaDataSource property.Gets the value of the properties property.Gets the value of the provider property.Gets the value of the sharedCacheMode property.Gets the value of the transactionType property.Gets the value of the validationMode property.Gets the value of the excludeUnlistedClasses property.voidsetDescription(String value) Sets the value of the description property.voidsetExcludeUnlistedClasses(Boolean value) Sets the value of the excludeUnlistedClasses property.voidsetJtaDataSource(String value) Sets the value of the jtaDataSource property.voidSets the value of the name property.voidsetNonJtaDataSource(String value) Sets the value of the nonJtaDataSource property.voidSets the value of the properties property.voidsetProvider(String value) Sets the value of the provider property.voidSets the value of the sharedCacheMode property.voidSets the value of the transactionType property.voidSets the value of the validationMode property.
-
Field Details
-
description
-
provider
-
jtaDataSource
-
nonJtaDataSource
-
mappingFile
-
jarFile
-
clazz
-
excludeUnlistedClasses
-
validationMode
-
properties
-
name
-
transactionType
-
-
Constructor Details
-
PersistenceUnit
public PersistenceUnit()
-
-
Method Details
-
getDescription
Gets the value of the description property.- Returns:
- possible object is
String
-
setDescription
Sets the value of the description property.- Parameters:
value- allowed object isString
-
getProvider
Gets the value of the provider property.- Returns:
- possible object is
String
-
setProvider
Sets the value of the provider property.- Parameters:
value- allowed object isString
-
getJtaDataSource
Gets the value of the jtaDataSource property.- Returns:
- possible object is
String
-
setJtaDataSource
Sets the value of the jtaDataSource property.- Parameters:
value- allowed object isString
-
getNonJtaDataSource
Gets the value of the nonJtaDataSource property.- Returns:
- possible object is
String
-
setNonJtaDataSource
Sets the value of the nonJtaDataSource property.- Parameters:
value- allowed object isString
-
getMappingFile
Gets the value of the mappingFile property.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 Jakarta XML Binding object. This is why there is not a
setmethod 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- Returns:
- The value of the mappingFile property.
-
getJarFile
Gets the value of the jarFile property.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 Jakarta XML Binding object. This is why there is not a
setmethod 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- Returns:
- The value of the jarFile property.
-
getClazz
Gets the value of the clazz property.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 Jakarta XML Binding object. This is why there is not a
setmethod 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- Returns:
- The value of the clazz property.
-
isExcludeUnlistedClasses
Gets the value of the excludeUnlistedClasses property.- Returns:
- possible object is
Boolean
-
setExcludeUnlistedClasses
Sets the value of the excludeUnlistedClasses property.- Parameters:
value- allowed object isBoolean
-
getValidationMode
Gets the value of the validationMode property.- Returns:
- possible object is
PersistenceUnitValidationModeType
-
setValidationMode
Sets the value of the validationMode property.- Parameters:
value- allowed object isPersistenceUnitValidationModeType
-
getProperties
Gets the value of the properties property.- Returns:
- possible object is
Persistence.PersistenceUnit.Properties
-
setProperties
Sets the value of the properties property.- Parameters:
value- allowed object isPersistence.PersistenceUnit.Properties
-
getName
Gets the value of the name property.- Returns:
- possible object is
String
-
setName
Sets the value of the name property.- Parameters:
value- allowed object isString
-
getTransactionType
Gets the value of the transactionType property.- Returns:
- possible object is
PersistenceUnitTransactionType
-
setTransactionType
Sets the value of the transactionType property.- Parameters:
value- allowed object isPersistenceUnitTransactionType
-