Class PersistenceContextRefTypeImpl<T>
java.lang.Object
org.jboss.shrinkwrap.descriptor.impl.javaee6.PersistenceContextRefTypeImpl<T>
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,PersistenceContextRefType<T>
public class PersistenceContextRefTypeImpl<T>
extends Object
implements org.jboss.shrinkwrap.descriptor.api.Child<T>, PersistenceContextRefType<T>
This class implements the
persistence-context-refType xsd type-
Constructor Summary
ConstructorsConstructorDescriptionPersistenceContextRefTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node) PersistenceContextRefTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode) -
Method Summary
Modifier and TypeMethodDescriptionCreates a newinjection-targetelementCreates a newpersistence-propertyelementdescription(String... values) Creates for all String objects representingdescriptionelements, a newdescriptionelementReturns alldescriptionelementsReturns allinjection-targetelementsReturns allpersistence-propertyelementsgetId()Returns theidattributeReturns themapped-nameelementIf not already created, a newinjection-targetelement will be created and returned.If not already created, a newpersistence-propertyelement will be created and returned.Returns thepersistence-context-ref-nameelementReturns thepersistence-context-typeelementReturns thepersistence-context-typeelementReturns thepersistence-unit-nameelementSets theidattributemappedName(String mappedName) Sets themapped-nameelementpersistenceContextRefName(String persistenceContextRefName) Sets thepersistence-context-ref-nameelementpersistenceContextType(String persistenceContextType) Sets thepersistence-context-typeelementpersistenceContextType(PersistenceContextTypeType persistenceContextType) Sets thepersistence-context-typeelementpersistenceUnitName(String persistenceUnitName) Sets thepersistence-unit-nameelementRemoves thedescriptionelementRemoves allinjection-targetelementsRemoves allpersistence-propertyelementsremoveId()Removes theidattributeRemoves themapped-nameelementRemoves thepersistence-context-ref-nameelementRemoves thepersistence-context-typeattributeRemoves thepersistence-unit-nameelementup()
-
Constructor Details
-
PersistenceContextRefTypeImpl
-
PersistenceContextRefTypeImpl
-
-
Method Details
-
up
- Specified by:
upin interfaceorg.jboss.shrinkwrap.descriptor.api.Child<T>
-
mappedName
Sets themapped-nameelement- Specified by:
mappedNamein interfacePersistenceContextRefType<T>- Parameters:
mappedName- the value for the elementmapped-name- Returns:
- the current instance of
PersistenceContextRefType
-
getMappedName
Returns themapped-nameelement- Specified by:
getMappedNamein interfacePersistenceContextRefType<T>- Returns:
- the node defined for the element
mapped-name
-
removeMappedName
Removes themapped-nameelement- Specified by:
removeMappedNamein interfacePersistenceContextRefType<T>- Returns:
- the current instance of
PersistenceContextRefType
-
getOrCreateInjectionTarget
If not already created, a newinjection-targetelement will be created and returned. Otherwise, the first existinginjection-targetelement will be returned.- Specified by:
getOrCreateInjectionTargetin interfacePersistenceContextRefType<T>- Returns:
- the instance defined for the element
injection-target
-
createInjectionTarget
Creates a newinjection-targetelement- Specified by:
createInjectionTargetin interfacePersistenceContextRefType<T>- Returns:
- the new created instance of
InjectionTargetType<PersistenceContextRefType>
-
getAllInjectionTarget
Returns allinjection-targetelements- Specified by:
getAllInjectionTargetin interfacePersistenceContextRefType<T>- Returns:
- list of
injection-target
-
removeAllInjectionTarget
Removes allinjection-targetelements- Specified by:
removeAllInjectionTargetin interfacePersistenceContextRefType<T>- Returns:
- the current instance of
InjectionTargetType<PersistenceContextRefType>
-
description
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Specified by:
descriptionin interfacePersistenceContextRefType<T>- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
PersistenceContextRefType
-
getAllDescription
Returns alldescriptionelements- Specified by:
getAllDescriptionin interfacePersistenceContextRefType<T>- Returns:
- list of
description
-
removeAllDescription
Removes thedescriptionelement- Specified by:
removeAllDescriptionin interfacePersistenceContextRefType<T>- Returns:
- the current instance of
PersistenceContextRefType
-
persistenceContextRefName
Sets thepersistence-context-ref-nameelement- Specified by:
persistenceContextRefNamein interfacePersistenceContextRefType<T>- Parameters:
persistenceContextRefName- the value for the elementpersistence-context-ref-name- Returns:
- the current instance of
PersistenceContextRefType
-
getPersistenceContextRefName
Returns thepersistence-context-ref-nameelement- Specified by:
getPersistenceContextRefNamein interfacePersistenceContextRefType<T>- Returns:
- the node defined for the element
persistence-context-ref-name
-
removePersistenceContextRefName
Removes thepersistence-context-ref-nameelement- Specified by:
removePersistenceContextRefNamein interfacePersistenceContextRefType<T>- Returns:
- the current instance of
PersistenceContextRefType
-
persistenceUnitName
Sets thepersistence-unit-nameelement- Specified by:
persistenceUnitNamein interfacePersistenceContextRefType<T>- Parameters:
persistenceUnitName- the value for the elementpersistence-unit-name- Returns:
- the current instance of
PersistenceContextRefType
-
getPersistenceUnitName
Returns thepersistence-unit-nameelement- Specified by:
getPersistenceUnitNamein interfacePersistenceContextRefType<T>- Returns:
- the node defined for the element
persistence-unit-name
-
removePersistenceUnitName
Removes thepersistence-unit-nameelement- Specified by:
removePersistenceUnitNamein interfacePersistenceContextRefType<T>- Returns:
- the current instance of
PersistenceContextRefType
-
persistenceContextType
public PersistenceContextRefType<T> persistenceContextType(PersistenceContextTypeType persistenceContextType) Sets thepersistence-context-typeelement- Specified by:
persistenceContextTypein interfacePersistenceContextRefType<T>- Parameters:
persistenceContextType- the value for the elementpersistence-context-type- Returns:
- the current instance of
PersistenceContextRefType
-
persistenceContextType
Sets thepersistence-context-typeelement- Specified by:
persistenceContextTypein interfacePersistenceContextRefType<T>- Parameters:
persistenceContextType- the value for the elementpersistence-context-type- Returns:
- the current instance of
PersistenceContextRefType
-
getPersistenceContextType
Returns thepersistence-context-typeelement- Specified by:
getPersistenceContextTypein interfacePersistenceContextRefType<T>- Returns:
- the value found for the element
persistence-context-type
-
getPersistenceContextTypeAsString
Returns thepersistence-context-typeelement- Specified by:
getPersistenceContextTypeAsStringin interfacePersistenceContextRefType<T>- Returns:
- the value found for the element
persistence-context-type
-
removePersistenceContextType
Removes thepersistence-context-typeattribute- Specified by:
removePersistenceContextTypein interfacePersistenceContextRefType<T>- Returns:
- the current instance of
PersistenceContextRefType
-
getOrCreatePersistenceProperty
If not already created, a newpersistence-propertyelement will be created and returned. Otherwise, the first existingpersistence-propertyelement will be returned.- Specified by:
getOrCreatePersistencePropertyin interfacePersistenceContextRefType<T>- Returns:
- the instance defined for the element
persistence-property
-
createPersistenceProperty
Creates a newpersistence-propertyelement- Specified by:
createPersistencePropertyin interfacePersistenceContextRefType<T>- Returns:
- the new created instance of
PropertyType<PersistenceContextRefType>
-
getAllPersistenceProperty
Returns allpersistence-propertyelements- Specified by:
getAllPersistencePropertyin interfacePersistenceContextRefType<T>- Returns:
- list of
persistence-property
-
removeAllPersistenceProperty
Removes allpersistence-propertyelements- Specified by:
removeAllPersistencePropertyin interfacePersistenceContextRefType<T>- Returns:
- the current instance of
PropertyType<PersistenceContextRefType>
-
id
Sets theidattribute- Specified by:
idin interfacePersistenceContextRefType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
PersistenceContextRefType
-
getId
Returns theidattribute- Specified by:
getIdin interfacePersistenceContextRefType<T>- Returns:
- the value defined for the attribute
id
-
removeId
Removes theidattribute- Specified by:
removeIdin interfacePersistenceContextRefType<T>- Returns:
- the current instance of
PersistenceContextRefType
-