org.apache.openejb.jee
Class PersistenceUnitRef
java.lang.Object
org.apache.openejb.jee.PersistenceUnitRef
- All Implemented Interfaces:
- Injectable, JndiReference, Keyable<String>, PersistenceRef
public class PersistenceUnitRef
- extends Object
- implements JndiReference, PersistenceRef
javaee6.xsd
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>
description
protected TextMap description
persistenceUnitRefName
protected String persistenceUnitRefName
persistenceUnitName
protected String persistenceUnitName
mappedName
protected String mappedName
lookupName
protected String lookupName
injectionTarget
protected Set<InjectionTarget> injectionTarget
id
protected String id
PersistenceUnitRef
public PersistenceUnitRef()
PersistenceUnitRef
public PersistenceUnitRef(String persistenceUnitRefName,
String persistenceUnitName)
name
public PersistenceUnitRef name(String persistenceUnitRefName)
unit
public PersistenceUnitRef unit(String persistenceUnit)
mappedName
public PersistenceUnitRef mappedName(String mappedName)
lookup
public PersistenceUnitRef lookup(String lookupName)
injectionTarget
public PersistenceUnitRef injectionTarget(String className,
String property)
injectionTarget
public PersistenceUnitRef injectionTarget(Class<?> clazz,
String property)
getName
public String getName()
- Specified by:
getName in interface JndiReference
getType
public String getType()
- Specified by:
getType in interface JndiReference
setName
public void setName(String name)
- Specified by:
setName in interface JndiReference
getKey
public String getKey()
- Description copied from interface:
Keyable
- Gets the immutable key for this object.
- Specified by:
getKey in interface Keyable<String>
- Returns:
- gets the immutable key for this object
setType
public void setType(String type)
- Specified by:
setType in interface JndiReference
getDescriptions
public Text[] getDescriptions()
setDescriptions
public void setDescriptions(Text[] text)
getDescription
public String getDescription()
getPersistenceUnitRefName
public String getPersistenceUnitRefName()
setPersistenceUnitRefName
public void setPersistenceUnitRefName(String value)
getPersistenceUnitName
public String getPersistenceUnitName()
- Specified by:
getPersistenceUnitName in interface PersistenceRef
setPersistenceUnitName
public void setPersistenceUnitName(String value)
- Specified by:
setPersistenceUnitName in interface PersistenceRef
getMappedName
public String getMappedName()
- Specified by:
getMappedName in interface JndiReference
setMappedName
public void setMappedName(String value)
- Specified by:
setMappedName in interface JndiReference
getLookupName
public String getLookupName()
- Specified by:
getLookupName in interface JndiReference
setLookupName
public void setLookupName(String lookupName)
- Specified by:
setLookupName in interface JndiReference
getInjectionTarget
public Set<InjectionTarget> getInjectionTarget()
- Specified by:
getInjectionTarget in interface Injectable
getId
public String getId()
setId
public void setId(String value)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.