Package org.apache.openejb.jee.oejb2
Class PersistenceContextRefType
- java.lang.Object
-
- org.apache.openejb.jee.oejb2.AbstractNamingEntryType
-
- org.apache.openejb.jee.oejb2.PersistenceContextRefType
-
public class PersistenceContextRefType extends AbstractNamingEntryType
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
Fields Modifier and Type Field Description protected PatternTypepatternprotected StringpersistenceContextRefNameprotected PersistenceContextTypeTypepersistenceContextTypeprotected StringpersistenceUnitNameprotected List<PropertyType>property
-
Constructor Summary
Constructors Constructor Description PersistenceContextRefType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PatternTypegetPattern()Gets the value of the pattern property.StringgetPersistenceContextRefName()Gets the value of the persistenceContextRefName property.PersistenceContextTypeTypegetPersistenceContextType()Gets the value of the persistenceContextType property.StringgetPersistenceUnitName()Gets the value of the persistenceUnitName property.List<PropertyType>getProperty()Gets the value of the property property.voidsetPattern(PatternType value)Sets the value of the pattern property.voidsetPersistenceContextRefName(String value)Sets the value of the persistenceContextRefName property.voidsetPersistenceContextType(PersistenceContextTypeType value)Sets the value of the persistenceContextType property.voidsetPersistenceUnitName(String value)Sets the value of the persistenceUnitName property.
-
-
-
Field Detail
-
persistenceContextRefName
protected String persistenceContextRefName
-
persistenceUnitName
protected String persistenceUnitName
-
pattern
protected PatternType pattern
-
persistenceContextType
protected PersistenceContextTypeType persistenceContextType
-
property
protected List<PropertyType> property
-
-
Method Detail
-
getPersistenceContextRefName
public String getPersistenceContextRefName()
Gets the value of the persistenceContextRefName property.- Returns:
- possible object is
String
-
setPersistenceContextRefName
public void setPersistenceContextRefName(String value)
Sets the value of the persistenceContextRefName property.- Parameters:
value- allowed object isString
-
getPersistenceUnitName
public String getPersistenceUnitName()
Gets the value of the persistenceUnitName property.- Returns:
- possible object is
String
-
setPersistenceUnitName
public void setPersistenceUnitName(String value)
Sets the value of the persistenceUnitName property.- Parameters:
value- allowed object isString
-
getPattern
public PatternType getPattern()
Gets the value of the pattern property.- Returns:
- possible object is
PatternType
-
setPattern
public void setPattern(PatternType value)
Sets the value of the pattern property.- Parameters:
value- allowed object isPatternType
-
getPersistenceContextType
public PersistenceContextTypeType getPersistenceContextType()
Gets the value of the persistenceContextType property.- Returns:
- possible object is
PersistenceContextTypeType
-
setPersistenceContextType
public void setPersistenceContextType(PersistenceContextTypeType value)
Sets the value of the persistenceContextType property.- Parameters:
value- allowed object isPersistenceContextTypeType
-
getProperty
public List<PropertyType> 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 asetmethod 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 listPropertyType
-
-