|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PersistenceContextRefType
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:
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}resourceGroup"/>
</sequence>
<attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
</restriction>
</complexContent>
</complexType>
| Method Detail |
|---|
DescriptionType[] getDescription()
DescriptionTypeDescriptionType getDescription(int idx)
DescriptionTypeint getDescriptionLength()
void setDescription(DescriptionType[] values)
values - allowed objects are
DescriptionType
DescriptionType setDescription(int idx,
DescriptionType value)
value - allowed object is
DescriptionTypeJndiNameType getPersistenceContextRefName()
JndiNameTypevoid setPersistenceContextRefName(JndiNameType value)
value - allowed object is
JndiNameTypeString getPersistenceUnitName()
Stringvoid setPersistenceUnitName(String value)
value - allowed object is
StringPersistenceContextTypeType getPersistenceContextType()
PersistenceContextTypeTypevoid setPersistenceContextType(PersistenceContextTypeType value)
value - allowed object is
PersistenceContextTypeTypePropertyType[] getPersistenceProperty()
PropertyTypePropertyType getPersistenceProperty(int idx)
PropertyTypeint getPersistencePropertyLength()
void setPersistenceProperty(PropertyType[] values)
values - allowed objects are
PropertyType
PropertyType setPersistenceProperty(int idx,
PropertyType value)
value - allowed object is
PropertyTypeXsdStringType getMappedName()
XsdStringTypevoid setMappedName(XsdStringType value)
value - allowed object is
XsdStringTypeInjectionTargetType[] getInjectionTarget()
InjectionTargetTypeInjectionTargetType getInjectionTarget(int idx)
InjectionTargetTypeint getInjectionTargetLength()
void setInjectionTarget(InjectionTargetType[] values)
values - allowed objects are
InjectionTargetType
InjectionTargetType setInjectionTarget(int idx,
InjectionTargetType value)
value - allowed object is
InjectionTargetTypeString getId()
Stringvoid setId(String value)
value - allowed object is
String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||