public class PersistenceContextRefTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, PersistenceContextRefType<T>
persistence-context-refType xsd type| Constructor and Description |
|---|
PersistenceContextRefTypeImpl(T t,
String nodeName,
org.jboss.shrinkwrap.descriptor.spi.node.Node node) |
PersistenceContextRefTypeImpl(T t,
String nodeName,
org.jboss.shrinkwrap.descriptor.spi.node.Node node,
org.jboss.shrinkwrap.descriptor.spi.node.Node childNode) |
| Modifier and Type | Method and Description |
|---|---|
InjectionTargetType<PersistenceContextRefType<T>> |
createInjectionTarget()
Creates a new
injection-target element |
PropertyType<PersistenceContextRefType<T>> |
createPersistenceProperty()
Creates a new
persistence-property element |
PersistenceContextRefType<T> |
description(String... values)
Creates for all String objects representing
description elements,
a new description element |
List<String> |
getAllDescription()
Returns all
description elements |
List<InjectionTargetType<PersistenceContextRefType<T>>> |
getAllInjectionTarget()
Returns all
injection-target elements |
List<PropertyType<PersistenceContextRefType<T>>> |
getAllPersistenceProperty()
Returns all
persistence-property elements |
String |
getId()
Returns the
id attribute |
String |
getMappedName()
Returns the
mapped-name element |
InjectionTargetType<PersistenceContextRefType<T>> |
getOrCreateInjectionTarget()
If not already created, a new
injection-target element will be created and returned. |
PropertyType<PersistenceContextRefType<T>> |
getOrCreatePersistenceProperty()
If not already created, a new
persistence-property element will be created and returned. |
String |
getPersistenceContextRefName()
Returns the
persistence-context-ref-name element |
PersistenceContextTypeType |
getPersistenceContextType()
Returns the
persistence-context-type element |
String |
getPersistenceContextTypeAsString()
Returns the
persistence-context-type element |
String |
getPersistenceUnitName()
Returns the
persistence-unit-name element |
PersistenceContextRefType<T> |
id(String id)
Sets the
id attribute |
PersistenceContextRefType<T> |
mappedName(String mappedName)
Sets the
mapped-name element |
PersistenceContextRefType<T> |
persistenceContextRefName(String persistenceContextRefName)
Sets the
persistence-context-ref-name element |
PersistenceContextRefType<T> |
persistenceContextType(PersistenceContextTypeType persistenceContextType)
Sets the
persistence-context-type element |
PersistenceContextRefType<T> |
persistenceContextType(String persistenceContextType)
Sets the
persistence-context-type element |
PersistenceContextRefType<T> |
persistenceUnitName(String persistenceUnitName)
Sets the
persistence-unit-name element |
PersistenceContextRefType<T> |
removeAllDescription()
Removes the
description element |
PersistenceContextRefType<T> |
removeAllInjectionTarget()
Removes all
injection-target elements |
PersistenceContextRefType<T> |
removeAllPersistenceProperty()
Removes all
persistence-property elements |
PersistenceContextRefType<T> |
removeId()
Removes the
id attribute |
PersistenceContextRefType<T> |
removeMappedName()
Removes the
mapped-name element |
PersistenceContextRefType<T> |
removePersistenceContextRefName()
Removes the
persistence-context-ref-name element |
PersistenceContextRefType<T> |
removePersistenceContextType()
Removes the
persistence-context-type attribute |
PersistenceContextRefType<T> |
removePersistenceUnitName()
Removes the
persistence-unit-name element |
T |
up() |
public PersistenceContextRefTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
public PersistenceContextRefType<T> mappedName(String mappedName)
mapped-name elementmappedName in interface PersistenceContextRefType<T>mappedName - the value for the element mapped-namePersistenceContextRefTypepublic String getMappedName()
mapped-name elementgetMappedName in interface PersistenceContextRefType<T>mapped-namepublic PersistenceContextRefType<T> removeMappedName()
mapped-name elementremoveMappedName in interface PersistenceContextRefType<T>PersistenceContextRefTypepublic InjectionTargetType<PersistenceContextRefType<T>> getOrCreateInjectionTarget()
injection-target element will be created and returned.
Otherwise, the first existing injection-target element will be returned.getOrCreateInjectionTarget in interface PersistenceContextRefType<T>injection-targetpublic InjectionTargetType<PersistenceContextRefType<T>> createInjectionTarget()
injection-target elementcreateInjectionTarget in interface PersistenceContextRefType<T>InjectionTargetType> public List<InjectionTargetType<PersistenceContextRefType<T>>> getAllInjectionTarget()
injection-target elementsgetAllInjectionTarget in interface PersistenceContextRefType<T>injection-targetpublic PersistenceContextRefType<T> removeAllInjectionTarget()
injection-target elementsremoveAllInjectionTarget in interface PersistenceContextRefType<T>InjectionTargetType> public PersistenceContextRefType<T> description(String... values)
description elements,
a new description elementdescription in interface PersistenceContextRefType<T>values - list of description objectsPersistenceContextRefTypepublic List<String> getAllDescription()
description elementsgetAllDescription in interface PersistenceContextRefType<T>descriptionpublic PersistenceContextRefType<T> removeAllDescription()
description elementremoveAllDescription in interface PersistenceContextRefType<T>PersistenceContextRefTypepublic PersistenceContextRefType<T> persistenceContextRefName(String persistenceContextRefName)
persistence-context-ref-name elementpersistenceContextRefName in interface PersistenceContextRefType<T>persistenceContextRefName - the value for the element persistence-context-ref-namePersistenceContextRefTypepublic String getPersistenceContextRefName()
persistence-context-ref-name elementgetPersistenceContextRefName in interface PersistenceContextRefType<T>persistence-context-ref-namepublic PersistenceContextRefType<T> removePersistenceContextRefName()
persistence-context-ref-name elementremovePersistenceContextRefName in interface PersistenceContextRefType<T>PersistenceContextRefTypepublic PersistenceContextRefType<T> persistenceUnitName(String persistenceUnitName)
persistence-unit-name elementpersistenceUnitName in interface PersistenceContextRefType<T>persistenceUnitName - the value for the element persistence-unit-namePersistenceContextRefTypepublic String getPersistenceUnitName()
persistence-unit-name elementgetPersistenceUnitName in interface PersistenceContextRefType<T>persistence-unit-namepublic PersistenceContextRefType<T> removePersistenceUnitName()
persistence-unit-name elementremovePersistenceUnitName in interface PersistenceContextRefType<T>PersistenceContextRefTypepublic PersistenceContextRefType<T> persistenceContextType(PersistenceContextTypeType persistenceContextType)
persistence-context-type elementpersistenceContextType in interface PersistenceContextRefType<T>persistenceContextType - the value for the element persistence-context-typePersistenceContextRefTypepublic PersistenceContextRefType<T> persistenceContextType(String persistenceContextType)
persistence-context-type elementpersistenceContextType in interface PersistenceContextRefType<T>persistenceContextType - the value for the element persistence-context-typePersistenceContextRefTypepublic PersistenceContextTypeType getPersistenceContextType()
persistence-context-type elementgetPersistenceContextType in interface PersistenceContextRefType<T>persistence-context-typepublic String getPersistenceContextTypeAsString()
persistence-context-type elementgetPersistenceContextTypeAsString in interface PersistenceContextRefType<T>persistence-context-typepublic PersistenceContextRefType<T> removePersistenceContextType()
persistence-context-type attributeremovePersistenceContextType in interface PersistenceContextRefType<T>PersistenceContextRefTypepublic PropertyType<PersistenceContextRefType<T>> getOrCreatePersistenceProperty()
persistence-property element will be created and returned.
Otherwise, the first existing persistence-property element will be returned.getOrCreatePersistenceProperty in interface PersistenceContextRefType<T>persistence-propertypublic PropertyType<PersistenceContextRefType<T>> createPersistenceProperty()
persistence-property elementcreatePersistenceProperty in interface PersistenceContextRefType<T>PropertyType> public List<PropertyType<PersistenceContextRefType<T>>> getAllPersistenceProperty()
persistence-property elementsgetAllPersistenceProperty in interface PersistenceContextRefType<T>persistence-propertypublic PersistenceContextRefType<T> removeAllPersistenceProperty()
persistence-property elementsremoveAllPersistenceProperty in interface PersistenceContextRefType<T>PropertyType> public PersistenceContextRefType<T> id(String id)
id attributeid in interface PersistenceContextRefType<T>id - the value for the attribute idPersistenceContextRefTypepublic String getId()
id attributegetId in interface PersistenceContextRefType<T>idpublic PersistenceContextRefType<T> removeId()
id attributeremoveId in interface PersistenceContextRefType<T>PersistenceContextRefTypeCopyright © 2021 JBoss by Red Hat. All rights reserved.