Home » geronimo-eclipse-plugin-2.2-source-release » org.apache.geronimo.jee.persistence » [javadoc | source]
org.apache.geronimo.jee.persistence
public static class: Persistence.PersistenceUnit [javadoc | source]
java.lang.Object
   org.apache.geronimo.jee.persistence.Persistence$PersistenceUnit

All Implemented Interfaces:
    Serializable

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:
public static class  PersistenceUnit.Properties  

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="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>
 
Field Summary
protected  String description     
protected  String provider     
protected  String jtaDataSource     
protected  String nonJtaDataSource     
protected  List<String> mappingFile     
protected  List<String> jarFile     
protected  List<String> clazz     
protected  Boolean excludeUnlistedClasses     
protected  Properties properties     
protected  String name     
protected  PersistenceUnitTransaction transactionType     
Method from org.apache.geronimo.jee.persistence.Persistence$PersistenceUnit Summary:
getClazz,   getDescription,   getJarFile,   getJtaDataSource,   getMappingFile,   getName,   getNonJtaDataSource,   getProperties,   getProvider,   getTransactionType,   isExcludeUnlistedClasses,   setDescription,   setExcludeUnlistedClasses,   setJtaDataSource,   setName,   setNonJtaDataSource,   setProperties,   setProvider,   setTransactionType
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.jee.persistence.Persistence$PersistenceUnit Detail:
 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

 public String getDescription() 
    Gets the value of the description property.
 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

 public String getJtaDataSource() 
    Gets the value of the jtaDataSource property.
 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

 public String getName() 
    Gets the value of the name property.
 public String getNonJtaDataSource() 
    Gets the value of the nonJtaDataSource property.
 public Properties getProperties() 
    Gets the value of the properties property.
 public String getProvider() 
    Gets the value of the provider property.
 public PersistenceUnitTransaction getTransactionType() 
    Gets the value of the transactionType property.
 public Boolean isExcludeUnlistedClasses() 
    Gets the value of the excludeUnlistedClasses property.
 public  void setDescription(String value) 
    Sets the value of the description property.
 public  void setExcludeUnlistedClasses(Boolean value) 
    Sets the value of the excludeUnlistedClasses property.
 public  void setJtaDataSource(String value) 
    Sets the value of the jtaDataSource property.
 public  void setName(String value) 
    Sets the value of the name property.
 public  void setNonJtaDataSource(String value) 
    Sets the value of the nonJtaDataSource property.
 public  void setProperties(Properties value) 
    Sets the value of the properties property.
 public  void setProvider(String value) 
    Sets the value of the provider property.
 public  void setTransactionType(PersistenceUnitTransaction value) 
    Sets the value of the transactionType property.