org.hibernate.jpamodelgen.xml.jaxb
Class Persistence.PersistenceUnit

java.lang.Object
  extended by org.hibernate.jpamodelgen.xml.jaxb.Persistence.PersistenceUnit
Enclosing class:
Persistence

public static class Persistence.PersistenceUnit
extends java.lang.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="caching" type="{http://java.sun.com/xml/ns/persistence}persistence-unit-caching-type" minOccurs="0"/>
         <element name="validation-mode" type="{http://java.sun.com/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://java.sun.com/xml/ns/persistence}persistence-unit-transaction-type" />
     </restriction>
   </complexContent>
 </complexType>
 


Nested Class Summary
static class Persistence.PersistenceUnit.Properties
          Java class for anonymous complex type.
 
Field Summary
protected  PersistenceUnitCachingType caching
           
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  Persistence.PersistenceUnit.Properties properties
           
protected  java.lang.String provider
           
protected  PersistenceUnitTransactionType transactionType
           
protected  PersistenceUnitValidationModeType validationMode
           
 
Constructor Summary
Persistence.PersistenceUnit()
           
 
Method Summary
 PersistenceUnitCachingType getCaching()
          Gets the value of the caching property.
 java.util.List<java.lang.String> getClazz()
          Gets the value of the clazz property.
 java.lang.String getDescription()
          Gets the value of the description property.
 java.util.List<java.lang.String> getJarFile()
          Gets the value of the jarFile property.
 java.lang.String getJtaDataSource()
          Gets the value of the jtaDataSource property.
 java.util.List<java.lang.String> getMappingFile()
          Gets the value of the mappingFile property.
 java.lang.String getName()
          Gets the value of the name property.
 java.lang.String getNonJtaDataSource()
          Gets the value of the nonJtaDataSource property.
 Persistence.PersistenceUnit.Properties getProperties()
          Gets the value of the properties property.
 java.lang.String getProvider()
          Gets the value of the provider property.
 PersistenceUnitTransactionType getTransactionType()
          Gets the value of the transactionType property.
 PersistenceUnitValidationModeType getValidationMode()
          Gets the value of the validationMode property.
 java.lang.Boolean isExcludeUnlistedClasses()
          Gets the value of the excludeUnlistedClasses property.
 void setCaching(PersistenceUnitCachingType value)
          Sets the value of the caching property.
 void setDescription(java.lang.String value)
          Sets the value of the description property.
 void setExcludeUnlistedClasses(java.lang.Boolean value)
          Sets the value of the excludeUnlistedClasses property.
 void setJtaDataSource(java.lang.String value)
          Sets the value of the jtaDataSource property.
 void setName(java.lang.String value)
          Sets the value of the name property.
 void setNonJtaDataSource(java.lang.String value)
          Sets the value of the nonJtaDataSource property.
 void setProperties(Persistence.PersistenceUnit.Properties value)
          Sets the value of the properties property.
 void setProvider(java.lang.String value)
          Sets the value of the provider property.
 void setTransactionType(PersistenceUnitTransactionType value)
          Sets the value of the transactionType property.
 void setValidationMode(PersistenceUnitValidationModeType value)
          Sets the value of the validationMode property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

protected java.lang.String description

provider

protected java.lang.String provider

jtaDataSource

protected java.lang.String jtaDataSource

nonJtaDataSource

protected java.lang.String nonJtaDataSource

mappingFile

protected java.util.List<java.lang.String> mappingFile

jarFile

protected java.util.List<java.lang.String> jarFile

clazz

protected java.util.List<java.lang.String> clazz

excludeUnlistedClasses

protected java.lang.Boolean excludeUnlistedClasses

caching

protected PersistenceUnitCachingType caching

validationMode

protected PersistenceUnitValidationModeType validationMode

properties

protected Persistence.PersistenceUnit.Properties properties

name

protected java.lang.String name

transactionType

protected PersistenceUnitTransactionType transactionType
Constructor Detail

Persistence.PersistenceUnit

public Persistence.PersistenceUnit()
Method Detail

getDescription

public java.lang.String getDescription()
Gets the value of the description property.

Returns:
possible object is String

setDescription

public void setDescription(java.lang.String value)
Sets the value of the description property.

Parameters:
value - allowed object is String

getProvider

public java.lang.String getProvider()
Gets the value of the provider property.

Returns:
possible object is String

setProvider

public void setProvider(java.lang.String value)
Sets the value of the provider property.

Parameters:
value - allowed object is String

getJtaDataSource

public java.lang.String getJtaDataSource()
Gets the value of the jtaDataSource property.

Returns:
possible object is String

setJtaDataSource

public void setJtaDataSource(java.lang.String value)
Sets the value of the jtaDataSource property.

Parameters:
value - allowed object is String

getNonJtaDataSource

public java.lang.String getNonJtaDataSource()
Gets the value of the nonJtaDataSource property.

Returns:
possible object is String

setNonJtaDataSource

public void setNonJtaDataSource(java.lang.String value)
Sets the value of the nonJtaDataSource property.

Parameters:
value - allowed object is String

getMappingFile

public java.util.List<java.lang.String> 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 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


getJarFile

public java.util.List<java.lang.String> 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 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


getClazz

public java.util.List<java.lang.String> 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 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


isExcludeUnlistedClasses

public java.lang.Boolean isExcludeUnlistedClasses()
Gets the value of the excludeUnlistedClasses property.

Returns:
possible object is Boolean

setExcludeUnlistedClasses

public void setExcludeUnlistedClasses(java.lang.Boolean value)
Sets the value of the excludeUnlistedClasses property.

Parameters:
value - allowed object is Boolean

getCaching

public PersistenceUnitCachingType getCaching()
Gets the value of the caching property.

Returns:
possible object is PersistenceUnitCachingType

setCaching

public void setCaching(PersistenceUnitCachingType value)
Sets the value of the caching property.

Parameters:
value - allowed object is PersistenceUnitCachingType

getValidationMode

public PersistenceUnitValidationModeType getValidationMode()
Gets the value of the validationMode property.

Returns:
possible object is PersistenceUnitValidationModeType

setValidationMode

public void setValidationMode(PersistenceUnitValidationModeType value)
Sets the value of the validationMode property.

Parameters:
value - allowed object is PersistenceUnitValidationModeType

getProperties

public Persistence.PersistenceUnit.Properties getProperties()
Gets the value of the properties property.

Returns:
possible object is Persistence.PersistenceUnit.Properties

setProperties

public void setProperties(Persistence.PersistenceUnit.Properties value)
Sets the value of the properties property.

Parameters:
value - allowed object is Persistence.PersistenceUnit.Properties

getName

public java.lang.String getName()
Gets the value of the name property.

Returns:
possible object is String

setName

public void setName(java.lang.String value)
Sets the value of the name property.

Parameters:
value - allowed object is String

getTransactionType

public PersistenceUnitTransactionType getTransactionType()
Gets the value of the transactionType property.

Returns:
possible object is PersistenceUnitTransactionType

setTransactionType

public void setTransactionType(PersistenceUnitTransactionType value)
Sets the value of the transactionType property.

Parameters:
value - allowed object is PersistenceUnitTransactionType


Copyright © 2009-2010. All Rights Reserved.