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>
| Modifier and Type | Field and Description |
|---|---|
protected PatternType |
pattern |
protected java.lang.String |
persistenceContextRefName |
protected PersistenceContextTypeType |
persistenceContextType |
protected java.lang.String |
persistenceUnitName |
protected java.util.List<PropertyType> |
property |
| Constructor and Description |
|---|
PersistenceContextRefType() |
| Modifier and Type | Method and Description |
|---|---|
PatternType |
getPattern()
Gets the value of the pattern property.
|
java.lang.String |
getPersistenceContextRefName()
Gets the value of the persistenceContextRefName property.
|
PersistenceContextTypeType |
getPersistenceContextType()
Gets the value of the persistenceContextType property.
|
java.lang.String |
getPersistenceUnitName()
Gets the value of the persistenceUnitName property.
|
java.util.List<PropertyType> |
getProperty()
Gets the value of the property property.
|
void |
setPattern(PatternType value)
Sets the value of the pattern property.
|
void |
setPersistenceContextRefName(java.lang.String value)
Sets the value of the persistenceContextRefName property.
|
void |
setPersistenceContextType(PersistenceContextTypeType value)
Sets the value of the persistenceContextType property.
|
void |
setPersistenceUnitName(java.lang.String value)
Sets the value of the persistenceUnitName property.
|
protected java.lang.String persistenceContextRefName
protected java.lang.String persistenceUnitName
protected PatternType pattern
protected PersistenceContextTypeType persistenceContextType
protected java.util.List<PropertyType> property
public java.lang.String getPersistenceContextRefName()
Stringpublic void setPersistenceContextRefName(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getPersistenceUnitName()
Stringpublic void setPersistenceUnitName(java.lang.String value)
value - allowed object is
Stringpublic PatternType getPattern()
PatternTypepublic void setPattern(PatternType value)
value - allowed object is
PatternTypepublic PersistenceContextTypeType getPersistenceContextType()
PersistenceContextTypeTypepublic void setPersistenceContextType(PersistenceContextTypeType value)
value - allowed object is
PersistenceContextTypeTypepublic java.util.List<PropertyType> getProperty()
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
PropertyType