net.sourceforge.jpaxjc.ns.persistence
Class Persistence.PersistenceUnit

java.lang.Object
  extended by net.sourceforge.jpaxjc.ns.persistence.Persistence.PersistenceUnit
All Implemented Interfaces:
Cloneable
Enclosing class:
Persistence

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public static class Persistence.PersistenceUnit
extends Object
implements Cloneable

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>
 


Nested Class Summary
static class Persistence.PersistenceUnit.Properties
          Java class for anonymous complex type.
 
Field Summary
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  Persistence.PersistenceUnit.Properties properties
           
protected  String provider
           
protected  PersistenceUnitTransactionType transactionType
           
 
Constructor Summary
Persistence.PersistenceUnit()
          Creates a new PersistenceUnit instance.
Persistence.PersistenceUnit(Persistence.PersistenceUnit o)
          Creates a new PersistenceUnit instance by deeply copying a given PersistenceUnit instance.
 
Method Summary
 Persistence.PersistenceUnit clone()
          Creates and returns a deep copy of this object.
 List<String> getClazz()
          Gets the value of the clazz property.
 String getDescription()
          Gets the value of the description property.
 List<String> getJarFile()
          Gets the value of the jarFile property.
 String getJtaDataSource()
          Gets the value of the jtaDataSource property.
 List<String> getMappingFile()
          Gets the value of the mappingFile property.
 String getName()
          Gets the value of the name property.
 String getNonJtaDataSource()
          Gets the value of the nonJtaDataSource property.
 Persistence.PersistenceUnit.Properties getProperties()
          Gets the value of the properties property.
 String getProvider()
          Gets the value of the provider property.
 PersistenceUnitTransactionType getTransactionType()
          Gets the value of the transactionType property.
 Boolean isExcludeUnlistedClasses()
          Gets the value of the excludeUnlistedClasses property.
 void setDescription(String value)
          Sets the value of the description property.
 void setExcludeUnlistedClasses(Boolean value)
          Sets the value of the excludeUnlistedClasses property.
 void setJtaDataSource(String value)
          Sets the value of the jtaDataSource property.
 void setName(String value)
          Sets the value of the name property.
 void setNonJtaDataSource(String value)
          Sets the value of the nonJtaDataSource property.
 void setProperties(Persistence.PersistenceUnit.Properties value)
          Sets the value of the properties property.
 void setProvider(String value)
          Sets the value of the provider property.
 void setTransactionType(PersistenceUnitTransactionType value)
          Sets the value of the transactionType property.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected String description

provider

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected String provider

jtaDataSource

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected String jtaDataSource

nonJtaDataSource

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected String nonJtaDataSource

mappingFile

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<String> mappingFile

jarFile

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<String> jarFile

clazz

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<String> clazz

excludeUnlistedClasses

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected Boolean excludeUnlistedClasses

properties

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected Persistence.PersistenceUnit.Properties properties

name

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected String name

transactionType

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected PersistenceUnitTransactionType transactionType
Constructor Detail

Persistence.PersistenceUnit

public Persistence.PersistenceUnit()
Creates a new PersistenceUnit instance.


Persistence.PersistenceUnit

public Persistence.PersistenceUnit(Persistence.PersistenceUnit o)
Creates a new PersistenceUnit instance by deeply copying a given PersistenceUnit instance.

Parameters:
o - The instance to copy.
Throws:
NullPointerException - if o is null.
Method Detail

getDescription

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public String getDescription()
Gets the value of the description property.

Returns:
possible object is String

setDescription

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setDescription(String value)
Sets the value of the description property.

Parameters:
value - allowed object is String

getProvider

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public String getProvider()
Gets the value of the provider property.

Returns:
possible object is String

setProvider

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setProvider(String value)
Sets the value of the provider property.

Parameters:
value - allowed object is String

getJtaDataSource

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public String getJtaDataSource()
Gets the value of the jtaDataSource property.

Returns:
possible object is String

setJtaDataSource

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setJtaDataSource(String value)
Sets the value of the jtaDataSource property.

Parameters:
value - allowed object is String

getNonJtaDataSource

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public String getNonJtaDataSource()
Gets the value of the nonJtaDataSource property.

Returns:
possible object is String

setNonJtaDataSource

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setNonJtaDataSource(String value)
Sets the value of the nonJtaDataSource property.

Parameters:
value - allowed object is String

getMappingFile

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<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

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<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

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<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

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public Boolean isExcludeUnlistedClasses()
Gets the value of the excludeUnlistedClasses property.

Returns:
possible object is Boolean

setExcludeUnlistedClasses

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setExcludeUnlistedClasses(Boolean value)
Sets the value of the excludeUnlistedClasses property.

Parameters:
value - allowed object is Boolean

getProperties

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public Persistence.PersistenceUnit.Properties getProperties()
Gets the value of the properties property.

Returns:
possible object is Persistence.PersistenceUnit.Properties

setProperties

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setProperties(Persistence.PersistenceUnit.Properties value)
Sets the value of the properties property.

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

getName

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public String getName()
Gets the value of the name property.

Returns:
possible object is String

setName

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setName(String value)
Sets the value of the name property.

Parameters:
value - allowed object is String

getTransactionType

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public PersistenceUnitTransactionType getTransactionType()
Gets the value of the transactionType property.

Returns:
possible object is PersistenceUnitTransactionType

setTransactionType

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setTransactionType(PersistenceUnitTransactionType value)
Sets the value of the transactionType property.

Parameters:
value - allowed object is PersistenceUnitTransactionType

clone

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public Persistence.PersistenceUnit clone()
Creates and returns a deep copy of this object.

Overrides:
clone in class Object
Returns:
A deep copy of this object.


Copyright © 2009-2010 The JPA-XJC Community. All Rights Reserved.