net.sourceforge.ccxjc.it.model.prot.indexed.valueclass.persistence
Class Persistence.PersistenceUnit

java.lang.Object
  extended by net.sourceforge.ccxjc.it.model.prot.indexed.valueclass.persistence.Persistence.PersistenceUnit
All Implemented Interfaces:
Serializable, Cloneable
Enclosing class:
Persistence

public static class Persistence.PersistenceUnit
extends Object
implements Serializable, 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>
 

See Also:
Serialized Form

Nested Class Summary
static class Persistence.PersistenceUnit.Properties
          Java class for anonymous complex type.
 
Field Summary
protected  String[] clazz
           
protected  String description
           
protected  Boolean excludeUnlistedClasses
           
protected  String[] jarFile
           
protected  String jtaDataSource
           
protected  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 net.sourceforge.ccxjc.it.model.prot.indexed.valueclass.persistence.Persistence.PersistenceUnit instance.
Persistence.PersistenceUnit(Persistence.PersistenceUnit o)
          Creates a new net.sourceforge.ccxjc.it.model.prot.indexed.valueclass.persistence.Persistence.PersistenceUnit instance by copying a given instance.
 
Method Summary
 Persistence.PersistenceUnit clone()
          Creates and returns a copy of this object.
protected  void copyClazz(String[] source)
          Copies all values of property Clazz.
protected  void copyJarFile(String[] source)
          Copies all values of property JarFile.
protected  void copyMappingFile(String[] source)
          Copies all values of property MappingFile.
 String[] getClazz()
           
 String getClazz(int idx)
           
 int getClazzLength()
           
 String getDescription()
          Gets the value of the description property.
 String[] getJarFile()
           
 String getJarFile(int idx)
           
 int getJarFileLength()
           
 String getJtaDataSource()
          Gets the value of the jtaDataSource property.
 String[] getMappingFile()
           
 String getMappingFile(int idx)
           
 int getMappingFileLength()
           
 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.
 String setClazz(int idx, String value)
           
 void setClazz(String[] values)
           
 void setDescription(String value)
          Sets the value of the description property.
 void setExcludeUnlistedClasses(Boolean value)
          Sets the value of the excludeUnlistedClasses property.
 String setJarFile(int idx, String value)
           
 void setJarFile(String[] values)
           
 void setJtaDataSource(String value)
          Sets the value of the jtaDataSource property.
 String setMappingFile(int idx, String value)
           
 void setMappingFile(String[] values)
           
 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

protected String description

provider

protected String provider

jtaDataSource

protected String jtaDataSource

nonJtaDataSource

protected String nonJtaDataSource

mappingFile

protected String[] mappingFile

jarFile

protected String[] jarFile

clazz

protected String[] clazz

excludeUnlistedClasses

protected Boolean excludeUnlistedClasses

properties

protected Persistence.PersistenceUnit.Properties properties

name

protected String name

transactionType

protected PersistenceUnitTransactionType transactionType
Constructor Detail

Persistence.PersistenceUnit

public Persistence.PersistenceUnit()
Creates a new net.sourceforge.ccxjc.it.model.prot.indexed.valueclass.persistence.Persistence.PersistenceUnit instance.


Persistence.PersistenceUnit

public Persistence.PersistenceUnit(Persistence.PersistenceUnit o)
Creates a new net.sourceforge.ccxjc.it.model.prot.indexed.valueclass.persistence.Persistence.PersistenceUnit instance by copying a given instance.

Parameters:
o - The instance to copy or null.
Method Detail

getDescription

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

Returns:
possible object is String

setDescription

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

Parameters:
value - allowed object is String

getProvider

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

Returns:
possible object is String

setProvider

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

Parameters:
value - allowed object is String

getJtaDataSource

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

Returns:
possible object is String

setJtaDataSource

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

Parameters:
value - allowed object is String

getNonJtaDataSource

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

Returns:
possible object is String

setNonJtaDataSource

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

Parameters:
value - allowed object is String

getMappingFile

public String[] getMappingFile()
Returns:
array of String

getMappingFile

public String getMappingFile(int idx)
Returns:
one of String

getMappingFileLength

public int getMappingFileLength()

setMappingFile

public void setMappingFile(String[] values)
Parameters:
values - allowed objects are String

setMappingFile

public String setMappingFile(int idx,
                             String value)
Parameters:
value - allowed object is String

getJarFile

public String[] getJarFile()
Returns:
array of String

getJarFile

public String getJarFile(int idx)
Returns:
one of String

getJarFileLength

public int getJarFileLength()

setJarFile

public void setJarFile(String[] values)
Parameters:
values - allowed objects are String

setJarFile

public String setJarFile(int idx,
                         String value)
Parameters:
value - allowed object is String

getClazz

public String[] getClazz()
Returns:
array of String

getClazz

public String getClazz(int idx)
Returns:
one of String

getClazzLength

public int getClazzLength()

setClazz

public void setClazz(String[] values)
Parameters:
values - allowed objects are String

setClazz

public String setClazz(int idx,
                       String value)
Parameters:
value - allowed object is String

isExcludeUnlistedClasses

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

Returns:
possible object is Boolean

setExcludeUnlistedClasses

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

Parameters:
value - allowed object is Boolean

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 String getName()
Gets the value of the name property.

Returns:
possible object is String

setName

public void setName(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

copyMappingFile

protected void copyMappingFile(String[] source)
Copies all values of property MappingFile.

Parameters:
source - The source to copy from.
Throws:
NullPointerException - if source is null.

copyJarFile

protected void copyJarFile(String[] source)
Copies all values of property JarFile.

Parameters:
source - The source to copy from.
Throws:
NullPointerException - if source is null.

copyClazz

protected void copyClazz(String[] source)
Copies all values of property Clazz.

Parameters:
source - The source to copy from.
Throws:
NullPointerException - if source is null.

clone

public Persistence.PersistenceUnit clone()
Creates and returns a copy of this object.

Overrides:
clone in class Object
Returns:
A clone of this instance.


Copyright © 2009 The CC-XJC Community. All Rights Reserved.