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(java.lang.String... values)
Creates for all String objects representing
description elements,
a new description element |
java.util.List<java.lang.String> |
getAllDescription()
Returns all
description elements |
java.util.List<InjectionTargetType<PersistenceUnitRefType<T>>> |
getAllInjectionTarget()
Returns all
injection-target elements |
java.lang.String |
getId()
Returns the
id attribute |
java.lang.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. |
java.lang.String |
getPersistenceUnitName()
Returns the
persistence-unit-name element |
java.lang.String |
getPersistenceUnitRefName()
Returns the
persistence-unit-ref-name element |
PersistenceUnitRefType<T> |
id(java.lang.String id)
Sets the
id attribute |
PersistenceUnitRefType<T> |
mappedName(java.lang.String mappedName)
Sets the
mapped-name element |
PersistenceUnitRefType<T> |
persistenceUnitName(java.lang.String persistenceUnitName)
Sets the
persistence-unit-name element |
PersistenceUnitRefType<T> |
persistenceUnitRefName(java.lang.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(java.lang.String mappedName)
mapped-name elementmappedName - the value for the element mapped-namePersistenceUnitRefTypejava.lang.String 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> java.util.List<InjectionTargetType<PersistenceUnitRefType<T>>> getAllInjectionTarget()
injection-target elementsinjection-targetPersistenceUnitRefType<T> removeAllInjectionTarget()
injection-target elementsInjectionTargetType> PersistenceUnitRefType<T> description(java.lang.String... values)
description elements,
a new description elementvalues - list of description objectsPersistenceUnitRefTypejava.util.List<java.lang.String> getAllDescription()
description elementsdescriptionPersistenceUnitRefType<T> removeAllDescription()
description elementPersistenceUnitRefTypePersistenceUnitRefType<T> persistenceUnitRefName(java.lang.String persistenceUnitRefName)
persistence-unit-ref-name elementpersistenceUnitRefName - the value for the element persistence-unit-ref-namePersistenceUnitRefTypejava.lang.String getPersistenceUnitRefName()
persistence-unit-ref-name elementpersistence-unit-ref-namePersistenceUnitRefType<T> removePersistenceUnitRefName()
persistence-unit-ref-name elementPersistenceUnitRefTypePersistenceUnitRefType<T> persistenceUnitName(java.lang.String persistenceUnitName)
persistence-unit-name elementpersistenceUnitName - the value for the element persistence-unit-namePersistenceUnitRefTypejava.lang.String getPersistenceUnitName()
persistence-unit-name elementpersistence-unit-namePersistenceUnitRefType<T> removePersistenceUnitName()
persistence-unit-name elementPersistenceUnitRefTypePersistenceUnitRefType<T> id(java.lang.String id)
id attributeid - the value for the attribute idPersistenceUnitRefTypejava.lang.String getId()
id attributeidPersistenceUnitRefType<T> removeId()
id attributePersistenceUnitRefTypeCopyright © 2014 IronJacamar (http://www.ironjacamar.org)