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 theconnection-definitionTypexsd type
-
-
Constructor Summary
Constructors Constructor Description ConnectionDefinitionTypeImpl(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionDefinitionType<T>className(String className)Sets theclass-nameattributeConfigPropertyType<ConnectionDefinitionType<T>>createConfigProperty()Creates a newconfig-propertyelementConnectionDefinitionType<T>enabled(Boolean enabled)Sets theenabledattributeList<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-nameattributeBooleanisEnabled()Returns theenabledattributeBooleanisUseCcm()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>removeEnabled()Removes theenabledattributeConnectionDefinitionType<T>removeJndiName()Removes thejndi-nameattributeConnectionDefinitionType<T>removePool()Removes thepoolelementConnectionDefinitionType<T>removePoolName()Removes thepool-nameattributeConnectionDefinitionType<T>removeRecovery()Removes therecoveryelementConnectionDefinitionType<T>removeSecurity()Removes thesecurityelementConnectionDefinitionType<T>removeTimeout()Removes thetimeoutelementConnectionDefinitionType<T>removeUseCcm()Removes theuse-ccmattributeConnectionDefinitionType<T>removeUseJavaContext()Removes theuse-java-contextattributeConnectionDefinitionType<T>removeValidation()Removes thevalidationelementConnectionDefinitionType<T>removeXaPool()Removes thexa-poolelementTup()ConnectionDefinitionType<T>useCcm(Boolean useCcm)Sets theuse-ccmattributeConnectionDefinitionType<T>useJavaContext(Boolean useJavaContext)Sets theuse-java-contextattribute
-
-
-
Method Detail
-
className
public ConnectionDefinitionType<T> className(String className)
Sets theclass-nameattribute- Specified by:
classNamein interfaceConnectionDefinitionType<T>- Parameters:
className- the value for the attributeclass-name- Returns:
- the current instance of
ConnectionDefinitionType
-
getClassName
public String getClassName()
Returns theclass-nameattribute- Specified by:
getClassNamein interfaceConnectionDefinitionType<T>- Returns:
- the value defined for the attribute
class-name
-
removeClassName
public ConnectionDefinitionType<T> removeClassName()
Removes theclass-nameattribute- Specified by:
removeClassNamein interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
jndiName
public ConnectionDefinitionType<T> jndiName(String jndiName)
Sets thejndi-nameattribute- Specified by:
jndiNamein interfaceConnectionDefinitionType<T>- Parameters:
jndiName- the value for the attributejndi-name- Returns:
- the current instance of
ConnectionDefinitionType
-
getJndiName
public String getJndiName()
Returns thejndi-nameattribute- Specified by:
getJndiNamein interfaceConnectionDefinitionType<T>- Returns:
- the value defined for the attribute
jndi-name
-
removeJndiName
public ConnectionDefinitionType<T> removeJndiName()
Removes thejndi-nameattribute- Specified by:
removeJndiNamein interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
enabled
public ConnectionDefinitionType<T> enabled(Boolean enabled)
Sets theenabledattribute- Specified by:
enabledin interfaceConnectionDefinitionType<T>- Parameters:
enabled- the value for the attributeenabled- Returns:
- the current instance of
ConnectionDefinitionType
-
isEnabled
public Boolean isEnabled()
Returns theenabledattribute- Specified by:
isEnabledin interfaceConnectionDefinitionType<T>- Returns:
- the value defined for the attribute
enabled
-
removeEnabled
public ConnectionDefinitionType<T> removeEnabled()
Removes theenabledattribute- Specified by:
removeEnabledin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
useJavaContext
public ConnectionDefinitionType<T> useJavaContext(Boolean 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
public Boolean isUseJavaContext()
Returns theuse-java-contextattribute- Specified by:
isUseJavaContextin interfaceConnectionDefinitionType<T>- Returns:
- the value defined for the attribute
use-java-context
-
removeUseJavaContext
public ConnectionDefinitionType<T> removeUseJavaContext()
Removes theuse-java-contextattribute- Specified by:
removeUseJavaContextin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
poolName
public ConnectionDefinitionType<T> poolName(String poolName)
Sets thepool-nameattribute- Specified by:
poolNamein interfaceConnectionDefinitionType<T>- Parameters:
poolName- the value for the attributepool-name- Returns:
- the current instance of
ConnectionDefinitionType
-
getPoolName
public String getPoolName()
Returns thepool-nameattribute- Specified by:
getPoolNamein interfaceConnectionDefinitionType<T>- Returns:
- the value defined for the attribute
pool-name
-
removePoolName
public ConnectionDefinitionType<T> removePoolName()
Removes thepool-nameattribute- Specified by:
removePoolNamein interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateConfigProperty
public ConfigPropertyType<ConnectionDefinitionType<T>> 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
public ConfigPropertyType<ConnectionDefinitionType<T>> createConfigProperty()
Creates a newconfig-propertyelement- Specified by:
createConfigPropertyin interfaceConnectionDefinitionType<T>- Returns:
- the new created instance of
ConfigPropertyType>
-
getAllConfigProperty
public List<ConfigPropertyType<ConnectionDefinitionType<T>>> getAllConfigProperty()
Returns allconfig-propertyelements- Specified by:
getAllConfigPropertyin interfaceConnectionDefinitionType<T>- Returns:
- list of
config-property
-
removeAllConfigProperty
public ConnectionDefinitionType<T> removeAllConfigProperty()
Removes allconfig-propertyelements- Specified by:
removeAllConfigPropertyin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConfigPropertyType>
-
getOrCreatePool
public PoolType<ConnectionDefinitionType<T>> 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>
-
removePool
public ConnectionDefinitionType<T> removePool()
Removes thepoolelement- Specified by:
removePoolin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateXaPool
public 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.- Specified by:
getOrCreateXaPoolin interfaceConnectionDefinitionType<T>- Returns:
- a new or existing instance of
XaPoolType>
-
removeXaPool
public ConnectionDefinitionType<T> removeXaPool()
Removes thexa-poolelement- Specified by:
removeXaPoolin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateSecurity
public SecurityType<ConnectionDefinitionType<T>> 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>
-
removeSecurity
public ConnectionDefinitionType<T> removeSecurity()
Removes thesecurityelement- Specified by:
removeSecurityin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateTimeout
public TimeoutType<ConnectionDefinitionType<T>> 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>
-
removeTimeout
public ConnectionDefinitionType<T> removeTimeout()
Removes thetimeoutelement- Specified by:
removeTimeoutin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateValidation
public ValidationType<ConnectionDefinitionType<T>> 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>
-
removeValidation
public ConnectionDefinitionType<T> removeValidation()
Removes thevalidationelement- Specified by:
removeValidationin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateRecovery
public RecoverType<ConnectionDefinitionType<T>> 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>
-
removeRecovery
public ConnectionDefinitionType<T> removeRecovery()
Removes therecoveryelement- Specified by:
removeRecoveryin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
useCcm
public ConnectionDefinitionType<T> useCcm(Boolean useCcm)
Sets theuse-ccmattribute- Specified by:
useCcmin interfaceConnectionDefinitionType<T>- Parameters:
useCcm- the value for the attributeuse-ccm- Returns:
- the current instance of
ConnectionDefinitionType
-
isUseCcm
public Boolean isUseCcm()
Returns theuse-ccmattribute- Specified by:
isUseCcmin interfaceConnectionDefinitionType<T>- Returns:
- the value defined for the attribute
use-ccm
-
removeUseCcm
public ConnectionDefinitionType<T> removeUseCcm()
Removes theuse-ccmattribute- Specified by:
removeUseCcmin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
-