|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PersistenceContextRefType<T>
This interface defines the contract for the persistence-context-refType xsd type
Original Documentation:
[
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:
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getDescriptionList()
Returns all description elements |
java.util.List<InjectionTargetType<PersistenceContextRefType<T>>> |
getInjectionTargetList()
Returns all injection-target elements |
java.lang.String |
getMappedName()
Returns the mapped-name element |
java.lang.String |
getPersistenceContextRefName()
Returns the persistence-context-ref-name element |
PersistenceContextTypeType |
getPersistenceContextType()
Returns the persistence-context-type element |
java.lang.String |
getPersistenceContextTypeAsString()
Returns the persistence-context-type element |
java.util.List<PropertyType<PersistenceContextRefType<T>>> |
getPersistencePropertyList()
Returns all persistence-property elements |
java.lang.String |
getPersistenceUnitName()
Returns the persistence-unit-name element |
InjectionTargetType<PersistenceContextRefType<T>> |
injectionTarget()
Returns the injection-target element |
PropertyType<PersistenceContextRefType<T>> |
persistenceProperty()
Returns the persistence-property element |
PersistenceContextRefType<T> |
removeAllDescription()
Removes the description element |
PersistenceContextRefType<T> |
removeAllInjectionTarget()
Removes all injection-target elements |
PersistenceContextRefType<T> |
removeAllPersistenceProperty()
Removes all persistence-property elements |
PersistenceContextRefType<T> |
removeMappedName()
Removes the mapped-name element |
PersistenceContextRefType<T> |
removePersistenceContextRefName()
Removes the persistence-context-ref-name element |
PersistenceContextRefType<T> |
removePersistenceUnitName()
Removes the persistence-unit-name element |
PersistenceContextRefType<T> |
setDescription(java.lang.String description)
Creates a new description element |
PersistenceContextRefType<T> |
setDescriptionList(java.lang.String... values)
Creates for all String objects representing description elements,
a new description element |
PersistenceContextRefType<T> |
setMappedName(java.lang.String mappedName)
If not already created, a new mapped-name element with the given value will be created. |
PersistenceContextRefType<T> |
setPersistenceContextRefName(java.lang.String persistenceContextRefName)
If not already created, a new persistence-context-ref-name element with the given value will be created. |
PersistenceContextRefType<T> |
setPersistenceContextType(PersistenceContextTypeType persistenceContextType)
If not already created, a new persistence-context-type element with the given value will be created. |
PersistenceContextRefType<T> |
setPersistenceContextType(java.lang.String persistenceContextType)
If not already created, a new persistence-context-type element with the given value will be created. |
PersistenceContextRefType<T> |
setPersistenceUnitName(java.lang.String persistenceUnitName)
If not already created, a new persistence-unit-name element with the given value will be created. |
| Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child |
|---|
up |
| Method Detail |
|---|
PersistenceContextRefType<T> setMappedName(java.lang.String mappedName)
mapped-name element with the given value will be created.
Otherwise, the existing mapped-name element will be updated with the given value.
PersistenceContextRefTypePersistenceContextRefType<T> removeMappedName()
mapped-name element
PersistenceContextRefTypejava.lang.String getMappedName()
mapped-name element
mapped-namePersistenceContextRefType<T> removeAllInjectionTarget()
injection-target elements
PersistenceContextRefTypeInjectionTargetType<PersistenceContextRefType<T>> injectionTarget()
injection-target element
injection-targetjava.util.List<InjectionTargetType<PersistenceContextRefType<T>>> getInjectionTargetList()
injection-target elements
injection-targetPersistenceContextRefType<T> setDescription(java.lang.String description)
description element
PersistenceContextRefTypePersistenceContextRefType<T> setDescriptionList(java.lang.String... values)
description elements,
a new description element
list - of description objects
PersistenceContextRefTypePersistenceContextRefType<T> removeAllDescription()
description element
PersistenceContextRefTypejava.util.List<java.lang.String> getDescriptionList()
description elements
descriptionPersistenceContextRefType<T> setPersistenceContextRefName(java.lang.String persistenceContextRefName)
persistence-context-ref-name element with the given value will be created.
Otherwise, the existing persistence-context-ref-name element will be updated with the given value.
PersistenceContextRefTypePersistenceContextRefType<T> removePersistenceContextRefName()
persistence-context-ref-name element
PersistenceContextRefTypejava.lang.String getPersistenceContextRefName()
persistence-context-ref-name element
persistence-context-ref-namePersistenceContextRefType<T> setPersistenceUnitName(java.lang.String persistenceUnitName)
persistence-unit-name element with the given value will be created.
Otherwise, the existing persistence-unit-name element will be updated with the given value.
PersistenceContextRefTypePersistenceContextRefType<T> removePersistenceUnitName()
persistence-unit-name element
PersistenceContextRefTypejava.lang.String getPersistenceUnitName()
persistence-unit-name element
persistence-unit-namePersistenceContextRefType<T> setPersistenceContextType(PersistenceContextTypeType persistenceContextType)
persistence-context-type element with the given value will be created.
Otherwise, the existing persistence-context-type element will be updated with the given value.
PersistenceContextRefTypePersistenceContextRefType<T> setPersistenceContextType(java.lang.String persistenceContextType)
persistence-context-type element with the given value will be created.
Otherwise, the existing persistence-context-type element will be updated with the given value.
PersistenceContextRefTypePersistenceContextTypeType getPersistenceContextType()
persistence-context-type element
persistence-context-typejava.lang.String getPersistenceContextTypeAsString()
persistence-context-type element
persistence-context-typePersistenceContextRefType<T> removeAllPersistenceProperty()
persistence-property elements
PersistenceContextRefTypePropertyType<PersistenceContextRefType<T>> persistenceProperty()
persistence-property element
persistence-propertyjava.util.List<PropertyType<PersistenceContextRefType<T>>> getPersistencePropertyList()
persistence-property elements
persistence-property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||