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
The persistence-unit-ref element contains a declaration
of Deployment Component's reference to a persistence unit
associated within a Deployment Component's
environment. It consists of:
- an optional description
- the persistence unit reference name
- an optional persistence unit name. If not specified,
the default persistence unit is assumed.
- optional injection targets
Examples:
myPersistenceUnit
myPersistenceUnit
PersistenceUnit1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
description
protected List<Text> description
persistenceUnitRefName
protected String persistenceUnitRefName
persistenceUnitName
protected String persistenceUnitName
mappedName
protected String mappedName
injectionTarget
protected List<InjectionTarget> injectionTarget
id
protected String id
PersistenceUnitRef
public PersistenceUnitRef()
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
getDescription
public List<Text> 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
getInjectionTarget
public List<InjectionTarget> getInjectionTarget()
- Specified by:
getInjectionTarget
in interface Injectable
getId
public String getId()
setId
public void setId(String value)
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.