org.jboss.datasources.impl
Class ValidationTypeImpl<T>

java.lang.Object
  extended by org.jboss.datasources.impl.ValidationTypeImpl<T>
All Implemented Interfaces:
ValidationType<T>, Child<T>

public class ValidationTypeImpl<T>
extends Object
implements Child<T>, ValidationType<T>

This class implements the validationType xsd type

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

Constructor Summary
ValidationTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
           
ValidationTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
           
 
Method Summary
 ValidationType<T> backgroundValidation(Boolean backgroundValidation)
          Sets the background-validation element
 ValidationType<T> backgroundValidationMillis(Integer backgroundValidationMillis)
          Sets the background-validation-millis element
 ValidationType<T> checkValidConnectionSql(String checkValidConnectionSql)
          Sets the check-valid-connection-sql element
 Integer getBackgroundValidationMillis()
          Returns the background-validation-millis element
 String getCheckValidConnectionSql()
          Returns the check-valid-connection-sql element
 ExtensionType<ValidationType<T>> getOrCreateExceptionSorter()
          If not already created, a new exception-sorter element with the given value will be created.
 ExtensionType<ValidationType<T>> getOrCreateStaleConnectionChecker()
          If not already created, a new stale-connection-checker element with the given value will be created.
 ExtensionType<ValidationType<T>> getOrCreateValidConnectionChecker()
          If not already created, a new valid-connection-checker element with the given value will be created.
 Boolean isBackgroundValidation()
          Returns the background-validation element
 Boolean isUseFastFail()
          Returns the use-fast-fail element
 Boolean isValidateOnMatch()
          Returns the validate-on-match element
 ValidationType<T> removeBackgroundValidation()
          Removes the background-validation element
 ValidationType<T> removeBackgroundValidationMillis()
          Removes the background-validation-millis element
 ValidationType<T> removeCheckValidConnectionSql()
          Removes the check-valid-connection-sql element
 ValidationType<T> removeExceptionSorter()
          Removes the exception-sorter element
 ValidationType<T> removeStaleConnectionChecker()
          Removes the stale-connection-checker element
 ValidationType<T> removeUseFastFail()
          Removes the use-fast-fail element
 ValidationType<T> removeValidateOnMatch()
          Removes the validate-on-match element
 ValidationType<T> removeValidConnectionChecker()
          Removes the valid-connection-checker element
 T up()
          Returns the parent of this Child
 ValidationType<T> useFastFail(Boolean useFastFail)
          Sets the use-fast-fail element
 ValidationType<T> validateOnMatch(Boolean validateOnMatch)
          Sets the validate-on-match element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationTypeImpl

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

ValidationTypeImpl

