ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

org.jboss.shrinkwrap.descriptor.api.javaee6
Interface PersistenceUnitRefType<T>

All Superinterfaces:
Child<T>

public interface PersistenceUnitRefType<T>
extends Child<T>

This interface defines the contract for the persistence-unit-refType xsd type

Since:
Generation date :2012-05-09T23:45:05.33-07:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Method Summary
 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 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> 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> 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
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

mappedName

PersistenceUnitRefType<T> mappedName(String mappedName)
Sets the mapped-name element

Parameters:
mappedName - the value for the element mapped-name
Returns:
the current instance of PersistenceUnitRefType

getMappedName

String getMappedName()
Returns the mapped-name element

Returns:
the node defined for the element mapped-name

removeMappedName

PersistenceUnitRefType<T> removeMappedName()
Removes the mapped-name element

Returns:
the current instance of PersistenceUnitRefType

getOrCreateInjectionTarget

InjectionTargetType<PersistenceUnitRefType<T>> getOrCreateInjectionTarget()
If not already created, a new injection-target element will be created and returned. Otherwise, the first existing injection-target element will be returned.

Returns:
the instance defined for the element injection-target

createInjectionTarget

InjectionTargetType<PersistenceUnitRefType<T>> createInjectionTarget()
Creates a new injection-target element

Returns:
the new created instance of InjectionTargetType>

getAllInjectionTarget

List<InjectionTargetType<PersistenceUnitRefType<T>>> getAllInjectionTarget()
Returns all injection-target elements

Returns:
list of injection-target

removeAllInjectionTarget

PersistenceUnitRefType<T> removeAllInjectionTarget()
Removes all injection-target elements

Returns:
the current instance of InjectionTargetType>

description

PersistenceUnitRefType<T> description(String... values)
Creates for all String objects representing description elements, a new description element

Parameters:
values - list of description objects
Returns:
the current instance of PersistenceUnitRefType

getAllDescription

List<String> getAllDescription()
Returns all description elements

Returns:
list of description

removeAllDescription

PersistenceUnitRefType<T> removeAllDescription()
Removes the description element

Returns:
the current instance of PersistenceUnitRefType

persistenceUnitRefName

PersistenceUnitRefType<T> persistenceUnitRefName(String persistenceUnitRefName)
Sets the persistence-unit-ref-name element

Parameters:
persistenceUnitRefName - the value for the element persistence-unit-ref-name
Returns:
the current instance of PersistenceUnitRefType

getPersistenceUnitRefName

String getPersistenceUnitRefName()
Returns the persistence-unit-ref-name element

Returns:
the node defined for the element persistence-unit-ref-name

removePersistenceUnitRefName

PersistenceUnitRefType<T> removePersistenceUnitRefName()
Removes the persistence-unit-ref-name element

Returns:
the current instance of PersistenceUnitRefType

persistenceUnitName

PersistenceUnitRefType<T> persistenceUnitName(String persistenceUnitName)
Sets the persistence-unit-name element

Parameters:
persistenceUnitName - the value for the element persistence-unit-name
Returns:
the current instance of PersistenceUnitRefType

getPersistenceUnitName

String getPersistenceUnitName()
Returns the persistence-unit-name element

Returns:
the node defined for the element persistence-unit-name

removePersistenceUnitName

PersistenceUnitRefType<T> removePersistenceUnitName()
Removes the persistence-unit-name element

Returns:
the current instance of PersistenceUnitRefType

ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.