Class ValidationTypeImpl<T>
- java.lang.Object
-
- org.jboss.jca.embedded.dsl.datasources11.impl.ValidationTypeImpl<T>
-
- All Implemented Interfaces:
ValidationType<T>,org.jboss.shrinkwrap.descriptor.api.Child<T>
public class ValidationTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ValidationType<T>
This class implements thevalidationTypexsd type
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationType<T>backgroundValidation(Boolean backgroundValidation)Sets thebackground-validationelementValidationType<T>backgroundValidationMillis(Integer backgroundValidationMillis)Sets thebackground-validation-milliselementValidationType<T>checkValidConnectionSql(String checkValidConnectionSql)Sets thecheck-valid-connection-sqlelementIntegergetBackgroundValidationMillis()Returns thebackground-validation-milliselementStringgetCheckValidConnectionSql()Returns thecheck-valid-connection-sqlelementExtensionType<ValidationType<T>>getOrCreateExceptionSorter()If not already created, a newexception-sorterelement with the given value will be created.ExtensionType<ValidationType<T>>getOrCreateStaleConnectionChecker()If not already created, a newstale-connection-checkerelement with the given value will be created.ExtensionType<ValidationType<T>>getOrCreateValidConnectionChecker()If not already created, a newvalid-connection-checkerelement with the given value will be created.BooleanisBackgroundValidation()Returns thebackground-validationelementBooleanisUseFastFail()Returns theuse-fast-failelementBooleanisValidateOnMatch()Returns thevalidate-on-matchelementValidationType<T>removeBackgroundValidation()Removes thebackground-validationelementValidationType<T>removeBackgroundValidationMillis()Removes thebackground-validation-milliselementValidationType<T>removeCheckValidConnectionSql()Removes thecheck-valid-connection-sqlelementValidationType<T>removeExceptionSorter()Removes theexception-sorterelementValidationType<T>removeStaleConnectionChecker()Removes thestale-connection-checkerelementValidationType<T>removeUseFastFail()Removes theuse-fast-failelementValidationType<T>removeValidateOnMatch()Removes thevalidate-on-matchelementValidationType<T>removeValidConnectionChecker()Removes thevalid-connection-checkerelementTup()ValidationType<T>useFastFail(Boolean useFastFail)Sets theuse-fast-failelementValidationType<T>validateOnMatch(Boolean validateOnMatch)Sets thevalidate-on-matchelement
-
-
-
Method Detail
-
getOrCreateValidConnectionChecker
public ExtensionType<ValidationType<T>> getOrCreateValidConnectionChecker()
If not already created, a newvalid-connection-checkerelement with the given value will be created. Otherwise, the existingvalid-connection-checkerelement will be returned.- Specified by:
getOrCreateValidConnectionCheckerin interfaceValidationType<T>- Returns:
- a new or existing instance of
ExtensionType>
-
removeValidConnectionChecker
public ValidationType<T> removeValidConnectionChecker()
Removes thevalid-connection-checkerelement- Specified by:
removeValidConnectionCheckerin interfaceValidationType<T>- Returns:
- the current instance of
ValidationType
-
checkValidConnectionSql
public ValidationType<T> checkValidConnectionSql(String checkValidConnectionSql)
Sets thecheck-valid-connection-sqlelement- Specified by:
checkValidConnectionSqlin interfaceValidationType<T>- Parameters:
checkValidConnectionSql- the value for the elementcheck-valid-connection-sql- Returns:
- the current instance of
ValidationType
-
getCheckValidConnectionSql
public String getCheckValidConnectionSql()
Returns thecheck-valid-connection-sqlelement- Specified by:
getCheckValidConnectionSqlin interfaceValidationType<T>- Returns:
- the node defined for the element
check-valid-connection-sql
-
removeCheckValidConnectionSql
public ValidationType<T> removeCheckValidConnectionSql()
Removes thecheck-valid-connection-sqlelement- Specified by:
removeCheckValidConnectionSqlin interfaceValidationType<T>- Returns:
- the current instance of
ValidationType
-
validateOnMatch
public ValidationType<T> validateOnMatch(Boolean validateOnMatch)
Sets thevalidate-on-matchelement- Specified by:
validateOnMatchin interfaceValidationType<T>- Parameters:
validateOnMatch- the value for the elementvalidate-on-match- Returns:
- the current instance of
ValidationType
-
isValidateOnMatch
public Boolean isValidateOnMatch()
Returns thevalidate-on-matchelement- Specified by:
isValidateOnMatchin interfaceValidationType<T>- Returns:
- the node defined for the element
validate-on-match
-
removeValidateOnMatch
public ValidationType<T> removeValidateOnMatch()
Removes thevalidate-on-matchelement- Specified by:
removeValidateOnMatchin interfaceValidationType<T>- Returns:
- the current instance of
ValidationType
-
backgroundValidation
public ValidationType<T> backgroundValidation(Boolean backgroundValidation)
Sets thebackground-validationelement- Specified by:
backgroundValidationin interfaceValidationType<T>- Parameters:
backgroundValidation- the value for the elementbackground-validation- Returns:
- the current instance of
ValidationType
-
isBackgroundValidation
public Boolean isBackgroundValidation()
Returns thebackground-validationelement- Specified by:
isBackgroundValidationin interfaceValidationType<T>- Returns:
- the node defined for the element
background-validation
-
removeBackgroundValidation
public ValidationType<T> removeBackgroundValidation()
Removes thebackground-validationelement- Specified by:
removeBackgroundValidationin interfaceValidationType<T>- Returns:
- the current instance of
ValidationType
-
backgroundValidationMillis
public ValidationType<T> backgroundValidationMillis(Integer backgroundValidationMillis)
Sets thebackground-validation-milliselement- Specified by:
backgroundValidationMillisin interfaceValidationType<T>- Parameters:
backgroundValidationMillis- the value for the elementbackground-validation-millis- Returns:
- the current instance of
ValidationType
-
getBackgroundValidationMillis
public Integer getBackgroundValidationMillis()
Returns thebackground-validation-milliselement- Specified by:
getBackgroundValidationMillisin interfaceValidationType<T>- Returns:
- the node defined for the element
background-validation-millis
-
removeBackgroundValidationMillis
public ValidationType<T> removeBackgroundValidationMillis()
Removes thebackground-validation-milliselement- Specified by:
removeBackgroundValidationMillisin interfaceValidationType<T>- Returns:
- the current instance of
ValidationType
-
useFastFail
public ValidationType<T> useFastFail(Boolean useFastFail)
Sets theuse-fast-failelement- Specified by:
useFastFailin interfaceValidationType<T>- Parameters:
useFastFail- the value for the elementuse-fast-fail- Returns:
- the current instance of
ValidationType
-
isUseFastFail
public Boolean isUseFastFail()
Returns theuse-fast-failelement- Specified by:
isUseFastFailin interfaceValidationType<T>- Returns:
- the node defined for the element
use-fast-fail
-
removeUseFastFail
public ValidationType<T> removeUseFastFail()
Removes theuse-fast-failelement- Specified by:
removeUseFastFailin interfaceValidationType<T>- Returns:
- the current instance of
ValidationType
-
getOrCreateStaleConnectionChecker
public ExtensionType<ValidationType<T>> getOrCreateStaleConnectionChecker()
If not already created, a newstale-connection-checkerelement with the given value will be created. Otherwise, the existingstale-connection-checkerelement will be returned.- Specified by:
getOrCreateStaleConnectionCheckerin interfaceValidationType<T>- Returns:
- a new or existing instance of
ExtensionType>
-
removeStaleConnectionChecker
public ValidationType<T> removeStaleConnectionChecker()
Removes thestale-connection-checkerelement- Specified by:
removeStaleConnectionCheckerin interfaceValidationType<T>- Returns:
- the current instance of
ValidationType
-
getOrCreateExceptionSorter
public ExtensionType<ValidationType<T>> getOrCreateExceptionSorter()
If not already created, a newexception-sorterelement with the given value will be created. Otherwise, the existingexception-sorterelement will be returned.- Specified by:
getOrCreateExceptionSorterin interfaceValidationType<T>- Returns:
- a new or existing instance of
ExtensionType>
-
removeExceptionSorter
public ValidationType<T> removeExceptionSorter()
Removes theexception-sorterelement- Specified by:
removeExceptionSorterin interfaceValidationType<T>- Returns:
- the current instance of
ValidationType
-
-