public class PersistenceUnitRefTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, PersistenceUnitRefType<T>
persistence-unit-refType
xsd typeConstructor 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-name
PersistenceUnitRefType
public String getMappedName()
mapped-name
elementgetMappedName
in interface PersistenceUnitRefType<T>
mapped-name
public PersistenceUnitRefType<T> removeMappedName()
mapped-name
elementremoveMappedName
in interface PersistenceUnitRefType<T>
PersistenceUnitRefType
public 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-target
public 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-target
public 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
objectsPersistenceUnitRefType
public List<String> getAllDescription()
description
elementsgetAllDescription
in interface PersistenceUnitRefType<T>
description
public PersistenceUnitRefType<T> removeAllDescription()
description
elementremoveAllDescription
in interface PersistenceUnitRefType<T>
PersistenceUnitRefType
public PersistenceUnitRefType<T> persistenceUnitRefName(String persistenceUnitRefName)
persistence-unit-ref-name
elementpersistenceUnitRefName
in interface PersistenceUnitRefType<T>
persistenceUnitRefName
- the value for the element persistence-unit-ref-name
PersistenceUnitRefType
public String getPersistenceUnitRefName()
persistence-unit-ref-name
elementgetPersistenceUnitRefName
in interface PersistenceUnitRefType<T>
persistence-unit-ref-name
public PersistenceUnitRefType<T> removePersistenceUnitRefName()
persistence-unit-ref-name
elementremovePersistenceUnitRefName
in interface PersistenceUnitRefType<T>
PersistenceUnitRefType
public PersistenceUnitRefType<T> persistenceUnitName(String persistenceUnitName)
persistence-unit-name
elementpersistenceUnitName
in interface PersistenceUnitRefType<T>
persistenceUnitName
- the value for the element persistence-unit-name
PersistenceUnitRefType
public String getPersistenceUnitName()
persistence-unit-name
elementgetPersistenceUnitName
in interface PersistenceUnitRefType<T>
persistence-unit-name
public PersistenceUnitRefType<T> removePersistenceUnitName()
persistence-unit-name
elementremovePersistenceUnitName
in interface PersistenceUnitRefType<T>
PersistenceUnitRefType
public PersistenceUnitRefType<T> id(String id)
id
attributeid
in interface PersistenceUnitRefType<T>
id
- the value for the attribute id
PersistenceUnitRefType
public String getId()
id
attributegetId
in interface PersistenceUnitRefType<T>
id
public PersistenceUnitRefType<T> removeId()
id
attributeremoveId
in interface PersistenceUnitRefType<T>
PersistenceUnitRefType
Copyright © 2021 JBoss by Red Hat. All rights reserved.