public class ValidationTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ValidationType<T>
validationType xsd type| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
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() |
ValidationType<T> |
useFastFail(Boolean useFastFail)
Sets the
use-fast-fail element |
ValidationType<T> |
validateOnMatch(Boolean validateOnMatch)
Sets the
validate-on-match element |
public ValidationTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
public ExtensionType<ValidationType<T>> getOrCreateValidConnectionChecker()
valid-connection-checker element with the given value will be created.
Otherwise, the existing valid-connection-checker element will be returned.getOrCreateValidConnectionChecker in interface ValidationType<T>ExtensionType> public ValidationType<T> removeValidConnectionChecker()
valid-connection-checker elementremoveValidConnectionChecker in interface ValidationType<T>ValidationTypepublic ValidationType<T> checkValidConnectionSql(String checkValidConnectionSql)
check-valid-connection-sql elementcheckValidConnectionSql in interface ValidationType<T>checkValidConnectionSql - the value for the element check-valid-connection-sqlValidationTypepublic String getCheckValidConnectionSql()
check-valid-connection-sql elementgetCheckValidConnectionSql in interface ValidationType<T>check-valid-connection-sqlpublic ValidationType<T> removeCheckValidConnectionSql()
check-valid-connection-sql elementremoveCheckValidConnectionSql in interface ValidationType<T>ValidationTypepublic ValidationType<T> validateOnMatch(Boolean validateOnMatch)
validate-on-match elementvalidateOnMatch in interface ValidationType<T>validateOnMatch - the value for the element validate-on-matchValidationTypepublic Boolean isValidateOnMatch()
validate-on-match elementisValidateOnMatch in interface ValidationType<T>validate-on-matchpublic ValidationType<T> removeValidateOnMatch()
validate-on-match elementremoveValidateOnMatch in interface ValidationType<T>ValidationTypepublic ValidationType<T> backgroundValidation(Boolean backgroundValidation)
background-validation elementbackgroundValidation in interface ValidationType<T>backgroundValidation - the value for the element background-validationValidationTypepublic Boolean isBackgroundValidation()
background-validation elementisBackgroundValidation in interface ValidationType<T>background-validationpublic ValidationType<T> removeBackgroundValidation()
background-validation elementremoveBackgroundValidation in interface ValidationType<T>ValidationTypepublic ValidationType<T> backgroundValidationMillis(Integer backgroundValidationMillis)
background-validation-millis elementbackgroundValidationMillis in interface ValidationType<T>backgroundValidationMillis - the value for the element background-validation-millisValidationTypepublic Integer getBackgroundValidationMillis()
background-validation-millis elementgetBackgroundValidationMillis in interface ValidationType<T>background-validation-millispublic ValidationType<T> removeBackgroundValidationMillis()
background-validation-millis elementremoveBackgroundValidationMillis in interface ValidationType<T>ValidationTypepublic ValidationType<T> useFastFail(Boolean useFastFail)
use-fast-fail elementuseFastFail in interface ValidationType<T>useFastFail - the value for the element use-fast-failValidationTypepublic Boolean isUseFastFail()
use-fast-fail elementisUseFastFail in interface ValidationType<T>use-fast-failpublic ValidationType<T> removeUseFastFail()
use-fast-fail elementremoveUseFastFail in interface ValidationType<T>ValidationTypepublic ExtensionType<ValidationType<T>> getOrCreateStaleConnectionChecker()
stale-connection-checker element with the given value will be created.
Otherwise, the existing stale-connection-checker element will be returned.getOrCreateStaleConnectionChecker in interface ValidationType<T>ExtensionType> public ValidationType<T> removeStaleConnectionChecker()
stale-connection-checker elementremoveStaleConnectionChecker in interface ValidationType<T>ValidationTypepublic ExtensionType<ValidationType<T>> getOrCreateExceptionSorter()
exception-sorter element with the given value will be created.
Otherwise, the existing exception-sorter element will be returned.getOrCreateExceptionSorter in interface ValidationType<T>ExtensionType> public ValidationType<T> removeExceptionSorter()
exception-sorter elementremoveExceptionSorter in interface ValidationType<T>ValidationTypeCopyright © 2021 JBoss by Red Hat. All rights reserved.