Interface ValidationType<T>
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
ValidationTypeImpl
public interface ValidationType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>
This interface defines the contract for the
validationType xsd type-
Method Summary
Modifier and TypeMethodDescriptionbackgroundValidation(Boolean backgroundValidation) Sets thebackground-validationelementbackgroundValidationMillis(Integer backgroundValidationMillis) Sets thebackground-validation-milliselementcheckValidConnectionSql(String checkValidConnectionSql) Sets thecheck-valid-connection-sqlelementReturns thebackground-validation-milliselementReturns thecheck-valid-connection-sqlelementIf not already created, a newexception-sorterelement with the given value will be created.If not already created, a newstale-connection-checkerelement with the given value will be created.If not already created, a newvalid-connection-checkerelement with the given value will be created.Returns thebackground-validationelementReturns theuse-fast-failelementReturns thevalidate-on-matchelementRemoves thebackground-validationelementRemoves thebackground-validation-milliselementRemoves thecheck-valid-connection-sqlelementRemoves theexception-sorterelementRemoves thestale-connection-checkerelementRemoves theuse-fast-failelementRemoves thevalidate-on-matchelementRemoves thevalid-connection-checkerelementuseFastFail(Boolean useFastFail) Sets theuse-fast-failelementvalidateOnMatch(Boolean validateOnMatch) Sets thevalidate-on-matchelementMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
-
Method Details
-
getOrCreateValidConnectionChecker
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.- Returns:
- a new or existing instance of
ExtensionTypeinvalid input: '<'ValidationType>
-
removeValidConnectionChecker
ValidationType<T> removeValidConnectionChecker()Removes thevalid-connection-checkerelement- Returns:
- the current instance of
ValidationType
-
checkValidConnectionSql
Sets thecheck-valid-connection-sqlelement- Parameters:
checkValidConnectionSql- the value for the elementcheck-valid-connection-sql- Returns:
- the current instance of
ValidationType
-
getCheckValidConnectionSql
String getCheckValidConnectionSql()Returns thecheck-valid-connection-sqlelement- Returns:
- the node defined for the element
check-valid-connection-sql
-
removeCheckValidConnectionSql
ValidationType<T> removeCheckValidConnectionSql()Removes thecheck-valid-connection-sqlelement- Returns:
- the current instance of
ValidationType
-
validateOnMatch
Sets thevalidate-on-matchelement- Parameters:
validateOnMatch- the value for the elementvalidate-on-match- Returns:
- the current instance of
ValidationType
-
isValidateOnMatch
Boolean isValidateOnMatch()Returns thevalidate-on-matchelement- Returns:
- the node defined for the element
validate-on-match
-
removeValidateOnMatch
ValidationType<T> removeValidateOnMatch()Removes thevalidate-on-matchelement- Returns:
- the current instance of
ValidationType
-
backgroundValidation
Sets thebackground-validationelement- Parameters:
backgroundValidation- the value for the elementbackground-validation- Returns:
- the current instance of
ValidationType
-
isBackgroundValidation
Boolean isBackgroundValidation()Returns thebackground-validationelement- Returns:
- the node defined for the element
background-validation
-
removeBackgroundValidation
ValidationType<T> removeBackgroundValidation()Removes thebackground-validationelement- Returns:
- the current instance of
ValidationType
-
backgroundValidationMillis
Sets thebackground-validation-milliselement- Parameters:
backgroundValidationMillis- the value for the elementbackground-validation-millis- Returns:
- the current instance of
ValidationType
-
getBackgroundValidationMillis
Integer getBackgroundValidationMillis()Returns thebackground-validation-milliselement- Returns:
- the node defined for the element
background-validation-millis
-
removeBackgroundValidationMillis
ValidationType<T> removeBackgroundValidationMillis()Removes thebackground-validation-milliselement- Returns:
- the current instance of
ValidationType
-
useFastFail
Sets theuse-fast-failelement- Parameters:
useFastFail- the value for the elementuse-fast-fail- Returns:
- the current instance of
ValidationType
-
isUseFastFail
Boolean isUseFastFail()Returns theuse-fast-failelement- Returns:
- the node defined for the element
use-fast-fail
-
removeUseFastFail
ValidationType<T> removeUseFastFail()Removes theuse-fast-failelement- Returns:
- the current instance of
ValidationType
-
getOrCreateStaleConnectionChecker
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.- Returns:
- a new or existing instance of
ExtensionTypeinvalid input: '<'ValidationType>
-
removeStaleConnectionChecker
ValidationType<T> removeStaleConnectionChecker()Removes thestale-connection-checkerelement- Returns:
- the current instance of
ValidationType
-
getOrCreateExceptionSorter
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.- Returns:
- a new or existing instance of
ExtensionTypeinvalid input: '<'ValidationType>
-
removeExceptionSorter
ValidationType<T> removeExceptionSorter()Removes theexception-sorterelement- Returns:
- the current instance of
ValidationType
-