Class PersistenceContextRefType
- java.lang.Object
-
- com.sun.xml.ws.config.metro.parser.jsr109.PersistenceContextRefType
-
- All Implemented Interfaces:
org.glassfish.jaxb.core.Locatable
public class PersistenceContextRefType extends Object implements org.glassfish.jaxb.core.Locatable
[ The persistence-context-ref element contains a declaration of Deployment Component's reference to a persistence context associated within a Deployment Component's environment. It consists of: - an optional description - the persistence context reference name - an optional persistence unit name. If not specified, the default persistence unit is assumed. - an optional specification as to whether the persistence context type is Transaction or Extended. If not specified, Transaction is assumed. - an optional list of persistence properties - optional injection targets Examples:myPersistenceContext myPersistenceContext PersistenceUnit1 Extended 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> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="description" type="{http://java.sun.com/xml/ns/javaee}descriptionType" maxOccurs="unbounded" minOccurs="0"/> <element name="persistence-context-ref-name" type="{http://java.sun.com/xml/ns/javaee}jndi-nameType"/> <element name="persistence-unit-name" type="{http://java.sun.com/xml/ns/javaee}string" minOccurs="0"/> <element name="persistence-context-type" type="{http://java.sun.com/xml/ns/javaee}persistence-context-typeType" minOccurs="0"/> <element name="persistence-property" type="{http://java.sun.com/xml/ns/javaee}propertyType" maxOccurs="unbounded" minOccurs="0"/> <group ref="{http://java.sun.com/xml/ns/javaee}resourceBaseGroup"/> </sequence> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<DescriptionType>descriptionprotected Stringidprotected List<InjectionTargetType>injectionTargetprotected Locatorlocatorprotected XsdStringTypemappedNameprotected JndiNameTypepersistenceContextRefNameprotected PersistenceContextTypeTypepersistenceContextTypeprotected List<PropertyType>persistencePropertyprotected StringpersistenceUnitName
-
Constructor Summary
Constructors Constructor Description PersistenceContextRefType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DescriptionType>getDescription()Gets the value of the description property.StringgetId()Gets the value of the id property.List<InjectionTargetType>getInjectionTarget()Gets the value of the injectionTarget property.XsdStringTypegetMappedName()Gets the value of the mappedName property.JndiNameTypegetPersistenceContextRefName()Gets the value of the persistenceContextRefName property.PersistenceContextTypeTypegetPersistenceContextType()Gets the value of the persistenceContextType property.List<PropertyType>getPersistenceProperty()Gets the value of the persistenceProperty property.StringgetPersistenceUnitName()Gets the value of the persistenceUnitName property.voidsetId(String value)Sets the value of the id property.voidsetMappedName(XsdStringType value)Sets the value of the mappedName property.voidsetPersistenceContextRefName(JndiNameType 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.voidsetSourceLocation(Locator newLocator)LocatorsourceLocation()
-
-
-
Field Detail
-
description
protected List<DescriptionType> description
-
persistenceContextRefName
protected JndiNameType persistenceContextRefName
-
persistenceUnitName
protected String persistenceUnitName
-
persistenceContextType
protected PersistenceContextTypeType persistenceContextType
-
persistenceProperty
protected List<PropertyType> persistenceProperty
-
mappedName
protected XsdStringType mappedName
-
injectionTarget
protected List<InjectionTargetType> injectionTarget
-
id
protected String id
-
locator
protected Locator locator
-
-
Method Detail
-
getDescription
public List<DescriptionType> getDescription()
Gets the value of the description 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
setmethod for the description property.For example, to add a new item, do as follows:
getDescription().add(newItem);Objects of the following type(s) are allowed in the list
DescriptionType
-
getPersistenceContextRefName
public JndiNameType getPersistenceContextRefName()
Gets the value of the persistenceContextRefName property.- Returns:
- possible object is
JndiNameType
-
setPersistenceContextRefName
public void setPersistenceContextRefName(JndiNameType value)
Sets the value of the persistenceContextRefName property.- Parameters:
value- allowed object isJndiNameType
-
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
-
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
-
getPersistenceProperty
public List<PropertyType> getPersistenceProperty()
Gets the value of the persistenceProperty 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
setmethod for the persistenceProperty property.For example, to add a new item, do as follows:
getPersistenceProperty().add(newItem);Objects of the following type(s) are allowed in the list
PropertyType
-
getMappedName
public XsdStringType getMappedName()
Gets the value of the mappedName property.- Returns:
- possible object is
XsdStringType
-
setMappedName
public void setMappedName(XsdStringType value)
Sets the value of the mappedName property.- Parameters:
value- allowed object isXsdStringType
-
getInjectionTarget
public List<InjectionTargetType> getInjectionTarget()
Gets the value of the injectionTarget 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
setmethod for the injectionTarget property.For example, to add a new item, do as follows:
getInjectionTarget().add(newItem);Objects of the following type(s) are allowed in the list
InjectionTargetType
-
setId
public void setId(String value)
Sets the value of the id property.- Parameters:
value- allowed object isString
-
sourceLocation
public Locator sourceLocation()
- Specified by:
sourceLocationin interfaceorg.glassfish.jaxb.core.Locatable- Returns:
- null if the location information is unavaiable,
or otherwise return a immutable valid
Locatorobject.
-
setSourceLocation
public void setSourceLocation(Locator newLocator)
-
-