public class PersistenceUnitRef extends Object implements JndiReference, PersistenceRef
Java class for persistence-unit-refType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="persistence-unit-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-unit-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"/>
<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 |
persistenceUnitName |
protected String |
persistenceUnitRefName |
| Constructor and Description |
|---|
PersistenceUnitRef() |
PersistenceUnitRef(String persistenceUnitRefName,
String persistenceUnitName) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
Text[] |
getDescriptions() |
String |
getId() |
Set<InjectionTarget> |
getInjectionTarget() |
String |
getKey()
Gets the immutable key for this object.
|
String |
getLookupName() |
String |
getMappedName() |
String |
getName() |
String |
getPersistenceUnitName() |
String |
getPersistenceUnitRefName() |
String |
getType() |
PersistenceUnitRef |
injectionTarget(Class<?> clazz,
String property) |
PersistenceUnitRef |
injectionTarget(String className,
String property) |
PersistenceUnitRef |
lookup(String lookupName) |
PersistenceUnitRef |
mappedName(String mappedName) |
PersistenceUnitRef |
name(String persistenceUnitRefName) |
void |
setDescriptions(Text[] text) |
void |
setId(String value) |
void |
setLookupName(String lookupName) |
void |
setMappedName(String value) |
void |
setName(String name) |
void |
setPersistenceUnitName(String value) |
void |
setPersistenceUnitRefName(String value) |
void |
setType(String type) |
String |
toString() |
PersistenceUnitRef |
unit(String persistenceUnit) |
protected TextMap description
protected String persistenceUnitRefName
protected String persistenceUnitName
protected String mappedName
protected String lookupName
protected Set<InjectionTarget> injectionTarget
protected String id
public PersistenceUnitRef name(String persistenceUnitRefName)
public PersistenceUnitRef unit(String persistenceUnit)
public PersistenceUnitRef mappedName(String mappedName)
public PersistenceUnitRef lookup(String lookupName)
public PersistenceUnitRef injectionTarget(String className, String property)
public PersistenceUnitRef injectionTarget(Class<?> clazz, String property)
public String getName()
getName in interface JndiReferencepublic String getType()
getType in interface JndiReferencepublic void setName(String name)
setName in interface JndiReferencepublic String getKey()
Keyablepublic void setType(String type)
setType in interface JndiReferencepublic Text[] getDescriptions()
public void setDescriptions(Text[] text)
public String getDescription()
public String getPersistenceUnitRefName()
public void setPersistenceUnitRefName(String value)
public String getPersistenceUnitName()
getPersistenceUnitName in interface PersistenceRefpublic void setPersistenceUnitName(String value)
setPersistenceUnitName in interface PersistenceRefpublic 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–2017 The Apache Software Foundation. All rights reserved.