public class ConnectionDefinitionTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ConnectionDefinitionType<T>
connection-definitionType
xsd typeConstructor and 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) |
Modifier and Type | Method and Description |
---|---|
ConnectionDefinitionType<T> |
className(String className)
Sets the
class-name attribute |
ConfigPropertyType<ConnectionDefinitionType<T>> |
createConfigProperty()
Creates a new
config-property element |
ConnectionDefinitionType<T> |
enabled(Boolean enabled)
Sets the
enabled attribute |
List<ConfigPropertyType<ConnectionDefinitionType<T>>> |
getAllConfigProperty()
Returns all
config-property elements |
String |
getClassName()
Returns the
class-name attribute |
String |
getJndiName()
Returns the
jndi-name attribute |
ConfigPropertyType<ConnectionDefinitionType<T>> |
getOrCreateConfigProperty()
If not already created, a new
config-property element will be created and returned. |
PoolType<ConnectionDefinitionType<T>> |
getOrCreatePool()
If not already created, a new
pool element with the given value will be created. |
RecoverType<ConnectionDefinitionType<T>> |
getOrCreateRecovery()
If not already created, a new
recovery element with the given value will be created. |
SecurityType<ConnectionDefinitionType<T>> |
getOrCreateSecurity()
If not already created, a new
security element with the given value will be created. |
TimeoutType<ConnectionDefinitionType<T>> |
getOrCreateTimeout()
If not already created, a new
timeout element with the given value will be created. |
ValidationType<ConnectionDefinitionType<T>> |
getOrCreateValidation()
If not already created, a new
validation element with the given value will be created. |
XaPoolType<ConnectionDefinitionType<T>> |
getOrCreateXaPool()
If not already created, a new
xa-pool element with the given value will be created. |
String |
getPoolName()
Returns the
pool-name attribute |
Boolean |
isEnabled()
Returns the
enabled attribute |
Boolean |
isUseCcm()
Returns the
use-ccm attribute |
Boolean |
isUseJavaContext()
Returns the
use-java-context attribute |
ConnectionDefinitionType<T> |
jndiName(String jndiName)
Sets the
jndi-name attribute |
ConnectionDefinitionType<T> |
poolName(String poolName)
Sets the
pool-name attribute |
ConnectionDefinitionType<T> |
removeAllConfigProperty()
Removes all
config-property elements |
ConnectionDefinitionType<T> |
removeClassName()
Removes the
class-name attribute |
ConnectionDefinitionType<T> |
removeEnabled()
Removes the
enabled attribute |
ConnectionDefinitionType<T> |
removeJndiName()
Removes the
jndi-name attribute |
ConnectionDefinitionType<T> |
removePool()
Removes the
pool element |
ConnectionDefinitionType<T> |
removePoolName()
Removes the
pool-name attribute |
ConnectionDefinitionType<T> |
removeRecovery()
Removes the
recovery element |
ConnectionDefinitionType<T> |
removeSecurity()
Removes the
security element |
ConnectionDefinitionType<T> |
removeTimeout()
Removes the
timeout element |
ConnectionDefinitionType<T> |
removeUseCcm()
Removes the
use-ccm attribute |
ConnectionDefinitionType<T> |
removeUseJavaContext()
Removes the
use-java-context attribute |
ConnectionDefinitionType<T> |
removeValidation()
Removes the
validation element |
ConnectionDefinitionType<T> |
removeXaPool()
Removes the
xa-pool element |
T |
up() |
ConnectionDefinitionType<T> |
useCcm(Boolean useCcm)
Sets the
use-ccm attribute |
ConnectionDefinitionType<T> |
useJavaContext(Boolean useJavaContext)
Sets the
use-java-context attribute |
public ConnectionDefinitionTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
public ConnectionDefinitionType<T> className(String className)
class-name
attributeclassName
in interface ConnectionDefinitionType<T>
className
- the value for the attribute class-name
ConnectionDefinitionType
public String getClassName()
class-name
attributegetClassName
in interface ConnectionDefinitionType<T>
class-name
public ConnectionDefinitionType<T> removeClassName()
class-name
attributeremoveClassName
in interface ConnectionDefinitionType<T>
ConnectionDefinitionType
public ConnectionDefinitionType<T> jndiName(String jndiName)
jndi-name
attributejndiName
in interface ConnectionDefinitionType<T>
jndiName
- the value for the attribute jndi-name
ConnectionDefinitionType
public String getJndiName()
jndi-name
attributegetJndiName
in interface ConnectionDefinitionType<T>
jndi-name
public ConnectionDefinitionType<T> removeJndiName()
jndi-name
attributeremoveJndiName
in interface ConnectionDefinitionType<T>
ConnectionDefinitionType
public ConnectionDefinitionType<T> enabled(Boolean enabled)
enabled
attributeenabled
in interface ConnectionDefinitionType<T>
enabled
- the value for the attribute enabled
ConnectionDefinitionType
public Boolean isEnabled()
enabled
attributeisEnabled
in interface ConnectionDefinitionType<T>
enabled
public ConnectionDefinitionType<T> removeEnabled()
enabled
attributeremoveEnabled
in interface ConnectionDefinitionType<T>
ConnectionDefinitionType
public ConnectionDefinitionType<T> useJavaContext(Boolean useJavaContext)
use-java-context
attributeuseJavaContext
in interface ConnectionDefinitionType<T>
useJavaContext
- the value for the attribute use-java-context
ConnectionDefinitionType
public Boolean isUseJavaContext()
use-java-context
attributeisUseJavaContext
in interface ConnectionDefinitionType<T>
use-java-context
public ConnectionDefinitionType<T> removeUseJavaContext()
use-java-context
attributeremoveUseJavaContext
in interface ConnectionDefinitionType<T>
ConnectionDefinitionType
public ConnectionDefinitionType<T> poolName(String poolName)
pool-name
attributepoolName
in interface ConnectionDefinitionType<T>
poolName
- the value for the attribute pool-name
ConnectionDefinitionType
public String getPoolName()
pool-name
attributegetPoolName
in interface ConnectionDefinitionType<T>
pool-name
public ConnectionDefinitionType<T> removePoolName()
pool-name
attributeremovePoolName
in interface ConnectionDefinitionType<T>
ConnectionDefinitionType
public ConfigPropertyType<ConnectionDefinitionType<T>> getOrCreateConfigProperty()
config-property
element will be created and returned.
Otherwise, the first existing config-property
element will be returned.getOrCreateConfigProperty
in interface ConnectionDefinitionType<T>
config-property
public ConfigPropertyType<ConnectionDefinitionType<T>> createConfigProperty()
config-property
elementcreateConfigProperty
in interface ConnectionDefinitionType<T>
ConfigPropertyType>
public List<ConfigPropertyType<ConnectionDefinitionType<T>>> getAllConfigProperty()
config-property
elementsgetAllConfigProperty
in interface ConnectionDefinitionType<T>
config-property
public ConnectionDefinitionType<T> removeAllConfigProperty()
config-property
elementsremoveAllConfigProperty
in interface ConnectionDefinitionType<T>
ConfigPropertyType>
public PoolType<ConnectionDefinitionType<T>> getOrCreatePool()
pool
element with the given value will be created.
Otherwise, the existing pool
element will be returned.getOrCreatePool
in interface ConnectionDefinitionType<T>
PoolType>
public ConnectionDefinitionType<T> removePool()
pool
elementremovePool
in interface ConnectionDefinitionType<T>
ConnectionDefinitionType
public XaPoolType<ConnectionDefinitionType<T>> getOrCreateXaPool()
xa-pool
element with the given value will be created.
Otherwise, the existing xa-pool
element will be returned.getOrCreateXaPool
in interface ConnectionDefinitionType<T>
XaPoolType>
public ConnectionDefinitionType<T> removeXaPool()
xa-pool
elementremoveXaPool
in interface ConnectionDefinitionType<T>
ConnectionDefinitionType
public SecurityType<ConnectionDefinitionType<T>> getOrCreateSecurity()
security
element with the given value will be created.
Otherwise, the existing security
element will be returned.getOrCreateSecurity
in interface ConnectionDefinitionType<T>
SecurityType>
public ConnectionDefinitionType<T> removeSecurity()
security
elementremoveSecurity
in interface ConnectionDefinitionType<T>
ConnectionDefinitionType
public TimeoutType<ConnectionDefinitionType<T>> getOrCreateTimeout()
timeout
element with the given value will be created.
Otherwise, the existing timeout
element will be returned.getOrCreateTimeout
in interface ConnectionDefinitionType<T>
TimeoutType>
public ConnectionDefinitionType<T> removeTimeout()
timeout
elementremoveTimeout
in interface ConnectionDefinitionType<T>
ConnectionDefinitionType
public ValidationType<ConnectionDefinitionType<T>> getOrCreateValidation()
validation
element with the given value will be created.
Otherwise, the existing validation
element will be returned.getOrCreateValidation
in interface ConnectionDefinitionType<T>
ValidationType>
public ConnectionDefinitionType<T> removeValidation()
validation
elementremoveValidation
in interface ConnectionDefinitionType<T>
ConnectionDefinitionType
public RecoverType<ConnectionDefinitionType<T>> getOrCreateRecovery()
recovery
element with the given value will be created.
Otherwise, the existing recovery
element will be returned.getOrCreateRecovery
in interface ConnectionDefinitionType<T>
RecoverType>
public ConnectionDefinitionType<T> removeRecovery()
recovery
elementremoveRecovery
in interface ConnectionDefinitionType<T>
ConnectionDefinitionType
public ConnectionDefinitionType<T> useCcm(Boolean useCcm)
use-ccm
attributeuseCcm
in interface ConnectionDefinitionType<T>
useCcm
- the value for the attribute use-ccm
ConnectionDefinitionType
public Boolean isUseCcm()
use-ccm
attributeisUseCcm
in interface ConnectionDefinitionType<T>
use-ccm
public ConnectionDefinitionType<T> removeUseCcm()
use-ccm
attributeremoveUseCcm
in interface ConnectionDefinitionType<T>
ConnectionDefinitionType
Copyright © 2021 JBoss by Red Hat. All rights reserved.