public interface PersistenceContextRefType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>
persistence-context-refType
xsd typeType | Property and Description |
---|---|
PropertyType<PersistenceContextRefType<T>> |
createPersistence
Creates a new
persistence-property element |
PersistenceContextRefType<T> |
removeAllPersistence
Removes all
persistence-property elements |
Modifier and Type | Method and Description |
---|---|
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 |
getId()
Returns the
id attribute |
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 |
PersistenceContextSynchronizationType |
getPersistenceContextSynchronization()
Returns the
persistence-context-synchronization element |
String |
getPersistenceContextSynchronizationAsString()
Returns the
persistence-context-synchronization 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> |
id(String id)
Sets the
id attribute |
PersistenceContextRefType<T> |
mappedName(String mappedName)
Sets the
mapped-name element |
PersistenceContextRefType<T> |
persistenceContextRefName(String persistenceContextRefName)
Sets the
persistence-context-ref-name element |
PersistenceContextRefType<T> |
persistenceContextSynchronization(PersistenceContextSynchronizationType persistenceContextSynchronization)
Sets the
persistence-context-synchronization element |
PersistenceContextRefType<T> |
persistenceContextSynchronization(String persistenceContextSynchronization)
Sets the
persistence-context-synchronization 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> |
removeId()
Removes the
id attribute |
PersistenceContextRefType<T> |
removeMappedName()
Removes the
mapped-name element |
PersistenceContextRefType<T> |
removePersistenceContextRefName()
Removes the
persistence-context-ref-name element |
PersistenceContextRefType<T> |
removePersistenceContextSynchronization()
Removes the
persistence-context-synchronization attribute |
PersistenceContextRefType<T> |
removePersistenceContextType()
Removes the
persistence-context-type attribute |
PersistenceContextRefType<T> |
removePersistenceUnitName()
Removes the
persistence-unit-name element |
persistence-property
elementPropertyType>
persistence-property
elementsPropertyType>
PersistenceContextRefType<T> mappedName(String mappedName)
mapped-name
elementmappedName
- the value for the element mapped-name
PersistenceContextRefType
String getMappedName()
mapped-name
elementmapped-name
PersistenceContextRefType<T> removeMappedName()
mapped-name
elementPersistenceContextRefType
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
elementInjectionTargetType>
List<InjectionTargetType<PersistenceContextRefType<T>>> getAllInjectionTarget()
injection-target
elementsinjection-target
PersistenceContextRefType<T> removeAllInjectionTarget()
injection-target
elementsInjectionTargetType>
PersistenceContextRefType<T> description(String... values)
description
elements,
a new description
elementvalues
- list of description
objectsPersistenceContextRefType
List<String> getAllDescription()
description
elementsdescription
PersistenceContextRefType<T> removeAllDescription()
description
elementPersistenceContextRefType
PersistenceContextRefType<T> persistenceContextRefName(String persistenceContextRefName)
persistence-context-ref-name
elementpersistenceContextRefName
- the value for the element persistence-context-ref-name
PersistenceContextRefType
String getPersistenceContextRefName()
persistence-context-ref-name
elementpersistence-context-ref-name
PersistenceContextRefType<T> removePersistenceContextRefName()
persistence-context-ref-name
elementPersistenceContextRefType
PersistenceContextRefType<T> persistenceUnitName(String persistenceUnitName)
persistence-unit-name
elementpersistenceUnitName
- the value for the element persistence-unit-name
PersistenceContextRefType
String getPersistenceUnitName()
persistence-unit-name
elementpersistence-unit-name
PersistenceContextRefType<T> removePersistenceUnitName()
persistence-unit-name
elementPersistenceContextRefType
PersistenceContextRefType<T> persistenceContextType(PersistenceContextTypeType persistenceContextType)
persistence-context-type
elementpersistenceContextType
- the value for the element persistence-context-type
PersistenceContextRefType
PersistenceContextRefType<T> persistenceContextType(String persistenceContextType)
persistence-context-type
elementpersistenceContextType
- the value for the element persistence-context-type
PersistenceContextRefType
PersistenceContextTypeType getPersistenceContextType()
persistence-context-type
elementpersistence-context-type
String getPersistenceContextTypeAsString()
persistence-context-type
elementpersistence-context-type
PersistenceContextRefType<T> removePersistenceContextType()
persistence-context-type
attributePersistenceContextRefType
PersistenceContextRefType<T> persistenceContextSynchronization(PersistenceContextSynchronizationType persistenceContextSynchronization)
persistence-context-synchronization
elementpersistenceContextSynchronization
- the value for the element persistence-context-synchronization
PersistenceContextRefType
PersistenceContextRefType<T> persistenceContextSynchronization(String persistenceContextSynchronization)
persistence-context-synchronization
elementpersistenceContextSynchronization
- the value for the element persistence-context-synchronization
PersistenceContextRefType
PersistenceContextSynchronizationType getPersistenceContextSynchronization()
persistence-context-synchronization
elementpersistence-context-synchronization
String getPersistenceContextSynchronizationAsString()
persistence-context-synchronization
elementpersistence-context-synchronization
PersistenceContextRefType<T> removePersistenceContextSynchronization()
persistence-context-synchronization
attributePersistenceContextRefType
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
elementPropertyType>
List<PropertyType<PersistenceContextRefType<T>>> getAllPersistenceProperty()
persistence-property
elementspersistence-property
PersistenceContextRefType<T> removeAllPersistenceProperty()
persistence-property
elementsPropertyType>
PersistenceContextRefType<T> id(String id)
id
attributeid
- the value for the attribute id
PersistenceContextRefType
String getId()
id
attributeid
PersistenceContextRefType<T> removeId()
id
attributePersistenceContextRefType
Copyright © 2014 IronJacamar (http://www.ironjacamar.org)