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 the
persistence-context-refType xsd type-
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-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
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<PersistenceContextRefType>
-
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<PersistenceContextRefType>
-
description
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
PersistenceContextRefType
-
getAllDescription
Returns alldescriptionelements- Returns:
- list of
description
-
removeAllDescription
PersistenceContextRefType<T> removeAllDescription()Removes thedescriptionelement- Returns:
- the current instance of
PersistenceContextRefType
-
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
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
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<PersistenceContextRefType>
-
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<PersistenceContextRefType>
-
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
-