public class PersistenceUnitRefTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, PersistenceUnitRefType<T>
persistence-unit-refType xsd type| Constructor and Description |
|---|
PersistenceUnitRefTypeImpl(T t,
String nodeName,
org.jboss.shrinkwrap.descriptor.spi.node.Node node) |
PersistenceUnitRefTypeImpl(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<PersistenceUnitRefType<T>> |
createInjectionTarget()
Creates a new
injection-target element |
PersistenceUnitRefType<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<PersistenceUnitRefType<T>>> |
getAllInjectionTarget()
Returns all
injection-target elements |
String |
getId()
Returns the
id attribute |
String |
getMappedName()
Returns the
mapped-name element |
InjectionTargetType<PersistenceUnitRefType<T>> |
getOrCreateInjectionTarget()
If not already created, a new
injection-target element will be created and returned. |
String |
getPersistenceUnitName()
Returns the
persistence-unit-name element |
String |
getPersistenceUnitRefName()
Returns the
persistence-unit-ref-name element |
PersistenceUnitRefType<T> |
id(String id)
Sets the
id attribute |
PersistenceUnitRefType<T> |
mappedName(String mappedName)
Sets the
mapped-name element |
PersistenceUnitRefType<T> |
persistenceUnitName(String persistenceUnitName)
Sets the
persistence-unit-name element |
PersistenceUnitRefType<T> |
persistenceUnitRefName(String persistenceUnitRefName)
Sets the
persistence-unit-ref-name element |
PersistenceUnitRefType<T> |
removeAllDescription()
Removes the
description element |
PersistenceUnitRefType<T> |
removeAllInjectionTarget()
Removes all
injection-target elements |
PersistenceUnitRefType<T> |
removeId()
Removes the
id attribute |
PersistenceUnitRefType<T> |
removeMappedName()
Removes the
mapped-name element |
PersistenceUnitRefType<T> |
removePersistenceUnitName()
Removes the
persistence-unit-name element |
PersistenceUnitRefType<T> |
removePersistenceUnitRefName()
Removes the
persistence-unit-ref-name element |
T |
up() |
public PersistenceUnitRefTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
public PersistenceUnitRefType<T> mappedName(String mappedName)
mapped-name elementmappedName in interface PersistenceUnitRefType<T>mappedName - the value for the element mapped-namePersistenceUnitRefTypepublic String getMappedName()
mapped-name elementgetMappedName in interface PersistenceUnitRefType<T>mapped-namepublic PersistenceUnitRefType<T> removeMappedName()
mapped-name elementremoveMappedName in interface PersistenceUnitRefType<T>PersistenceUnitRefTypepublic InjectionTargetType<PersistenceUnitRefType<T>> getOrCreateInjectionTarget()
injection-target element will be created and returned.
Otherwise, the first existing injection-target element will be returned.getOrCreateInjectionTarget in interface PersistenceUnitRefType<T>injection-targetpublic InjectionTargetType<PersistenceUnitRefType<T>> createInjectionTarget()
injection-target elementcreateInjectionTarget in interface PersistenceUnitRefType<T>InjectionTargetType> public List<InjectionTargetType<PersistenceUnitRefType<T>>> getAllInjectionTarget()
injection-target elementsgetAllInjectionTarget in interface PersistenceUnitRefType<T>injection-targetpublic PersistenceUnitRefType<T> removeAllInjectionTarget()
injection-target elementsremoveAllInjectionTarget in interface PersistenceUnitRefType<T>InjectionTargetType> public PersistenceUnitRefType<T> description(String... values)
description elements,
a new description elementdescription in interface PersistenceUnitRefType<T>values - list of description objectsPersistenceUnitRefTypepublic List<String> getAllDescription()
description elementsgetAllDescription in interface PersistenceUnitRefType<T>descriptionpublic PersistenceUnitRefType<T> removeAllDescription()
description elementremoveAllDescription in interface PersistenceUnitRefType<T>PersistenceUnitRefTypepublic PersistenceUnitRefType<T> persistenceUnitRefName(String persistenceUnitRefName)
persistence-unit-ref-name elementpersistenceUnitRefName in interface PersistenceUnitRefType<T>persistenceUnitRefName - the value for the element persistence-unit-ref-namePersistenceUnitRefTypepublic String getPersistenceUnitRefName()
persistence-unit-ref-name elementgetPersistenceUnitRefName in interface PersistenceUnitRefType<T>persistence-unit-ref-namepublic PersistenceUnitRefType<T> removePersistenceUnitRefName()
persistence-unit-ref-name elementremovePersistenceUnitRefName in interface PersistenceUnitRefType<T>PersistenceUnitRefTypepublic PersistenceUnitRefType<T> persistenceUnitName(String persistenceUnitName)
persistence-unit-name elementpersistenceUnitName in interface PersistenceUnitRefType<T>persistenceUnitName - the value for the element persistence-unit-namePersistenceUnitRefTypepublic String getPersistenceUnitName()
persistence-unit-name elementgetPersistenceUnitName in interface PersistenceUnitRefType<T>persistence-unit-namepublic PersistenceUnitRefType<T> removePersistenceUnitName()
persistence-unit-name elementremovePersistenceUnitName in interface PersistenceUnitRefType<T>PersistenceUnitRefTypepublic PersistenceUnitRefType<T> id(String id)
id attributeid in interface PersistenceUnitRefType<T>id - the value for the attribute idPersistenceUnitRefTypepublic String getId()
id attributegetId in interface PersistenceUnitRefType<T>idpublic PersistenceUnitRefType<T> removeId()
id attributeremoveId in interface PersistenceUnitRefType<T>PersistenceUnitRefTypeCopyright © 2021 JBoss by Red Hat. All rights reserved.