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 thevalidationTypexsd type
-
-
Method Summary
All Methods Instance Methods Abstract 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-checkerelementValidationType<T>useFastFail(Boolean useFastFail)Sets theuse-fast-failelementValidationType<T>validateOnMatch(Boolean validateOnMatch)Sets thevalidate-on-matchelement
-
-
-
Method Detail
-
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
ExtensionType>
-
removeValidConnectionChecker
ValidationType<T> removeValidConnectionChecker()
Removes thevalid-connection-checkerelement- Returns:
- the current instance of
ValidationType
-
checkValidConnectionSql
ValidationType<T> checkValidConnectionSql(String 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
ValidationType<T> validateOnMatch(Boolean 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
ValidationType<T> backgroundValidation(Boolean 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
ValidationType<T> backgroundValidationMillis(Integer 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
ValidationType<T> useFastFail(Boolean 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
ExtensionType>
-
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
ExtensionType>
-
removeExceptionSorter
ValidationType<T> removeExceptionSorter()
Removes theexception-sorterelement- Returns:
- the current instance of
ValidationType
-
-