public interface PersistenceUnitRefType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>
persistence-unit-refType xsd type| 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 |
PersistenceUnitRefType<T> mappedName(String mappedName)
mapped-name elementmappedName - the value for the element mapped-namePersistenceUnitRefTypeString getMappedName()
mapped-name elementmapped-namePersistenceUnitRefType<T> removeMappedName()
mapped-name elementPersistenceUnitRefTypeInjectionTargetType<PersistenceUnitRefType<T>> getOrCreateInjectionTarget()
injection-target element will be created and returned.
Otherwise, the first existing injection-target element will be returned.injection-targetInjectionTargetType<PersistenceUnitRefType<T>> createInjectionTarget()
injection-target elementInjectionTargetType> List<InjectionTargetType<PersistenceUnitRefType<T>>> getAllInjectionTarget()
injection-target elementsinjection-targetPersistenceUnitRefType<T> removeAllInjectionTarget()
injection-target elementsInjectionTargetType> PersistenceUnitRefType<T> description(String... values)
description elements,
a new description elementvalues - list of description objectsPersistenceUnitRefTypeList<String> getAllDescription()
description elementsdescriptionPersistenceUnitRefType<T> removeAllDescription()
description elementPersistenceUnitRefTypePersistenceUnitRefType<T> persistenceUnitRefName(String persistenceUnitRefName)
persistence-unit-ref-name elementpersistenceUnitRefName - the value for the element persistence-unit-ref-namePersistenceUnitRefTypeString getPersistenceUnitRefName()
persistence-unit-ref-name elementpersistence-unit-ref-namePersistenceUnitRefType<T> removePersistenceUnitRefName()
persistence-unit-ref-name elementPersistenceUnitRefTypePersistenceUnitRefType<T> persistenceUnitName(String persistenceUnitName)
persistence-unit-name elementpersistenceUnitName - the value for the element persistence-unit-namePersistenceUnitRefTypeString getPersistenceUnitName()
persistence-unit-name elementpersistence-unit-namePersistenceUnitRefType<T> removePersistenceUnitName()
persistence-unit-name elementPersistenceUnitRefTypePersistenceUnitRefType<T> id(String id)
id attributeid - the value for the attribute idPersistenceUnitRefTypeString getId()
id attributeidPersistenceUnitRefType<T> removeId()
id attributePersistenceUnitRefTypeCopyright © 2013 IronJacamar (http://www.ironjacamar.org)