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 thepersistence-unit-refTypexsd type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InjectionTargetType<PersistenceUnitRefType<T>>createInjectionTarget()Creates a newinjection-targetelementPersistenceUnitRefType<T>description(String... values)Creates for all String objects representingdescriptionelements, a newdescriptionelementList<String>getAllDescription()Returns alldescriptionelementsList<InjectionTargetType<PersistenceUnitRefType<T>>>getAllInjectionTarget()Returns allinjection-targetelementsStringgetId()Returns theidattributeStringgetMappedName()Returns themapped-nameelementInjectionTargetType<PersistenceUnitRefType<T>>getOrCreateInjectionTarget()If not already created, a newinjection-targetelement will be created and returned.StringgetPersistenceUnitName()Returns thepersistence-unit-nameelementStringgetPersistenceUnitRefName()Returns thepersistence-unit-ref-nameelementPersistenceUnitRefType<T>id(String id)Sets theidattributePersistenceUnitRefType<T>mappedName(String mappedName)Sets themapped-nameelementPersistenceUnitRefType<T>persistenceUnitName(String persistenceUnitName)Sets thepersistence-unit-nameelementPersistenceUnitRefType<T>persistenceUnitRefName(String persistenceUnitRefName)Sets thepersistence-unit-ref-nameelementPersistenceUnitRefType<T>removeAllDescription()Removes thedescriptionelementPersistenceUnitRefType<T>removeAllInjectionTarget()Removes allinjection-targetelementsPersistenceUnitRefType<T>removeId()Removes theidattributePersistenceUnitRefType<T>removeMappedName()Removes themapped-nameelementPersistenceUnitRefType<T>removePersistenceUnitName()Removes thepersistence-unit-nameelementPersistenceUnitRefType<T>removePersistenceUnitRefName()Removes thepersistence-unit-ref-nameelement
-
-
-
Method Detail
-
mappedName
PersistenceUnitRefType<T> mappedName(String 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>
-
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>
-
description
PersistenceUnitRefType<T> description(String... values)
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
PersistenceUnitRefType
-
getAllDescription
List<String> getAllDescription()
Returns alldescriptionelements- Returns:
- list of
description
-
removeAllDescription
PersistenceUnitRefType<T> removeAllDescription()
Removes thedescriptionelement- Returns:
- the current instance of
PersistenceUnitRefType
-
persistenceUnitRefName
PersistenceUnitRefType<T> persistenceUnitRefName(String 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
PersistenceUnitRefType<T> persistenceUnitName(String 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
PersistenceUnitRefType<T> id(String 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
-
-