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