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 the
connection-definitionType xsd type-
Method Summary
Modifier and TypeMethodDescriptionSets theclass-nameattributeCreates a newconfig-propertyelementSets theenabledattributeenlistment(Boolean enlistment) Sets theenlistmentattributeReturns allconfig-propertyelementsReturns theclass-nameattributeReturns thejndi-nameattributeIf not already created, a newconfig-propertyelement will be created and returned.If not already created, a newpoolelement with the given value will be created.If not already created, a newrecoveryelement with the given value will be created.If not already created, a newsecurityelement with the given value will be created.If not already created, a newtimeoutelement with the given value will be created.If not already created, a newvalidationelement with the given value will be created.If not already created, a newxa-poolelement with the given value will be created.Returns thepool-nameattributeReturns theenabledattributeReturns theenlistmentattributeReturns thesharableattributeisUseCcm()Returns theuse-ccmattributeReturns theuse-java-contextattributeSets thejndi-nameattributeSets thepool-nameattributeRemoves allconfig-propertyelementsRemoves theclass-nameattributeRemoves theenabledattributeRemoves theenlistmentattributeRemoves thejndi-nameattributeRemoves thepoolelementRemoves thepool-nameattributeRemoves therecoveryelementRemoves thesecurityelementRemoves thesharableattributeRemoves thetimeoutelementRemoves theuse-ccmattributeRemoves theuse-java-contextattributeRemoves thevalidationelementRemoves thexa-poolelementSets thesharableattributeSets theuse-ccmattributeuseJavaContext(Boolean useJavaContext) Sets theuse-java-contextattributeMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
-
Method Details
-
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
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
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
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
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
ConfigPropertyTypeinvalid input: '<'ConnectionDefinitionType>
-
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
ConfigPropertyTypeinvalid input: '<'ConnectionDefinitionType>
-
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
PoolTypeinvalid input: '<'ConnectionDefinitionType>
-
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
XaPoolTypeinvalid input: '<'ConnectionDefinitionType>
-
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
SecurityTypeinvalid input: '<'ConnectionDefinitionType>
-
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
TimeoutTypeinvalid input: '<'ConnectionDefinitionType>
-
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
ValidationTypeinvalid input: '<'ConnectionDefinitionType>
-
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
RecoverTypeinvalid input: '<'ConnectionDefinitionType>
-
removeRecovery
ConnectionDefinitionType<T> removeRecovery()Removes therecoveryelement- Returns:
- the current instance of
ConnectionDefinitionType
-
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
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
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
-