Interface ConnectionDefinitionType<T>
-
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
ConnectionDefinitionTypeImpl
public interface ConnectionDefinitionType<T> extends org.jboss.shrinkwrap.descriptor.api.Child<T>This interface defines the contract for theconnection-definitionTypexsd type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectionDefinitionType<T>className(String className)Sets theclass-nameattributeConnectionDefinitionType<T>connectable(Boolean connectable)Sets theconnectableattributeConfigPropertyType<ConnectionDefinitionType<T>>createConfigProperty()Creates a newconfig-propertyelementConnectionDefinitionType<T>enabled(Boolean enabled)Sets theenabledattributeConnectionDefinitionType<T>enlistment(Boolean enlistment)Sets theenlistmentattributeList<ConfigPropertyType<ConnectionDefinitionType<T>>>getAllConfigProperty()Returns allconfig-propertyelementsStringgetClassName()Returns theclass-nameattributeStringgetJndiName()Returns thejndi-nameattributeConfigPropertyType<ConnectionDefinitionType<T>>getOrCreateConfigProperty()If not already created, a newconfig-propertyelement will be created and returned.PoolType<ConnectionDefinitionType<T>>getOrCreatePool()If not already created, a newpoolelement with the given value will be created.RecoverType<ConnectionDefinitionType<T>>getOrCreateRecovery()If not already created, a newrecoveryelement with the given value will be created.SecurityType<ConnectionDefinitionType<T>>getOrCreateSecurity()If not already created, a newsecurityelement with the given value will be created.TimeoutType<ConnectionDefinitionType<T>>getOrCreateTimeout()If not already created, a newtimeoutelement with the given value will be created.ValidationType<ConnectionDefinitionType<T>>getOrCreateValidation()If not already created, a newvalidationelement with the given value will be created.XaPoolType<ConnectionDefinitionType<T>>getOrCreateXaPool()If not already created, a newxa-poolelement with the given value will be created.StringgetPoolName()Returns thepool-nameattributeBooleanisConnectable()Returns theconnectableattributeBooleanisEnabled()Returns theenabledattributeBooleanisEnlistment()Returns theenlistmentattributeBooleanisSharable()Returns thesharableattributeBooleanisTracking()Returns thetrackingattributeBooleanisUseCcm()Returns theuse-ccmattributeBooleanisUseJavaContext()Returns theuse-java-contextattributeConnectionDefinitionType<T>jndiName(String jndiName)Sets thejndi-nameattributeConnectionDefinitionType<T>poolName(String poolName)Sets thepool-nameattributeConnectionDefinitionType<T>removeAllConfigProperty()Removes allconfig-propertyelementsConnectionDefinitionType<T>removeClassName()Removes theclass-nameattributeConnectionDefinitionType<T>removeConnectable()Removes theconnectableattributeConnectionDefinitionType<T>removeEnabled()Removes theenabledattributeConnectionDefinitionType<T>removeEnlistment()Removes theenlistmentattributeConnectionDefinitionType<T>removeJndiName()Removes thejndi-nameattributeConnectionDefinitionType<T>removePool()Removes thepoolelementConnectionDefinitionType<T>removePoolName()Removes thepool-nameattributeConnectionDefinitionType<T>removeRecovery()Removes therecoveryelementConnectionDefinitionType<T>removeSecurity()Removes thesecurityelementConnectionDefinitionType<T>removeSharable()Removes thesharableattributeConnectionDefinitionType<T>removeTimeout()Removes thetimeoutelementConnectionDefinitionType<T>removeTracking()Removes thetrackingattributeConnectionDefinitionType<T>removeUseCcm()Removes theuse-ccmattributeConnectionDefinitionType<T>removeUseJavaContext()Removes theuse-java-contextattributeConnectionDefinitionType<T>removeValidation()Removes thevalidationelementConnectionDefinitionType<T>removeXaPool()Removes thexa-poolelementConnectionDefinitionType<T>sharable(Boolean sharable)Sets thesharableattributeConnectionDefinitionType<T>tracking(Boolean tracking)Sets thetrackingattributeConnectionDefinitionType<T>useCcm(Boolean useCcm)Sets theuse-ccmattributeConnectionDefinitionType<T>useJavaContext(Boolean useJavaContext)Sets theuse-java-contextattribute
-
-
-
Method Detail
-
className
ConnectionDefinitionType<T> className(String className)
Sets theclass-nameattribute- Parameters:
className- the value for the attributeclass-name- Returns:
- the current instance of
ConnectionDefinitionType
-
getClassName
String getClassName()
Returns theclass-nameattribute- Returns:
- the value defined for the attribute
class-name
-
removeClassName
ConnectionDefinitionType<T> removeClassName()
Removes theclass-nameattribute- Returns:
- the current instance of
ConnectionDefinitionType
-
jndiName
ConnectionDefinitionType<T> jndiName(String jndiName)
Sets thejndi-nameattribute- Parameters:
jndiName- the value for the attributejndi-name- Returns:
- the current instance of
ConnectionDefinitionType
-
getJndiName
String getJndiName()
Returns thejndi-nameattribute- Returns:
- the value defined for the attribute
jndi-name
-
removeJndiName
ConnectionDefinitionType<T> removeJndiName()
Removes thejndi-nameattribute- Returns:
- the current instance of
ConnectionDefinitionType
-
enabled
ConnectionDefinitionType<T> enabled(Boolean enabled)
Sets theenabledattribute- Parameters:
enabled- the value for the attributeenabled- Returns:
- the current instance of
ConnectionDefinitionType
-
isEnabled
Boolean isEnabled()
Returns theenabledattribute- Returns:
- the value defined for the attribute
enabled
-
removeEnabled
ConnectionDefinitionType<T> removeEnabled()
Removes theenabledattribute- Returns:
- the current instance of
ConnectionDefinitionType
-
useJavaContext
ConnectionDefinitionType<T> useJavaContext(Boolean useJavaContext)
Sets theuse-java-contextattribute- Parameters:
useJavaContext- the value for the attributeuse-java-context- Returns:
- the current instance of
ConnectionDefinitionType
-
isUseJavaContext
Boolean isUseJavaContext()
Returns theuse-java-contextattribute- Returns:
- the value defined for the attribute
use-java-context
-
removeUseJavaContext
ConnectionDefinitionType<T> removeUseJavaContext()
Removes theuse-java-contextattribute- Returns:
- the current instance of
ConnectionDefinitionType
-
poolName
ConnectionDefinitionType<T> poolName(String poolName)
Sets thepool-nameattribute- Parameters:
poolName- the value for the attributepool-name- Returns:
- the current instance of
ConnectionDefinitionType
-
getPoolName
String getPoolName()
Returns thepool-nameattribute- Returns:
- the value defined for the attribute
pool-name
-
removePoolName
ConnectionDefinitionType<T> removePoolName()
Removes thepool-nameattribute- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateConfigProperty
ConfigPropertyType<ConnectionDefinitionType<T>> getOrCreateConfigProperty()
If not already created, a newconfig-propertyelement will be created and returned. Otherwise, the first existingconfig-propertyelement will be returned.- Returns:
- the instance defined for the element
config-property
-
createConfigProperty
ConfigPropertyType<ConnectionDefinitionType<T>> createConfigProperty()
Creates a newconfig-propertyelement- Returns:
- the new created instance of
ConfigPropertyType>
-
getAllConfigProperty
List<ConfigPropertyType<ConnectionDefinitionType<T>>> getAllConfigProperty()
Returns allconfig-propertyelements- Returns:
- list of
config-property
-
removeAllConfigProperty
ConnectionDefinitionType<T> removeAllConfigProperty()
Removes allconfig-propertyelements- Returns:
- the current instance of
ConfigPropertyType>
-
getOrCreatePool
PoolType<ConnectionDefinitionType<T>> getOrCreatePool()
If not already created, a newpoolelement with the given value will be created. Otherwise, the existingpoolelement will be returned.- Returns:
- a new or existing instance of
PoolType>
-
removePool
ConnectionDefinitionType<T> removePool()
Removes thepoolelement- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateXaPool
XaPoolType<ConnectionDefinitionType<T>> getOrCreateXaPool()
If not already created, a newxa-poolelement with the given value will be created. Otherwise, the existingxa-poolelement will be returned.- Returns:
- a new or existing instance of
XaPoolType>
-
removeXaPool
ConnectionDefinitionType<T> removeXaPool()
Removes thexa-poolelement- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateSecurity
SecurityType<ConnectionDefinitionType<T>> getOrCreateSecurity()
If not already created, a newsecurityelement with the given value will be created. Otherwise, the existingsecurityelement will be returned.- Returns:
- a new or existing instance of
SecurityType>
-
removeSecurity
ConnectionDefinitionType<T> removeSecurity()
Removes thesecurityelement- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateTimeout
TimeoutType<ConnectionDefinitionType<T>> getOrCreateTimeout()
If not already created, a newtimeoutelement with the given value will be created. Otherwise, the existingtimeoutelement will be returned.- Returns:
- a new or existing instance of
TimeoutType>
-
removeTimeout
ConnectionDefinitionType<T> removeTimeout()
Removes thetimeoutelement- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateValidation
ValidationType<ConnectionDefinitionType<T>> getOrCreateValidation()
If not already created, a newvalidationelement with the given value will be created. Otherwise, the existingvalidationelement will be returned.- Returns:
- a new or existing instance of
ValidationType>
-
removeValidation
ConnectionDefinitionType<T> removeValidation()
Removes thevalidationelement- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateRecovery
RecoverType<ConnectionDefinitionType<T>> getOrCreateRecovery()
If not already created, a newrecoveryelement with the given value will be created. Otherwise, the existingrecoveryelement will be returned.- Returns:
- a new or existing instance of
RecoverType>
-
removeRecovery
ConnectionDefinitionType<T> removeRecovery()
Removes therecoveryelement- Returns:
- the current instance of
ConnectionDefinitionType
-
useCcm
ConnectionDefinitionType<T> useCcm(Boolean useCcm)
Sets theuse-ccmattribute- Parameters:
useCcm- the value for the attributeuse-ccm- Returns:
- the current instance of
ConnectionDefinitionType
-
isUseCcm
Boolean isUseCcm()
Returns theuse-ccmattribute- Returns:
- the value defined for the attribute
use-ccm
-
removeUseCcm
ConnectionDefinitionType<T> removeUseCcm()
Removes theuse-ccmattribute- Returns:
- the current instance of
ConnectionDefinitionType
-
sharable
ConnectionDefinitionType<T> sharable(Boolean sharable)
Sets thesharableattribute- Parameters:
sharable- the value for the attributesharable- Returns:
- the current instance of
ConnectionDefinitionType
-
isSharable
Boolean isSharable()
Returns thesharableattribute- Returns:
- the value defined for the attribute
sharable
-
removeSharable
ConnectionDefinitionType<T> removeSharable()
Removes thesharableattribute- Returns:
- the current instance of
ConnectionDefinitionType
-
enlistment
ConnectionDefinitionType<T> enlistment(Boolean enlistment)
Sets theenlistmentattribute- Parameters:
enlistment- the value for the attributeenlistment- Returns:
- the current instance of
ConnectionDefinitionType
-
isEnlistment
Boolean isEnlistment()
Returns theenlistmentattribute- Returns:
- the value defined for the attribute
enlistment
-
removeEnlistment
ConnectionDefinitionType<T> removeEnlistment()
Removes theenlistmentattribute- Returns:
- the current instance of
ConnectionDefinitionType
-
connectable
ConnectionDefinitionType<T> connectable(Boolean connectable)
Sets theconnectableattribute- Parameters:
connectable- the value for the attributeconnectable- Returns:
- the current instance of
ConnectionDefinitionType
-
isConnectable
Boolean isConnectable()
Returns theconnectableattribute- Returns:
- the value defined for the attribute
connectable
-
removeConnectable
ConnectionDefinitionType<T> removeConnectable()
Removes theconnectableattribute- Returns:
- the current instance of
ConnectionDefinitionType
-
tracking
ConnectionDefinitionType<T> tracking(Boolean tracking)
Sets thetrackingattribute- Parameters:
tracking- the value for the attributetracking- Returns:
- the current instance of
ConnectionDefinitionType
-
isTracking
Boolean isTracking()
Returns thetrackingattribute- Returns:
- the value defined for the attribute
tracking
-
removeTracking
ConnectionDefinitionType<T> removeTracking()
Removes thetrackingattribute- Returns:
- the current instance of
ConnectionDefinitionType
-
-