Class ConnectionDefinitionTypeImpl<T>
java.lang.Object
org.jboss.jca.embedded.dsl.resourceadapters10.impl.ConnectionDefinitionTypeImpl<T>
- All Implemented Interfaces:
ConnectionDefinitionType<T>,org.jboss.shrinkwrap.descriptor.api.Child<T>
public class ConnectionDefinitionTypeImpl<T>
extends Object
implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ConnectionDefinitionType<T>
This class implements the
connection-definitionType xsd type-
Constructor Summary
ConstructorsConstructorDescriptionConnectionDefinitionTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node) ConnectionDefinitionTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode) -
Method Summary
Modifier and TypeMethodDescriptionSets theclass-nameattributeCreates a newconfig-propertyelementSets theenabledattributeReturns 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 theenabledattributeisUseCcm()Returns theuse-ccmattributeReturns theuse-java-contextattributeSets thejndi-nameattributeSets thepool-nameattributeRemoves allconfig-propertyelementsRemoves theclass-nameattributeRemoves theenabledattributeRemoves thejndi-nameattributeRemoves thepoolelementRemoves thepool-nameattributeRemoves therecoveryelementRemoves thesecurityelementRemoves thetimeoutelementRemoves theuse-ccmattributeRemoves theuse-java-contextattributeRemoves thevalidationelementRemoves thexa-poolelementup()Sets theuse-ccmattributeuseJavaContext(Boolean useJavaContext) Sets theuse-java-contextattribute
-
Constructor Details
-
ConnectionDefinitionTypeImpl
-
ConnectionDefinitionTypeImpl
-
-
Method Details
-
up
- Specified by:
upin interfaceorg.jboss.shrinkwrap.descriptor.api.Child<T>
-
className
Sets theclass-nameattribute- Specified by:
classNamein interfaceConnectionDefinitionType<T>- Parameters:
className- the value for the attributeclass-name- Returns:
- the current instance of
ConnectionDefinitionType
-
getClassName
Returns theclass-nameattribute- Specified by:
getClassNamein interfaceConnectionDefinitionType<T>- Returns:
- the value defined for the attribute
class-name
-
removeClassName
Removes theclass-nameattribute- Specified by:
removeClassNamein interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
jndiName
Sets thejndi-nameattribute- Specified by:
jndiNamein interfaceConnectionDefinitionType<T>- Parameters:
jndiName- the value for the attributejndi-name- Returns:
- the current instance of
ConnectionDefinitionType
-
getJndiName
Returns thejndi-nameattribute- Specified by:
getJndiNamein interfaceConnectionDefinitionType<T>- Returns:
- the value defined for the attribute
jndi-name
-
removeJndiName
Removes thejndi-nameattribute- Specified by:
removeJndiNamein interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
enabled
Sets theenabledattribute- Specified by:
enabledin interfaceConnectionDefinitionType<T>- Parameters:
enabled- the value for the attributeenabled- Returns:
- the current instance of
ConnectionDefinitionType
-
isEnabled
Returns theenabledattribute- Specified by:
isEnabledin interfaceConnectionDefinitionType<T>- Returns:
- the value defined for the attribute
enabled
-
removeEnabled
Removes theenabledattribute- Specified by:
removeEnabledin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
useJavaContext
Sets theuse-java-contextattribute- Specified by:
useJavaContextin interfaceConnectionDefinitionType<T>- Parameters:
useJavaContext- the value for the attributeuse-java-context- Returns:
- the current instance of
ConnectionDefinitionType
-
isUseJavaContext
Returns theuse-java-contextattribute- Specified by:
isUseJavaContextin interfaceConnectionDefinitionType<T>- Returns:
- the value defined for the attribute
use-java-context
-
removeUseJavaContext
Removes theuse-java-contextattribute- Specified by:
removeUseJavaContextin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
poolName
Sets thepool-nameattribute- Specified by:
poolNamein interfaceConnectionDefinitionType<T>- Parameters:
poolName- the value for the attributepool-name- Returns:
- the current instance of
ConnectionDefinitionType
-
getPoolName
Returns thepool-nameattribute- Specified by:
getPoolNamein interfaceConnectionDefinitionType<T>- Returns:
- the value defined for the attribute
pool-name
-
removePoolName
Removes thepool-nameattribute- Specified by:
removePoolNamein interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateConfigProperty
If not already created, a newconfig-propertyelement will be created and returned. Otherwise, the first existingconfig-propertyelement will be returned.- Specified by:
getOrCreateConfigPropertyin interfaceConnectionDefinitionType<T>- Returns:
- the instance defined for the element
config-property
-
createConfigProperty
Creates a newconfig-propertyelement- Specified by:
createConfigPropertyin interfaceConnectionDefinitionType<T>- Returns:
- the new created instance of
ConfigPropertyType<ConnectionDefinitionType>
-
getAllConfigProperty
Returns allconfig-propertyelements- Specified by:
getAllConfigPropertyin interfaceConnectionDefinitionType<T>- Returns:
- list of
config-property
-
removeAllConfigProperty
Removes allconfig-propertyelements- Specified by:
removeAllConfigPropertyin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConfigPropertyType<ConnectionDefinitionType>
-
getOrCreatePool
If not already created, a newpoolelement with the given value will be created. Otherwise, the existingpoolelement will be returned.- Specified by:
getOrCreatePoolin interfaceConnectionDefinitionType<T>- Returns:
- a new or existing instance of
PoolType<ConnectionDefinitionType>
-
removePool
Removes thepoolelement- Specified by:
removePoolin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateXaPool
If not already created, a newxa-poolelement with the given value will be created. Otherwise, the existingxa-poolelement will be returned.- Specified by:
getOrCreateXaPoolin interfaceConnectionDefinitionType<T>- Returns:
- a new or existing instance of
XaPoolType<ConnectionDefinitionType>
-
removeXaPool
Removes thexa-poolelement- Specified by:
removeXaPoolin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateSecurity
If not already created, a newsecurityelement with the given value will be created. Otherwise, the existingsecurityelement will be returned.- Specified by:
getOrCreateSecurityin interfaceConnectionDefinitionType<T>- Returns:
- a new or existing instance of
SecurityType<ConnectionDefinitionType>
-
removeSecurity
Removes thesecurityelement- Specified by:
removeSecurityin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateTimeout
If not already created, a newtimeoutelement with the given value will be created. Otherwise, the existingtimeoutelement will be returned.- Specified by:
getOrCreateTimeoutin interfaceConnectionDefinitionType<T>- Returns:
- a new or existing instance of
TimeoutType<ConnectionDefinitionType>
-
removeTimeout
Removes thetimeoutelement- Specified by:
removeTimeoutin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateValidation
If not already created, a newvalidationelement with the given value will be created. Otherwise, the existingvalidationelement will be returned.- Specified by:
getOrCreateValidationin interfaceConnectionDefinitionType<T>- Returns:
- a new or existing instance of
ValidationType<ConnectionDefinitionType>
-
removeValidation
Removes thevalidationelement- Specified by:
removeValidationin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateRecovery
If not already created, a newrecoveryelement with the given value will be created. Otherwise, the existingrecoveryelement will be returned.- Specified by:
getOrCreateRecoveryin interfaceConnectionDefinitionType<T>- Returns:
- a new or existing instance of
RecoverType<ConnectionDefinitionType>
-
removeRecovery
Removes therecoveryelement- Specified by:
removeRecoveryin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
useCcm
Sets theuse-ccmattribute- Specified by:
useCcmin interfaceConnectionDefinitionType<T>- Parameters:
useCcm- the value for the attributeuse-ccm- Returns:
- the current instance of
ConnectionDefinitionType
-
isUseCcm
Returns theuse-ccmattribute- Specified by:
isUseCcmin interfaceConnectionDefinitionType<T>- Returns:
- the value defined for the attribute
use-ccm
-
removeUseCcm
Removes theuse-ccmattribute- Specified by:
removeUseCcmin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-