public class PersistenceContextRef extends java.lang.Object implements JndiReference, PersistenceRef
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>
Modifier and Type | Field and Description |
---|---|
protected TextMap |
description |
protected java.lang.String |
id |
protected java.util.Set<InjectionTarget> |
injectionTarget |
protected java.lang.String |
lookupName |
protected java.lang.String |
mappedName |
protected java.lang.String |
persistenceContextRefName |
protected PersistenceContextSynchronization |
persistenceContextSynchronization |
protected PersistenceContextType |
persistenceContextType |
protected java.util.List<Property> |
persistenceProperty |
protected java.lang.String |
persistenceUnitName |
Constructor and Description |
---|
PersistenceContextRef() |
PersistenceContextRef(java.lang.String persistenceContextRefName,
java.lang.String persistenceUnitName) |
PersistenceContextRef(java.lang.String persistenceContextRefName,
java.lang.String persistenceUnitName,
PersistenceContextType persistenceContextType,
java.util.List<Property> persistenceProperty) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
Text[] |
getDescriptions() |
java.lang.String |
getId() |
java.util.Set<InjectionTarget> |
getInjectionTarget() |
java.lang.String |
getKey()
Gets the immutable key for this object.
|
java.lang.String |
getLookupName() |
java.lang.String |
getMappedName() |
java.lang.String |
getName() |
java.lang.String |
getPersistenceContextRefName() |
PersistenceContextSynchronization |
getPersistenceContextSynchronization() |
PersistenceContextType |
getPersistenceContextType() |
java.util.List<Property> |
getPersistenceProperty() |
java.lang.String |
getPersistenceUnitName() |
java.lang.String |
getType() |
PersistenceContextRef |
injectionTarget(java.lang.Class<?> clazz,
java.lang.String property) |
PersistenceContextRef |
injectionTarget(java.lang.String className,
java.lang.String property) |
PersistenceContextRef |
lookup(java.lang.String lookupName) |
PersistenceContextRef |
mappedName(java.lang.String mappedName) |
PersistenceContextRef |
name(java.lang.String persistenceContextRefName) |
PersistenceContextRef |
property(java.lang.String name,
java.lang.String value) |
void |
setDescriptions(Text[] text) |
void |
setId(java.lang.String value) |
void |
setLookupName(java.lang.String lookupName) |
void |
setMappedName(java.lang.String value) |
void |
setName(java.lang.String name) |
void |
setPersistenceContextRefName(java.lang.String value) |
void |
setPersistenceContextSynchronization(PersistenceContextSynchronization persistenceContextSynchronization) |
void |
setPersistenceContextType(PersistenceContextType value) |
void |
setPersistenceProperty(java.util.List<Property> persistenceProperty) |
void |
setPersistenceUnitName(java.lang.String value) |
void |
setType(java.lang.String type) |
java.lang.String |
toString() |
PersistenceContextRef |
type(PersistenceContextType persistenceContextType) |
PersistenceContextRef |
unit(java.lang.String persistenceUnit) |
protected TextMap description
protected java.lang.String persistenceContextRefName
protected java.lang.String persistenceUnitName
protected PersistenceContextType persistenceContextType
protected PersistenceContextSynchronization persistenceContextSynchronization
protected java.util.List<Property> persistenceProperty
protected java.lang.String mappedName
protected java.lang.String lookupName
protected java.util.Set<InjectionTarget> injectionTarget
protected java.lang.String id
public PersistenceContextRef()
public PersistenceContextRef(java.lang.String persistenceContextRefName, java.lang.String persistenceUnitName)
public PersistenceContextRef(java.lang.String persistenceContextRefName, java.lang.String persistenceUnitName, PersistenceContextType persistenceContextType, java.util.List<Property> persistenceProperty)
public PersistenceContextRef name(java.lang.String persistenceContextRefName)
public PersistenceContextRef unit(java.lang.String persistenceUnit)
public PersistenceContextRef type(PersistenceContextType persistenceContextType)
public PersistenceContextRef mappedName(java.lang.String mappedName)
public PersistenceContextRef lookup(java.lang.String lookupName)
public PersistenceContextRef injectionTarget(java.lang.String className, java.lang.String property)
public PersistenceContextRef injectionTarget(java.lang.Class<?> clazz, java.lang.String property)
public PersistenceContextRef property(java.lang.String name, java.lang.String value)
public java.lang.String getName()
getName
in interface JndiReference
public java.lang.String getKey()
Keyable
public java.lang.String getType()
getType
in interface JndiReference
public void setName(java.lang.String name)
setName
in interface JndiReference
public void setType(java.lang.String type)
setType
in interface JndiReference
public Text[] getDescriptions()
public void setDescriptions(Text[] text)
public java.lang.String getDescription()
public java.lang.String getPersistenceContextRefName()
public void setPersistenceContextRefName(java.lang.String value)
public java.lang.String getPersistenceUnitName()
getPersistenceUnitName
in interface PersistenceRef
public void setPersistenceUnitName(java.lang.String value)
setPersistenceUnitName
in interface PersistenceRef
public PersistenceContextType getPersistenceContextType()
public void setPersistenceContextType(PersistenceContextType value)
public PersistenceContextSynchronization getPersistenceContextSynchronization()
public void setPersistenceContextSynchronization(PersistenceContextSynchronization persistenceContextSynchronization)
public java.util.List<Property> getPersistenceProperty()
public java.lang.String getMappedName()
getMappedName
in interface JndiReference
public void setMappedName(java.lang.String value)
setMappedName
in interface JndiReference
public java.lang.String getLookupName()
getLookupName
in interface JndiReference
public void setLookupName(java.lang.String lookupName)
setLookupName
in interface JndiReference
public java.util.Set<InjectionTarget> getInjectionTarget()
getInjectionTarget
in interface Injectable
public java.lang.String getId()
public void setId(java.lang.String value)
public void setPersistenceProperty(java.util.List<Property> persistenceProperty)
public java.lang.String toString()
toString
in class java.lang.Object