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

All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
All Known Implementing Classes:
PersistenceContextRefTypeImpl

public interface PersistenceContextRefType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>

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

Since:
Generation date :2011-07-19T22:54:35.59+02:00
Author:
Ralf Battenfeld

Method Summary
 java.util.List<java.lang.String> getDescriptionList()
          Returns all description elements
 java.util.List<InjectionTargetType<PersistenceContextRefType<T>>> getInjectionTargetList()
          Returns all injection-target elements
 java.lang.String getJndiName()
          Returns the jndi-name element
 java.lang.String getMappedName()
          Returns the mapped-name element
 java.lang.String getPersistenceContextRefName()
          Returns the persistence-context-ref-name element
 PersistenceContextTypeType getPersistenceContextType()
          Returns the persistence-context-type element
 java.lang.String getPersistenceContextTypeAsString()
          Returns the persistence-context-type element
 java.util.List<PropertyType<PersistenceContextRefType<T>>> getPersistencePropertyList()
          Returns all persistence-property elements
 java.lang.String getPersistenceUnitName()
          Returns the persistence-unit-name element
 PersistenceContextRefType<T> ignoreDependency()
           
 InjectionTargetType<PersistenceContextRefType<T>> injectionTarget()
          Returns the injection-target element
 java.lang.Boolean isIgnoreDependency()
           
 PropertyType<PersistenceContextRefType<T>> persistenceProperty()
          Returns the persistence-property 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> removeJndiName()
          Removes the jndi-name element
 PersistenceContextRefType<T> removeMappedName()
          Removes the mapped-name element
 PersistenceContextRefType<T> removePersistenceContextRefName()
          Removes the persistence-context-ref-name element
 PersistenceContextRefType<T> removePersistenceUnitName()
          Removes the persistence-unit-name element
 PersistenceContextRefType<T> setDescription(java.lang.String description)
          Creates a new description element
 PersistenceContextRefType<T> setDescriptionList(java.lang.String... values)
          Creates for all String objects representing description elements, a new description element
 PersistenceContextRefType<T> setJndiName(java.lang.String jndiName)
          If not already created, a new jndi-name element with the given value will be created.
 PersistenceContextRefType<T> setMappedName(java.lang.String mappedName)
          If not already created, a new mapped-name element with the given value will be created.
 PersistenceContextRefType<T> setPersistenceContextRefName(java.lang.String persistenceContextRefName)
          If not already created, a new persistence-context-ref-name element with the given value will be created.
 PersistenceContextRefType<T> setPersistenceContextType(PersistenceContextTypeType persistenceContextType)
          If not already created, a new persistence-context-type element with the given value will be created.
 PersistenceContextRefType<T> setPersistenceContextType(java.lang.String persistenceContextType)
          If not already created, a new persistence-context-type element with the given value will be created.
 PersistenceContextRefType<T> setPersistenceUnitName(java.lang.String persistenceUnitName)
          If not already created, a new persistence-unit-name element with the given value will be created.
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

setJndiName

PersistenceContextRefType<T> setJndiName(java.lang.String jndiName)
If not already created, a new jndi-name element with the given value will be created. Otherwise, the existing jndi-name element will be updated with the given value.

Returns:
the current instance of PersistenceContextRefType

removeJndiName

PersistenceContextRefType<T> removeJndiName()
Removes the jndi-name element

Returns:
the current instance of PersistenceContextRefType

getJndiName

java.lang.String getJndiName()
Returns the jndi-name element

Returns:
the node defined for the element jndi-name

setMappedName

PersistenceContextRefType<T> setMappedName(java.lang.String mappedName)
If not already created, a new mapped-name element with the given value will be created. Otherwise, the existing mapped-name element will be updated with the given value.

Returns:
the current instance of PersistenceContextRefType

removeMappedName

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

Returns:
the current instance of PersistenceContextRefType

getMappedName

java.lang.String getMappedName()
Returns the mapped-name element

Returns:
the node defined for the element mapped-name

removeAllInjectionTarget

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

Returns:
the current instance of PersistenceContextRefType

injectionTarget

InjectionTargetType<PersistenceContextRefType<T>> injectionTarget()
Returns the injection-target element

Returns:
the node defined for the element injection-target

getInjectionTargetList

java.util.List<InjectionTargetType<PersistenceContextRefType<T>>> getInjectionTargetList()
Returns all injection-target elements

Returns:
list of injection-target

ignoreDependency

PersistenceContextRefType<T> ignoreDependency()

isIgnoreDependency

java.lang.Boolean isIgnoreDependency()

setDescription

PersistenceContextRefType<T> setDescription(java.lang.String description)
Creates a new description element

Returns:
the current instance of PersistenceContextRefType

setDescriptionList

PersistenceContextRefType<T> setDescriptionList(java.lang.String... values)
Creates for all String objects representing description elements, a new description element

Parameters:
list - of description objects
Returns:
the current instance of PersistenceContextRefType

removeAllDescription

PersistenceContextRefType<T> removeAllDescription()
Removes the description element

Returns:
the current instance of PersistenceContextRefType

getDescriptionList

java.util.List<java.lang.String> getDescriptionList()
Returns all description elements

Returns:
list of description

setPersistenceContextRefName

PersistenceContextRefType<T> setPersistenceContextRefName(java.lang.String persistenceContextRefName)
If not already created, a new persistence-context-ref-name element with the given value will be created. Otherwise, the existing persistence-context-ref-name element will be updated with the given value.

Returns:
the current instance of PersistenceContextRefType

removePersistenceContextRefName

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

Returns:
the current instance of PersistenceContextRefType

getPersistenceContextRefName

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

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

setPersistenceUnitName

PersistenceContextRefType<T> setPersistenceUnitName(java.lang.String persistenceUnitName)
If not already created, a new persistence-unit-name element with the given value will be created. Otherwise, the existing persistence-unit-name element will be updated with the given value.

Returns:
the current instance of PersistenceContextRefType

removePersistenceUnitName

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

Returns:
the current instance of PersistenceContextRefType

getPersistenceUnitName

java.lang.String getPersistenceUnitName()
Returns the persistence-unit-name element

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

setPersistenceContextType

PersistenceContextRefType<T> setPersistenceContextType(PersistenceContextTypeType persistenceContextType)
If not already created, a new persistence-context-type element with the given value will be created. Otherwise, the existing persistence-context-type element will be updated with the given value.

Returns:
the current instance of PersistenceContextRefType

setPersistenceContextType

PersistenceContextRefType<T> setPersistenceContextType(java.lang.String persistenceContextType)
If not already created, a new persistence-context-type element with the given value will be created. Otherwise, the existing persistence-context-type element will be updated with the given value.

Returns:
the current instance of PersistenceContextRefType

getPersistenceContextType

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

Returns:
the node defined for the element persistence-context-type

getPersistenceContextTypeAsString

java.lang.String getPersistenceContextTypeAsString()
Returns the persistence-context-type element

Returns:
the node defined for the element persistence-context-type

removeAllPersistenceProperty

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

Returns:
the current instance of PersistenceContextRefType

persistenceProperty

PropertyType<PersistenceContextRefType<T>> persistenceProperty()
Returns the persistence-property element

Returns:
the node defined for the element persistence-property

getPersistencePropertyList

java.util.List<PropertyType<PersistenceContextRefType<T>>> getPersistencePropertyList()
Returns all persistence-property elements

Returns:
list of persistence-property