Interface PersistenceContextRefType<T>
-
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
PersistenceContextRefTypeImpl
public interface PersistenceContextRefType<T> extends org.jboss.shrinkwrap.descriptor.api.Child<T>This interface defines the contract for thepersistence-context-refTypexsd type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InjectionTargetType<PersistenceContextRefType<T>>createInjectionTarget()Creates a newinjection-targetelementPropertyType<PersistenceContextRefType<T>>createPersistenceProperty()Creates a newpersistence-propertyelementPersistenceContextRefType<T>description(String... values)Creates for all String objects representingdescriptionelements, a newdescriptionelementList<String>getAllDescription()Returns alldescriptionelementsList<InjectionTargetType<PersistenceContextRefType<T>>>getAllInjectionTarget()Returns allinjection-targetelementsList<PropertyType<PersistenceContextRefType<T>>>getAllPersistenceProperty()Returns allpersistence-propertyelementsStringgetId()Returns theidattributeStringgetMappedName()Returns themapped-nameelementInjectionTargetType<PersistenceContextRefType<T>>getOrCreateInjectionTarget()If not already created, a newinjection-targetelement will be created and returned.PropertyType<PersistenceContextRefType<T>>getOrCreatePersistenceProperty()If not already created, a newpersistence-propertyelement will be created and returned.StringgetPersistenceContextRefName()Returns thepersistence-context-ref-nameelementPersistenceContextTypeTypegetPersistenceContextType()Returns thepersistence-context-typeelementStringgetPersistenceContextTypeAsString()Returns thepersistence-context-typeelementStringgetPersistenceUnitName()Returns thepersistence-unit-nameelementPersistenceContextRefType<T>id(String id)Sets theidattributePersistenceContextRefType<T>mappedName(String mappedName)Sets themapped-nameelementPersistenceContextRefType<T>persistenceContextRefName(String persistenceContextRefName)Sets thepersistence-context-ref-nameelementPersistenceContextRefType<T>persistenceContextType(String persistenceContextType)Sets thepersistence-context-typeelementPersistenceContextRefType<T>persistenceContextType(PersistenceContextTypeType persistenceContextType)Sets thepersistence-context-typeelementPersistenceContextRefType<T>persistenceUnitName(String persistenceUnitName)Sets thepersistence-unit-nameelementPersistenceContextRefType<T>removeAllDescription()Removes thedescriptionelementPersistenceContextRefType<T>removeAllInjectionTarget()Removes allinjection-targetelementsPersistenceContextRefType<T>removeAllPersistenceProperty()Removes allpersistence-propertyelementsPersistenceContextRefType<T>removeId()Removes theidattributePersistenceContextRefType<T>removeMappedName()Removes themapped-nameelementPersistenceContextRefType<T>removePersistenceContextRefName()Removes thepersistence-context-ref-nameelementPersistenceContextRefType<T>removePersistenceContextType()Removes thepersistence-context-typeattributePersistenceContextRefType<T>removePersistenceUnitName()Removes thepersistence-unit-nameelement
-
-
-
Method Detail
-
mappedName
PersistenceContextRefType<T> mappedName(String mappedName)
Sets themapped-nameelement- Parameters:
mappedName- the value for the elementmapped-name- Returns:
- the current instance of
PersistenceContextRefType
-
getMappedName
String getMappedName()
Returns themapped-nameelement- Returns:
- the node defined for the element
mapped-name
-
removeMappedName
PersistenceContextRefType<T> removeMappedName()
Removes themapped-nameelement- Returns:
- the current instance of
PersistenceContextRefType
-
getOrCreateInjectionTarget
InjectionTargetType<PersistenceContextRefType<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<PersistenceContextRefType<T>> createInjectionTarget()
Creates a newinjection-targetelement- Returns:
- the new created instance of
InjectionTargetType>
-
getAllInjectionTarget
List<InjectionTargetType<PersistenceContextRefType<T>>> getAllInjectionTarget()
Returns allinjection-targetelements- Returns:
- list of
injection-target
-
removeAllInjectionTarget
PersistenceContextRefType<T> removeAllInjectionTarget()
Removes allinjection-targetelements- Returns:
- the current instance of
InjectionTargetType>
-
description
PersistenceContextRefType<T> description(String... values)
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
PersistenceContextRefType
-
getAllDescription
List<String> getAllDescription()
Returns alldescriptionelements- Returns:
- list of
description
-
removeAllDescription
PersistenceContextRefType<T> removeAllDescription()
Removes thedescriptionelement- Returns:
- the current instance of
PersistenceContextRefType
-
persistenceContextRefName
PersistenceContextRefType<T> persistenceContextRefName(String persistenceContextRefName)
Sets thepersistence-context-ref-nameelement- Parameters:
persistenceContextRefName- the value for the elementpersistence-context-ref-name- Returns:
- the current instance of
PersistenceContextRefType
-
getPersistenceContextRefName
String getPersistenceContextRefName()
Returns thepersistence-context-ref-nameelement- Returns:
- the node defined for the element
persistence-context-ref-name
-
removePersistenceContextRefName
PersistenceContextRefType<T> removePersistenceContextRefName()
Removes thepersistence-context-ref-nameelement- Returns:
- the current instance of
PersistenceContextRefType
-
persistenceUnitName
PersistenceContextRefType<T> persistenceUnitName(String persistenceUnitName)
Sets thepersistence-unit-nameelement- Parameters:
persistenceUnitName- the value for the elementpersistence-unit-name- Returns:
- the current instance of
PersistenceContextRefType
-
getPersistenceUnitName
String getPersistenceUnitName()
Returns thepersistence-unit-nameelement- Returns:
- the node defined for the element
persistence-unit-name
-
removePersistenceUnitName
PersistenceContextRefType<T> removePersistenceUnitName()
Removes thepersistence-unit-nameelement- Returns:
- the current instance of
PersistenceContextRefType
-
persistenceContextType
PersistenceContextRefType<T> persistenceContextType(PersistenceContextTypeType persistenceContextType)
Sets thepersistence-context-typeelement- Parameters:
persistenceContextType- the value for the elementpersistence-context-type- Returns:
- the current instance of
PersistenceContextRefType
-
persistenceContextType
PersistenceContextRefType<T> persistenceContextType(String persistenceContextType)
Sets thepersistence-context-typeelement- Parameters:
persistenceContextType- the value for the elementpersistence-context-type- Returns:
- the current instance of
PersistenceContextRefType
-
getPersistenceContextType
PersistenceContextTypeType getPersistenceContextType()
Returns thepersistence-context-typeelement- Returns:
- the value found for the element
persistence-context-type
-
getPersistenceContextTypeAsString
String getPersistenceContextTypeAsString()
Returns thepersistence-context-typeelement- Returns:
- the value found for the element
persistence-context-type
-
removePersistenceContextType
PersistenceContextRefType<T> removePersistenceContextType()
Removes thepersistence-context-typeattribute- Returns:
- the current instance of
PersistenceContextRefType
-
getOrCreatePersistenceProperty
PropertyType<PersistenceContextRefType<T>> getOrCreatePersistenceProperty()
If not already created, a newpersistence-propertyelement will be created and returned. Otherwise, the first existingpersistence-propertyelement will be returned.- Returns:
- the instance defined for the element
persistence-property
-
createPersistenceProperty
PropertyType<PersistenceContextRefType<T>> createPersistenceProperty()
Creates a newpersistence-propertyelement- Returns:
- the new created instance of
PropertyType>
-
getAllPersistenceProperty
List<PropertyType<PersistenceContextRefType<T>>> getAllPersistenceProperty()
Returns allpersistence-propertyelements- Returns:
- list of
persistence-property
-
removeAllPersistenceProperty
PersistenceContextRefType<T> removeAllPersistenceProperty()
Removes allpersistence-propertyelements- Returns:
- the current instance of
PropertyType>
-
id
PersistenceContextRefType<T> id(String id)
Sets theidattribute- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
PersistenceContextRefType
-
getId
String getId()
Returns theidattribute- Returns:
- the value defined for the attribute
id
-
removeId
PersistenceContextRefType<T> removeId()
Removes theidattribute- Returns:
- the current instance of
PersistenceContextRefType
-
-