Interface PersistenceUnitRefType<T>
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
PersistenceUnitRefTypeImpl
public interface PersistenceUnitRefType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>
This interface defines the contract for the
persistence-unit-refType xsd type-
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-nameelementMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
-
Method Details
-
mappedName
Sets themapped-nameelement- Parameters:
mappedName- the value for the elementmapped-name- Returns:
- the current instance of
PersistenceUnitRefType
-
getMappedName
String getMappedName()Returns themapped-nameelement- Returns:
- the node defined for the element
mapped-name
-
removeMappedName
PersistenceUnitRefType<T> removeMappedName()Removes themapped-nameelement- Returns:
- the current instance of
PersistenceUnitRefType
-
getOrCreateInjectionTarget
InjectionTargetType<PersistenceUnitRefType<T>> getOrCreateInjectionTarget()If not already created, a newinjection-targetelement will be created and returned. Otherwise, the first existinginjection-targetelement will be returned.- Returns:
- the instance defined for the element
injection-target
-
createInjectionTarget
InjectionTargetType<PersistenceUnitRefType<T>> createInjectionTarget()Creates a newinjection-targetelement- Returns:
- the new created instance of
InjectionTargetType<PersistenceUnitRefType>
-
getAllInjectionTarget
List<InjectionTargetType<PersistenceUnitRefType<T>>> getAllInjectionTarget()Returns allinjection-targetelements- Returns:
- list of
injection-target
-
removeAllInjectionTarget
PersistenceUnitRefType<T> removeAllInjectionTarget()Removes allinjection-targetelements- Returns:
- the current instance of
InjectionTargetType<PersistenceUnitRefType>
-
description
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
PersistenceUnitRefType
-
getAllDescription
Returns alldescriptionelements- Returns:
- list of
description
-
removeAllDescription
PersistenceUnitRefType<T> removeAllDescription()Removes thedescriptionelement- Returns:
- the current instance of
PersistenceUnitRefType
-
persistenceUnitRefName
Sets thepersistence-unit-ref-nameelement- Parameters:
persistenceUnitRefName- the value for the elementpersistence-unit-ref-name- Returns:
- the current instance of
PersistenceUnitRefType
-
getPersistenceUnitRefName
String getPersistenceUnitRefName()Returns thepersistence-unit-ref-nameelement- Returns:
- the node defined for the element
persistence-unit-ref-name
-
removePersistenceUnitRefName
PersistenceUnitRefType<T> removePersistenceUnitRefName()Removes thepersistence-unit-ref-nameelement- Returns:
- the current instance of
PersistenceUnitRefType
-
persistenceUnitName
Sets thepersistence-unit-nameelement- Parameters:
persistenceUnitName- the value for the elementpersistence-unit-name- Returns:
- the current instance of
PersistenceUnitRefType
-
getPersistenceUnitName
String getPersistenceUnitName()Returns thepersistence-unit-nameelement- Returns:
- the node defined for the element
persistence-unit-name
-
removePersistenceUnitName
PersistenceUnitRefType<T> removePersistenceUnitName()Removes thepersistence-unit-nameelement- Returns:
- the current instance of
PersistenceUnitRefType
-
id
Sets theidattribute- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
PersistenceUnitRefType
-
getId
String getId()Returns theidattribute- Returns:
- the value defined for the attribute
id
-
removeId
PersistenceUnitRefType<T> removeId()Removes theidattribute- Returns:
- the current instance of
PersistenceUnitRefType
-