Save This Page
Home » geronimo-eclipse-plugin-2.2-source-release » org.apache.geronimo.jee.naming » [javadoc | source]
org.apache.geronimo.jee.naming
public class: PersistenceContextRef [javadoc | source]
java.lang.Object
   org.apache.geronimo.jee.naming.AbstractNamingEntry
      org.apache.geronimo.jee.naming.PersistenceContextRef

All Implemented Interfaces:
    Serializable

Java class for persistence-context-refType complex type.

The following schema fragment specifies the expected content contained within this class.

<complexType name="persistence-context-refType">
  <complexContent>
    <extension base="{http://geronimo.apache.org/xml/ns/naming-1.2}abstract-naming-entryType">
      <sequence>
        <element name="persistence-context-ref-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
        <choice>
          <element name="persistence-unit-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
          <element name="pattern" type="{http://geronimo.apache.org/xml/ns/naming-1.2}patternType"/>
        </choice>
        <element name="persistence-context-type" type="{http://geronimo.apache.org/xml/ns/naming-1.2}persistence-context-typeType" minOccurs="0"/>
        <element name="property" type="{http://geronimo.apache.org/xml/ns/naming-1.2}propertyType" maxOccurs="unbounded" minOccurs="0"/>
      </sequence>
    </extension>
  </complexContent>
</complexType>
Field Summary
protected  String persistenceContextRefName     
protected  String persistenceUnitName     
protected  Pattern pattern     
protected  PersistenceContextType persistenceContextType     
protected  List<Property> property     
Method from org.apache.geronimo.jee.naming.PersistenceContextRef Summary:
getPattern,   getPersistenceContextRefName,   getPersistenceContextType,   getPersistenceUnitName,   getProperty,   setPattern,   setPersistenceContextRefName,   setPersistenceContextType,   setPersistenceUnitName
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.jee.naming.PersistenceContextRef Detail:
 public Pattern getPattern() 
    Gets the value of the pattern property.
 public String getPersistenceContextRefName() 
    Gets the value of the persistenceContextRefName property.
 public PersistenceContextType getPersistenceContextType() 
    Gets the value of the persistenceContextType property.
 public String getPersistenceUnitName() 
    Gets the value of the persistenceUnitName property.
 public List<Property> getProperty() 
    Gets the value of the property 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 property property.

    For example, to add a new item, do as follows:

       getProperty().add(newItem);
    

    Objects of the following type(s) are allowed in the list Property

 public  void setPattern(Pattern value) 
    Sets the value of the pattern property.
 public  void setPersistenceContextRefName(String value) 
    Sets the value of the persistenceContextRefName property.
 public  void setPersistenceContextType(PersistenceContextType value) 
    Sets the value of the persistenceContextType property.
 public  void setPersistenceUnitName(String value) 
    Sets the value of the persistenceUnitName property.