org.apache.openejb.jee
Class PersistenceContextRef
java.lang.Object
org.apache.openejb.jee.PersistenceContextRef
- All Implemented Interfaces:
- Injectable, JndiReference, Keyable<String>, PersistenceRef
public class PersistenceContextRef
- extends Object
- implements JndiReference, PersistenceRef
The persistence-context-ref element contains a declaration
of Deployment Component's reference to a persistence context
associated within a Deployment Component's
environment. It consists of:
- an optional description
- the persistence context reference name
- an optional persistence unit name. If not specified,
the default persistence unit is assumed.
- an optional specification as to whether
the persistence context type is Transaction or
Extended. If not specified, Transaction is assumed.
- an optional list of persistence properties
- optional injection targets
Examples:
myPersistenceContext
myPersistenceContext
PersistenceUnit1
Extended
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
description
protected List<Text> description
persistenceContextRefName
protected String persistenceContextRefName
persistenceUnitName
protected String persistenceUnitName
persistenceContextType
protected PersistenceContextType persistenceContextType
persistenceProperty
protected List<Property> persistenceProperty
mappedName
protected String mappedName
injectionTarget
protected List<InjectionTarget> injectionTarget
id
protected String id
PersistenceContextRef
public PersistenceContextRef()
PersistenceContextRef
public PersistenceContextRef(String persistenceContextRefName,
String persistenceUnitName)
PersistenceContextRef
public PersistenceContextRef(String persistenceContextRefName,
String persistenceUnitName,
PersistenceContextType persistenceContextType,
List<Property> persistenceProperty)
getName
public String getName()
- Specified by:
getName
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
getType
public String getType()
- Specified by:
getType
in interface JndiReference
setName
public void setName(String name)
- Specified by:
setName
in interface JndiReference
setType
public void setType(String type)
- Specified by:
setType
in interface JndiReference
getDescription
public List<Text> getDescription()
getPersistenceContextRefName
public String getPersistenceContextRefName()
setPersistenceContextRefName
public void setPersistenceContextRefName(String value)
getPersistenceUnitName
public String getPersistenceUnitName()
- Specified by:
getPersistenceUnitName
in interface PersistenceRef
setPersistenceUnitName
public void setPersistenceUnitName(String value)
- Specified by:
setPersistenceUnitName
in interface PersistenceRef
getPersistenceContextType
public PersistenceContextType getPersistenceContextType()
setPersistenceContextType
public void setPersistenceContextType(PersistenceContextType value)
getPersistenceProperty
public List<Property> getPersistenceProperty()
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)
setPersistenceProperty
public void setPersistenceProperty(List<Property> persistenceProperty)
Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.