public ValidationTypeImpl(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

getOrCreateValidConnectionChecker

public ExtensionType<ValidationType<T>> getOrCreateValidConnectionChecker()
If not already created, a new valid-connection-checker element with the given value will be created. Otherwise, the existing valid-connection-checker element will be returned.

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

removeValidConnectionChecker

public ValidationType<T> removeValidConnectionChecker()
Removes the valid-connection-checker element

Specified by:
removeValidConnectionChecker in interface ValidationType<T>
Returns:
the current instance of ValidationType

checkValidConnectionSql

public ValidationType<T> checkValidConnectionSql(String checkValidConnectionSql)
Sets the check-valid-connection-sql element

Specified by:
checkValidConnectionSql in interface ValidationType<T>
Parameters:
checkValidConnectionSql - the value for the element check-valid-connection-sql
Returns:
the current instance of ValidationType

getCheckValidConnectionSql

public String getCheckValidConnectionSql()
Returns the check-valid-connection-sql element

Specified by:
getCheckValidConnectionSql in interface ValidationType<T>
Returns:
the node defined for the element check-valid-connection-sql

removeCheckValidConnectionSql

public ValidationType<T> removeCheckValidConnectionSql()
Removes the check-valid-connection-sql element

Specified by:
removeCheckValidConnectionSql in interface ValidationType<T>
Returns:
the current instance of ValidationType

validateOnMatch

public ValidationType<T> validateOnMatch(Boolean validateOnMatch)
Sets the validate-on-match element

Specified by:
validateOnMatch in interface ValidationType<T>
Parameters:
validateOnMatch - the value for the element validate-on-match
Returns:
the current instance of ValidationType

isValidateOnMatch

public Boolean isValidateOnMatch()
Returns the validate-on-match element

Specified by:
isValidateOnMatch in interface ValidationType<T>
Returns:
the node defined for the element validate-on-match

removeValidateOnMatch

public ValidationType<T> removeValidateOnMatch()
Removes the validate-on-match element

Specified by:
removeValidateOnMatch in interface ValidationType<T>
Returns:
the current instance of ValidationType

backgroundValidation

public ValidationType<T> backgroundValidation(Boolean backgroundValidation)
Sets the background-validation element

Specified by:
backgroundValidation in interface ValidationType<T>
Parameters:
backgroundValidation - the value for the element background-validation
Returns:
the current instance of ValidationType

isBackgroundValidation

public Boolean isBackgroundValidation()
Returns the background-validation element

Specified by:
isBackgroundValidation in interface ValidationType<T>
Returns:
the node defined for the element background-validation

removeBackgroundValidation

public ValidationType<T> removeBackgroundValidation()
Removes the background-validation element

Specified by:
removeBackgroundValidation in interface ValidationType<T>
Returns:
the current instance of ValidationType

backgroundValidationMillis

public ValidationType<T> backgroundValidationMillis(Integer backgroundValidationMillis)
Sets the background-validation-millis element

Specified by:
backgroundValidationMillis in interface ValidationType<T>
Parameters:
backgroundValidationMillis - the value for the element background-validation-millis
Returns:
the current instance of ValidationType

getBackgroundValidationMillis

public Integer getBackgroundValidationMillis()
Returns the background-validation-millis element

Specified by:
getBackgroundValidationMillis in interface ValidationType<T>
Returns:
the node defined for the element background-validation-millis

removeBackgroundValidationMillis

public ValidationType<T> removeBackgroundValidationMillis()
Removes the background-validation-millis element

Specified by:
removeBackgroundValidationMillis in interface ValidationType<T>
Returns:
the current instance of ValidationType

useFastFail

public ValidationType<T> useFastFail(Boolean useFastFail)
Sets the use-fast-fail element

Specified by:
useFastFail in interface ValidationType<T>
Parameters:
useFastFail - the value for the element use-fast-fail
Returns:
the current instance of ValidationType

isUseFastFail

public Boolean isUseFastFail()
Returns the use-fast-fail element

Specified by:
isUseFastFail in interface ValidationType<T>
Returns:
the node defined for the element use-fast-fail

removeUseFastFail

public ValidationType<T> removeUseFastFail()
Removes the use-fast-fail element

Specified by:
removeUseFastFail in interface ValidationType<T>
Returns:
the current instance of ValidationType

getOrCreateStaleConnectionChecker

public ExtensionType<ValidationType<T>> getOrCreateStaleConnectionChecker()
If not already created, a new stale-connection-checker element with the given value will be created. Otherwise, the existing stale-connection-checker element will be returned.

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

removeStaleConnectionChecker

public ValidationType<T> removeStaleConnectionChecker()
Removes the stale-connection-checker element

Specified by:
removeStaleConnectionChecker in interface ValidationType<T>
Returns:
the current instance of ValidationType

getOrCreateExceptionSorter

public ExtensionType<ValidationType<T>> getOrCreateExceptionSorter()
If not already created, a new exception-sorter element with the given value will be created. Otherwise, the existing exception-sorter element will be returned.

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

removeExceptionSorter

public ValidationType<T> removeExceptionSorter()
Removes the exception-sorter element

Specified by:
removeExceptionSorter in interface ValidationType<T>
Returns:
the current instance of ValidationType


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