org.jboss.ironjacamar.impl
Class ConnectionDefintionTypeImpl<T>

java.lang.Object
  extended by org.jboss.ironjacamar.impl.ConnectionDefintionTypeImpl<T>
All Implemented Interfaces:
ConnectionDefintionType<T>, Child<T>

public class ConnectionDefintionTypeImpl<T>
extends Object
implements Child<T>, ConnectionDefintionType<T>

This class implements the connection-defintionType xsd type

Since:
Generation date :2013-01-26T19:27:02.583+01:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Constructor Summary
ConnectionDefintionTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
           
ConnectionDefintionTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
           
 
Method Summary
 ConnectionDefintionType<T> className(String className)
          Sets the class-name attribute
 ConfigPropertyType<ConnectionDefintionType<T>> createConfigProperty()
          Creates a new config-property element
 ConnectionDefintionType<T> enabled(Boolean enabled)
          Sets the enabled attribute
 List<ConfigPropertyType<ConnectionDefintionType<T>>> getAllConfigProperty()
          Returns all config-property elements
 String getClassName()
          Returns the class-name attribute
 String getJndiName()
          Returns the jndi-name attribute
 ConfigPropertyType<ConnectionDefintionType<T>> getOrCreateConfigProperty()
          If not already created, a new config-property element will be created and returned.
 PoolType<ConnectionDefintionType<T>> getOrCreatePool()
          If not already created, a new pool element with the given value will be created.
 RecoverType<ConnectionDefintionType<T>> getOrCreateRecovery()
          If not already created, a new recovery element with the given value will be created.
 SecurityType<ConnectionDefintionType<T>> getOrCreateSecurity()
          If not already created, a new security element with the given value will be created.
 TimeoutType<ConnectionDefintionType<T>> getOrCreateTimeout()
          If not already created, a new timeout element with the given value will be created.
 ValidationType<ConnectionDefintionType<T>> getOrCreateValidation()
          If not already created, a new validation element with the given value will be created.
 XaPoolType<ConnectionDefintionType<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
 ConnectionDefintionType<T> jndiName(String jndiName)
          Sets the jndi-name attribute
 ConnectionDefintionType<T> poolName(String poolName)
          Sets the pool-name attribute
 ConnectionDefintionType<T> removeAllConfigProperty()
          Removes all config-property elements
 ConnectionDefintionType<T> removeClassName()
          Removes the class-name attribute
 ConnectionDefintionType<T> removeEnabled()
          Removes the enabled attribute
 ConnectionDefintionType<T> removeJndiName()
          Removes the jndi-name attribute
 ConnectionDefintionType<T> removePool()
          Removes the pool element
 ConnectionDefintionType<T> removePoolName()
          Removes the pool-name attribute
 ConnectionDefintionType<T> removeRecovery()
          Removes the recovery element
 ConnectionDefintionType<T> removeSecurity()
          Removes the security element
 ConnectionDefintionType<T> removeTimeout()
          Removes the timeout element
 ConnectionDefintionType<T> removeUseCcm()
          Removes the use-ccm attribute
 ConnectionDefintionType<T> removeUseJavaContext()
          Removes the use-java-context attribute
 ConnectionDefintionType<T> removeValidation()
          Removes the validation element
 ConnectionDefintionType<T> removeXaPool()
          Removes the xa-pool element
 T up()
          Returns the parent of this Child
 ConnectionDefintionType<T> useCcm(Boolean useCcm)
          Sets the use-ccm attribute
 ConnectionDefintionType<T> useJavaContext(Boolean useJavaContext)
          Sets the use-java-context attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionDefintionTypeImpl

public ConnectionDefintionTypeImpl(T t,
                                   String nodeName,
                                   org.jboss.shrinkwrap.descriptor.spi.node.Node node)

ConnectionDefintionTypeImpl

