net.sourceforge.ccxjc.it.model.priv.indexed.valueclass.persistence
Class Persistence

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

public class Persistence
extends Object
implements Serializable, Cloneable

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="persistence-unit" maxOccurs="unbounded" minOccurs="0">
           <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>
         </element>
       </sequence>
       <attribute name="version" use="required" type="{http://java.sun.com/xml/ns/persistence}versionType" fixed="1.0" />
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Nested Class Summary
static class Persistence.PersistenceUnit
          Configuration of a persistence unit.
 
Field Summary
protected  Persistence.PersistenceUnit[] persistenceUnit
           
protected  String version
           
 
Constructor Summary
Persistence()
          Creates a new net.sourceforge.ccxjc.it.model.priv.indexed.valueclass.persistence.Persistence instance.
Persistence(Persistence o)
          Creates a new net.sourceforge.ccxjc.it.model.priv.indexed.valueclass.persistence.Persistence instance by copying a given instance.
 
Method Summary
 Persistence clone()
          Creates and returns a copy of this object.
 Persistence.PersistenceUnit[] getPersistenceUnit()
           
 Persistence.PersistenceUnit getPersistenceUnit(int idx)
           
 int getPersistenceUnitLength()
           
 String getVersion()
          Gets the value of the version property.
 Persistence.PersistenceUnit setPersistenceUnit(int idx, Persistence.PersistenceUnit value)
           
 void setPersistenceUnit(Persistence.PersistenceUnit[] values)
           
 void setVersion(String value)
          Sets the value of the version property.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

persistenceUnit

protected Persistence.PersistenceUnit[] persistenceUnit

version

protected String version
Constructor Detail

Persistence

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


Persistence

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

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

getPersistenceUnit

public Persistence.PersistenceUnit[] getPersistenceUnit()
Returns:
array of Persistence.PersistenceUnit

getPersistenceUnit

public Persistence.PersistenceUnit getPersistenceUnit(int idx)
Returns:
one of Persistence.PersistenceUnit

getPersistenceUnitLength

public int getPersistenceUnitLength()

setPersistenceUnit

public void setPersistenceUnit(Persistence.PersistenceUnit[] values)
Parameters:
values - allowed objects are Persistence.PersistenceUnit

setPersistenceUnit

public Persistence.PersistenceUnit setPersistenceUnit(int idx,
                                                      Persistence.PersistenceUnit value)
Parameters:
value - allowed object is Persistence.PersistenceUnit

getVersion

public String getVersion()
Gets the value of the version property.

Returns:
possible object is String

setVersion

public void setVersion(String value)
Sets the value of the version property.

Parameters:
value - allowed object is String

clone

public Persistence 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.