public class PersistenceContextRef extends 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 String |
id |
protected Set<InjectionTarget> |
injectionTarget |
protected String |
lookupName |
protected String |
mappedName |
protected String |
persistenceContextRefName |
protected PersistenceContextSynchronization |
persistenceContextSynchronization |
protected PersistenceContextType |
persistenceContextType |
protected List<Property> |
persistenceProperty |
protected String |
persistenceUnitName |
| Constructor and Description |
|---|
PersistenceContextRef() |
PersistenceContextRef(String persistenceContextRefName,
String persistenceUnitName) |
PersistenceContextRef(String persistenceContextRefName,
String persistenceUnitName,
PersistenceContextType persistenceContextType,
List<Property> persistenceProperty) |
protected TextMap description
protected String persistenceContextRefName
protected String persistenceUnitName
protected PersistenceContextType persistenceContextType
protected PersistenceContextSynchronization persistenceContextSynchronization
protected String mappedName
protected String lookupName
protected Set<InjectionTarget> injectionTarget
protected String id
public PersistenceContextRef()
public PersistenceContextRef(String persistenceContextRefName, String persistenceUnitName)
public PersistenceContextRef(String persistenceContextRefName, String persistenceUnitName, PersistenceContextType persistenceContextType, List<Property> persistenceProperty)
public PersistenceContextRef name(String persistenceContextRefName)
public PersistenceContextRef unit(String persistenceUnit)
public PersistenceContextRef type(PersistenceContextType persistenceContextType)
public PersistenceContextRef mappedName(String mappedName)
public PersistenceContextRef lookup(String lookupName)
public PersistenceContextRef injectionTarget(String className, String property)
public PersistenceContextRef injectionTarget(Class<?> clazz, String property)
public PersistenceContextRef property(String name, String value)
public String getName()
getName in interface JndiReferencepublic String getKey()
Keyablepublic String getType()
getType in interface JndiReferencepublic void setName(String name)
setName in interface JndiReferencepublic void setType(String type)
setType in interface JndiReferencepublic Text[] getDescriptions()
public void setDescriptions(Text[] text)
public String getDescription()
public String getPersistenceContextRefName()
public void setPersistenceContextRefName(String value)
public String getPersistenceUnitName()
getPersistenceUnitName in interface PersistenceRefpublic void setPersistenceUnitName(String value)
setPersistenceUnitName in interface PersistenceRefpublic PersistenceContextType getPersistenceContextType()
public void setPersistenceContextType(PersistenceContextType value)
public PersistenceContextSynchronization getPersistenceContextSynchronization()
public void setPersistenceContextSynchronization(PersistenceContextSynchronization persistenceContextSynchronization)
public String getMappedName()
getMappedName in interface JndiReferencepublic void setMappedName(String value)
setMappedName in interface JndiReferencepublic String getLookupName()
getLookupName in interface JndiReferencepublic void setLookupName(String lookupName)
setLookupName in interface JndiReferencepublic Set<InjectionTarget> getInjectionTarget()
getInjectionTarget in interface Injectablepublic String getId()
public void setId(String value)
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.