|
ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersistenceContextRefType<T>
This interface defines the contract for the persistence-context-refType
xsd type
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 |
---|
PersistenceContextRefType<T> mappedName(String mappedName)
mapped-name
element
mappedName
- the value for the element mapped-name
PersistenceContextRefType
String getMappedName()
mapped-name
element
mapped-name
PersistenceContextRefType<T> removeMappedName()
mapped-name
element
PersistenceContextRefType
InjectionTargetType<PersistenceContextRefType<T>> getOrCreateInjectionTarget()
injection-target
element will be created and returned.
Otherwise, the first existing injection-target
element will be returned.
injection-target
InjectionTargetType<PersistenceContextRefType<T>> createInjectionTarget()
injection-target
element
InjectionTargetType>
List<InjectionTargetType<PersistenceContextRefType<T>>> getAllInjectionTarget()
injection-target
elements
injection-target
PersistenceContextRefType<T> removeAllInjectionTarget()
injection-target
elements
InjectionTargetType>
PersistenceContextRefType<T> description(String... values)
description
elements,
a new description
element
values
- list of description
objects
PersistenceContextRefType
List<String> getAllDescription()
description
elements
description
PersistenceContextRefType<T> removeAllDescription()
description
element
PersistenceContextRefType
PersistenceContextRefType<T> persistenceContextRefName(String persistenceContextRefName)
persistence-context-ref-name
element
persistenceContextRefName
- the value for the element persistence-context-ref-name
PersistenceContextRefType
String getPersistenceContextRefName()
persistence-context-ref-name
element
persistence-context-ref-name
PersistenceContextRefType<T> removePersistenceContextRefName()
persistence-context-ref-name
element
PersistenceContextRefType
PersistenceContextRefType<T> persistenceUnitName(String persistenceUnitName)
persistence-unit-name
element
persistenceUnitName
- the value for the element persistence-unit-name
PersistenceContextRefType
String getPersistenceUnitName()
persistence-unit-name
element
persistence-unit-name
PersistenceContextRefType<T> removePersistenceUnitName()
persistence-unit-name
element
PersistenceContextRefType
PersistenceContextRefType<T> persistenceContextType(PersistenceContextTypeType persistenceContextType)
persistence-context-type
element
persistenceContextType
- the value for the element persistence-context-type
PersistenceContextRefType
PersistenceContextRefType<T> persistenceContextType(String persistenceContextType)
persistence-context-type
element
persistenceContextType
- the value for the element persistence-context-type
PersistenceContextRefType
PersistenceContextTypeType getPersistenceContextType()
persistence-context-type
element
persistence-context-type
String getPersistenceContextTypeAsString()
persistence-context-type
element
persistence-context-type
PersistenceContextRefType<T> removePersistenceContextType()
persistence-context-type
attribute
PersistenceContextRefType
PropertyType<PersistenceContextRefType<T>> getOrCreatePersistenceProperty()
persistence-property
element will be created and returned.
Otherwise, the first existing persistence-property
element will be returned.
persistence-property
PropertyType<PersistenceContextRefType<T>> createPersistenceProperty()
persistence-property
element
PropertyType>
List<PropertyType<PersistenceContextRefType<T>>> getAllPersistenceProperty()
persistence-property
elements
persistence-property
PersistenceContextRefType<T> removeAllPersistenceProperty()
persistence-property
elements
PropertyType>
|
ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |