ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

org.jboss.shrinkwrap.descriptor.api.javaee5
Interface PersistenceContextRefType<T>

All Superinterfaces:
Child<T>

public interface PersistenceContextRefType<T>
extends Child<T>

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

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

Method Summary
 InjectionTargetType<PersistenceContextRefType<T>> createInjectionTarget()
          Creates a new injection-target element
 PropertyType<PersistenceContextRefType<T>> createPersistenceProperty()
          Creates a new persistence-property element
 PersistenceContextRefType<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<PersistenceContextRefType<T>>> getAllInjectionTarget()
          Returns all injection-target elements
 List<PropertyType<PersistenceContextRefType<T>>> getAllPersistenceProperty()
          Returns all persistence-property elements
 String getMappedName()
          Returns the mapped-name element
 InjectionTargetType<PersistenceContextRefType<T>> getOrCreateInjectionTarget()
          If not already created, a new injection-target element will be created and returned.
 PropertyType<PersistenceContextRefType<T>> getOrCreatePersistenceProperty()
          If not already created, a new persistence-property element will be created and returned.
 String getPersistenceContextRefName()
          Returns the persistence-context-ref-name element
 PersistenceContextTypeType getPersistenceContextType()
          Returns the persistence-context-type element
 String getPersistenceContextTypeAsString()
          Returns the persistence-context-type element
 String getPersistenceUnitName()
          Returns the persistence-unit-name element
 PersistenceContextRefType<T> mappedName(String mappedName)
          Sets the mapped-name element
 PersistenceContextRefType<T> persistenceContextRefName(String persistenceContextRefName)
          Sets the persistence-context-ref-name element
 PersistenceContextRefType<T> persistenceContextType(PersistenceContextTypeType persistenceContextType)
          Sets the persistence-context-type element
 PersistenceContextRefType<T> persistenceContextType(String persistenceContextType)
          Sets the persistence-context-type element
 PersistenceContextRefType<T> persistenceUnitName(String persistenceUnitName)
          Sets the persistence-unit-name element
 PersistenceContextRefType<T> removeAllDescription()
          Removes the description element
 PersistenceContextRefType<T> removeAllInjectionTarget()
          Removes all injection-target elements
 PersistenceContextRefType<T> removeAllPersistenceProperty()
          Removes all persistence-property elements
 PersistenceContextRefType<T> removeMappedName()
          Removes the mapped-name element
 PersistenceContextRefType<T> removePersistenceContextRefName()
          Removes the persistence-context-ref-name element
 PersistenceContextRefType<T> removePersistenceContextType()
          Removes the persistence-context-type attribute
 PersistenceContextRefType<T> removePersistenceUnitName()
          Removes the persistence-unit-name element
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

mappedName

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

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

getMappedName

String getMappedName()
Returns the mapped-name element

Returns:
the node defined for the element mapped-name

removeMappedName

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

Returns:
the current instance of PersistenceContextRefType

getOrCreateInjectionTarget

InjectionTargetType<PersistenceContextRefType<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<PersistenceContextRefType<T>> createInjectionTarget()
Creates a new injection-target element

Returns:
the new created instance of InjectionTargetType>

getAllInjectionTarget

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

Returns:
list of injection-target

removeAllInjectionTarget

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

Returns:
the current instance of InjectionTargetType>

description

PersistenceContextRefType<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 PersistenceContextRefType

getAllDescription

List<String> getAllDescription()
Returns all description elements

Returns:
list of description

removeAllDescription

PersistenceContextRefType<T> removeAllDescription()
Removes the description element

Returns:
the current instance of PersistenceContextRefType

persistenceContextRefName

PersistenceContextRefType<T> persistenceContextRefName(String persistenceContextRefName)
Sets the persistence-context-ref-name element

Parameters:
persistenceContextRefName - the value for the element persistence-context-ref-name
Returns:
the current instance of PersistenceContextRefType

getPersistenceContextRefName

String getPersistenceContextRefName()
Returns the persistence-context-ref-name element

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

removePersistenceContextRefName

PersistenceContextRefType<T> removePersistenceContextRefName()
Removes the persistence-context-ref-name element

Returns:
the current instance of PersistenceContextRefType

persistenceUnitName

PersistenceContextRefType<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 PersistenceContextRefType

getPersistenceUnitName

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

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

removePersistenceUnitName

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

Returns:
the current instance of PersistenceContextRefType

persistenceContextType

PersistenceContextRefType<T> persistenceContextType(PersistenceContextTypeType persistenceContextType)
Sets the persistence-context-type element

Parameters:
persistenceContextType - the value for the element persistence-context-type
Returns:
the current instance of PersistenceContextRefType

persistenceContextType

PersistenceContextRefType<T> persistenceContextType(String persistenceContextType)
Sets the persistence-context-type element

Parameters:
persistenceContextType - the value for the element persistence-context-type
Returns:
the current instance of PersistenceContextRefType

getPersistenceContextType

PersistenceContextTypeType getPersistenceContextType()
Returns the persistence-context-type element

Returns:
the value found for the element persistence-context-type

getPersistenceContextTypeAsString

String getPersistenceContextTypeAsString()
Returns the persistence-context-type element

Returns:
the value found for the element persistence-context-type

removePersistenceContextType

PersistenceContextRefType<T> removePersistenceContextType()
Removes the persistence-context-type attribute

Returns:
the current instance of PersistenceContextRefType

getOrCreatePersistenceProperty

PropertyType<PersistenceContextRefType<T>> getOrCreatePersistenceProperty()
If not already created, a new persistence-property element will be created and returned. Otherwise, the first existing persistence-property element will be returned.

Returns:
the instance defined for the element persistence-property

createPersistenceProperty

PropertyType<PersistenceContextRefType<T>> createPersistenceProperty()
Creates a new persistence-property element

Returns:
the new created instance of PropertyType>

getAllPersistenceProperty

List<PropertyType<PersistenceContextRefType<T>>> getAllPersistenceProperty()
Returns all persistence-property elements

Returns:
list of persistence-property

removeAllPersistenceProperty

PersistenceContextRefType<T> removeAllPersistenceProperty()
Removes all persistence-property elements

Returns:
the current instance of PropertyType>

ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

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