Class PersistenceUnitRefTypeImpl<T>
java.lang.Object
org.jboss.shrinkwrap.descriptor.impl.javaee7.PersistenceUnitRefTypeImpl<T>
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,PersistenceUnitRefType<T>
public class PersistenceUnitRefTypeImpl<T>
extends Object
implements org.jboss.shrinkwrap.descriptor.api.Child<T>, PersistenceUnitRefType<T>
This class implements the
persistence-unit-refType xsd type-
Constructor Summary
ConstructorsConstructorDescriptionPersistenceUnitRefTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node) PersistenceUnitRefTypeImpl(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-targetelementdescription(String... values) Creates for all String objects representingdescriptionelements, a newdescriptionelementReturns alldescriptionelementsReturns allinjection-targetelementsgetId()Returns theidattributeReturns themapped-nameelementIf not already created, a newinjection-targetelement will be created and returned.Returns thepersistence-unit-nameelementReturns thepersistence-unit-ref-nameelementSets theidattributemappedName(String mappedName) Sets themapped-nameelementpersistenceUnitName(String persistenceUnitName) Sets thepersistence-unit-nameelementpersistenceUnitRefName(String persistenceUnitRefName) Sets thepersistence-unit-ref-nameelementRemoves thedescriptionelementRemoves allinjection-targetelementsremoveId()Removes theidattributeRemoves themapped-nameelementRemoves thepersistence-unit-nameelementRemoves thepersistence-unit-ref-nameelementup()
-
Constructor Details
-
PersistenceUnitRefTypeImpl
-
PersistenceUnitRefTypeImpl
-
-
Method Details
-
up
- Specified by:
upin interfaceorg.jboss.shrinkwrap.descriptor.api.Child<T>
-
mappedName
Sets themapped-nameelement- Specified by:
mappedNamein interfacePersistenceUnitRefType<T>- Parameters:
mappedName- the value for the elementmapped-name- Returns:
- the current instance of
PersistenceUnitRefType
-
getMappedName
Returns themapped-nameelement- Specified by:
getMappedNamein interfacePersistenceUnitRefType<T>- Returns:
- the node defined for the element
mapped-name
-
removeMappedName
Removes themapped-nameelement- Specified by:
removeMappedNamein interfacePersistenceUnitRefType<T>- Returns:
- the current instance of
PersistenceUnitRefType
-
getOrCreateInjectionTarget
If not already created, a newinjection-targetelement will be created and returned. Otherwise, the first existinginjection-targetelement will be returned.- Specified by:
getOrCreateInjectionTargetin interfacePersistenceUnitRefType<T>- Returns:
- the instance defined for the element
injection-target
-
createInjectionTarget
Creates a newinjection-targetelement- Specified by:
createInjectionTargetin interfacePersistenceUnitRefType<T>- Returns:
- the new created instance of
InjectionTargetTypeinvalid input: '<'PersistenceUnitRefType>
-
getAllInjectionTarget
Returns allinjection-targetelements- Specified by:
getAllInjectionTargetin interfacePersistenceUnitRefType<T>- Returns:
- list of
injection-target
-
removeAllInjectionTarget
Removes allinjection-targetelements- Specified by:
removeAllInjectionTargetin interfacePersistenceUnitRefType<T>- Returns:
- the current instance of
InjectionTargetTypeinvalid input: '<'PersistenceUnitRefType>
-
description
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Specified by:
descriptionin interfacePersistenceUnitRefType<T>- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
PersistenceUnitRefType
-
getAllDescription
Returns alldescriptionelements- Specified by:
getAllDescriptionin interfacePersistenceUnitRefType<T>- Returns:
- list of
description
-
removeAllDescription
Removes thedescriptionelement- Specified by:
removeAllDescriptionin interfacePersistenceUnitRefType<T>- Returns:
- the current instance of
PersistenceUnitRefType
-
persistenceUnitRefName
Sets thepersistence-unit-ref-nameelement- Specified by:
persistenceUnitRefNamein interfacePersistenceUnitRefType<T>- Parameters:
persistenceUnitRefName- the value for the elementpersistence-unit-ref-name- Returns:
- the current instance of
PersistenceUnitRefType
-
getPersistenceUnitRefName
Returns thepersistence-unit-ref-nameelement- Specified by:
getPersistenceUnitRefNamein interfacePersistenceUnitRefType<T>- Returns:
- the node defined for the element
persistence-unit-ref-name
-
removePersistenceUnitRefName
Removes thepersistence-unit-ref-nameelement- Specified by:
removePersistenceUnitRefNamein interfacePersistenceUnitRefType<T>- Returns:
- the current instance of
PersistenceUnitRefType
-
persistenceUnitName
Sets thepersistence-unit-nameelement- Specified by:
persistenceUnitNamein interfacePersistenceUnitRefType<T>- Parameters:
persistenceUnitName- the value for the elementpersistence-unit-name- Returns:
- the current instance of
PersistenceUnitRefType
-
getPersistenceUnitName
Returns thepersistence-unit-nameelement- Specified by:
getPersistenceUnitNamein interfacePersistenceUnitRefType<T>- Returns:
- the node defined for the element
persistence-unit-name
-
removePersistenceUnitName
Removes thepersistence-unit-nameelement- Specified by:
removePersistenceUnitNamein interfacePersistenceUnitRefType<T>- Returns:
- the current instance of
PersistenceUnitRefType
-
id
Sets theidattribute- Specified by:
idin interfacePersistenceUnitRefType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
PersistenceUnitRefType
-
getId
Returns theidattribute- Specified by:
getIdin interfacePersistenceUnitRefType<T>- Returns:
- the value defined for the attribute
id
-
removeId
Removes theidattribute- Specified by:
removeIdin interfacePersistenceUnitRefType<T>- Returns:
- the current instance of
PersistenceUnitRefType
-