public ConnectionDefintionTypeImpl(T t,
                                   String nodeName,
                                   org.jboss.shrinkwrap.descriptor.spi.node.Node node,
                                   org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
Method Detail

up

public T up()
Description copied from interface: Child
Returns the parent of this Child

Specified by:
up in interface Child<T>
Returns:
The parent of this Child

className

public ConnectionDefintionType<T> className(String className)
Sets the class-name attribute

Specified by:
className in interface ConnectionDefintionType<T>
Parameters:
className - the value for the attribute class-name
Returns:
the current instance of ConnectionDefintionType

getClassName

public String getClassName()
Returns the class-name attribute

Specified by:
getClassName in interface ConnectionDefintionType<T>
Returns:
the value defined for the attribute class-name

removeClassName

public ConnectionDefintionType<T> removeClassName()
Removes the class-name attribute

Specified by:
removeClassName in interface ConnectionDefintionType<T>
Returns:
the current instance of ConnectionDefintionType

jndiName

public ConnectionDefintionType<T> jndiName(String jndiName)
Sets the jndi-name attribute

Specified by:
jndiName in interface ConnectionDefintionType<T>
Parameters:
jndiName - the value for the attribute jndi-name
Returns:
the current instance of ConnectionDefintionType

getJndiName

public String getJndiName()
Returns the jndi-name attribute

Specified by:
getJndiName in interface ConnectionDefintionType<T>
Returns:
the value defined for the attribute jndi-name

removeJndiName

public ConnectionDefintionType<T> removeJndiName()
Removes the jndi-name attribute

Specified by:
removeJndiName in interface ConnectionDefintionType<T>
Returns:
the current instance of ConnectionDefintionType

enabled

public ConnectionDefintionType<T> enabled(Boolean enabled)
Sets the enabled attribute

Specified by:
enabled in interface ConnectionDefintionType<T>
Parameters:
enabled - the value for the attribute enabled
Returns:
the current instance of ConnectionDefintionType

isEnabled

public Boolean isEnabled()
Returns the enabled attribute

Specified by:
isEnabled in interface ConnectionDefintionType<T>
Returns:
the value defined for the attribute enabled

removeEnabled

public ConnectionDefintionType<T> removeEnabled()
Removes the enabled attribute

Specified by:
removeEnabled in interface ConnectionDefintionType<T>
Returns:
the current instance of ConnectionDefintionType

useJavaContext

public ConnectionDefintionType<T> useJavaContext(Boolean useJavaContext)
Sets the use-java-context attribute

Specified by:
useJavaContext in interface ConnectionDefintionType<T>
Parameters:
useJavaContext - the value for the attribute use-java-context
Returns:
the current instance of ConnectionDefintionType

isUseJavaContext

public Boolean isUseJavaContext()
Returns the use-java-context attribute

Specified by:
isUseJavaContext in interface ConnectionDefintionType<T>
Returns:
the value defined for the attribute use-java-context

removeUseJavaContext

public ConnectionDefintionType<T> removeUseJavaContext()
Removes the use-java-context attribute

Specified by:
removeUseJavaContext in interface ConnectionDefintionType<T>
Returns:
the current instance of ConnectionDefintionType

poolName

public ConnectionDefintionType<T> poolName(String poolName)
Sets the pool-name attribute

Specified by:
poolName in interface ConnectionDefintionType<T>
Parameters:
poolName - the value for the attribute pool-name
Returns:
the current instance of ConnectionDefintionType

getPoolName

public String getPoolName()
Returns the pool-name attribute

Specified by:
getPoolName in interface ConnectionDefintionType<T>
Returns:
the value defined for the attribute pool-name

removePoolName

public ConnectionDefintionType<T> removePoolName()
Removes the pool-name attribute

Specified by:
removePoolName in interface ConnectionDefintionType<T>
Returns:
the current instance of ConnectionDefintionType

getOrCreateConfigProperty

public ConfigPropertyType<ConnectionDefintionType<T>> getOrCreateConfigProperty()
If not already created, a new config-property element will be created and returned. Otherwise, the first existing config-property element will be returned.

Specified by:
getOrCreateConfigProperty in interface ConnectionDefintionType<T>
Returns:
the instance defined for the element config-property

createConfigProperty

public ConfigPropertyType<ConnectionDefintionType<T>> createConfigProperty()
Creates a new config-property element

Specified by:
createConfigProperty in interface ConnectionDefintionType<T>
Returns:
the new created instance of ConfigPropertyType>

getAllConfigProperty

public List<ConfigPropertyType<ConnectionDefintionType<T>>> getAllConfigProperty()
Returns all config-property elements

Specified by:
getAllConfigProperty in interface ConnectionDefintionType<T>
Returns:
list of config-property

removeAllConfigProperty

public ConnectionDefintionType<T> removeAllConfigProperty()
Removes all config-property elements

Specified by:
removeAllConfigProperty in interface ConnectionDefintionType<T>
Returns:
the current instance of ConfigPropertyType>

getOrCreatePool

public PoolType<ConnectionDefintionType<T>> getOrCreatePool()
If not already created, a new pool element with the given value will be created. Otherwise, the existing pool element will be returned.

Specified by:
getOrCreatePool in interface ConnectionDefintionType<T>
Returns:
a new or existing instance of PoolType>

removePool

public ConnectionDefintionType<T> removePool()
Removes the pool element

Specified by:
removePool in interface ConnectionDefintionType<T>
Returns:
the current instance of ConnectionDefintionType

getOrCreateXaPool

public XaPoolType<ConnectionDefintionType<T>> getOrCreateXaPool()
If not already created, a new xa-pool element with the given value will be created. Otherwise, the existing xa-pool element will be returned.

Specified by:
getOrCreateXaPool in interface ConnectionDefintionType<T>
Returns:
a new or existing instance of XaPoolType>

removeXaPool

public ConnectionDefintionType<T> removeXaPool()
Removes the xa-pool element

Specified by:
removeXaPool in interface ConnectionDefintionType<T>
Returns:
the current instance of ConnectionDefintionType

getOrCreateSecurity

public SecurityType<ConnectionDefintionType<T>> getOrCreateSecurity()
If not already created, a new security element with the given value will be created. Otherwise, the existing security element will be returned.

Specified by:
getOrCreateSecurity in interface ConnectionDefintionType<T>
Returns:
a new or existing instance of SecurityType>

removeSecurity

public ConnectionDefintionType<T> removeSecurity()
Removes the security element

Specified by:
removeSecurity in interface ConnectionDefintionType<T>
Returns:
the current instance of ConnectionDefintionType

getOrCreateTimeout

public TimeoutType<ConnectionDefintionType<T>> getOrCreateTimeout()
If not already created, a new timeout element with the given value will be created. Otherwise, the existing timeout element will be returned.

Specified by:
getOrCreateTimeout in interface ConnectionDefintionType<T>
Returns:
a new or existing instance of TimeoutType>

removeTimeout

public ConnectionDefintionType<T> removeTimeout()
Removes the timeout element

Specified by:
removeTimeout in interface ConnectionDefintionType<T>
Returns:
the current instance of ConnectionDefintionType

getOrCreateValidation

public ValidationType<ConnectionDefintionType<T>> getOrCreateValidation()
If not already created, a new validation element with the given value will be created. Otherwise, the existing validation element will be returned.

Specified by:
getOrCreateValidation in interface ConnectionDefintionType<T>
Returns:
a new or existing instance of ValidationType>

removeValidation

public ConnectionDefintionType<T> removeValidation()
Removes the validation element

Specified by:
removeValidation in interface ConnectionDefintionType<T>
Returns:
the current instance of ConnectionDefintionType

getOrCreateRecovery

public RecoverType<ConnectionDefintionType<T>> getOrCreateRecovery()
If not already created, a new recovery element with the given value will be created. Otherwise, the existing recovery element will be returned.

Specified by:
getOrCreateRecovery in interface ConnectionDefintionType<T>
Returns:
a new or existing instance of RecoverType>

removeRecovery

public ConnectionDefintionType<T> removeRecovery()
Removes the recovery element

Specified by:
removeRecovery in interface ConnectionDefintionType<T>
Returns:
the current instance of ConnectionDefintionType

useCcm

public ConnectionDefintionType<T> useCcm(Boolean useCcm)
Sets the use-ccm attribute

Specified by:
useCcm in interface ConnectionDefintionType<T>
Parameters:
useCcm - the value for the attribute use-ccm
Returns:
the current instance of ConnectionDefintionType

isUseCcm

public Boolean isUseCcm()
Returns the use-ccm attribute

Specified by:
isUseCcm in interface ConnectionDefintionType<T>
Returns:
the value defined for the attribute use-ccm

removeUseCcm

public ConnectionDefintionType<T> removeUseCcm()
Removes the use-ccm attribute

Specified by:
removeUseCcm in interface ConnectionDefintionType<T>
Returns:
the current instance of ConnectionDefintionType


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.