Class 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 the validationType xsd type
    • 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()
        Specified by:
        up in interface org.jboss.shrinkwrap.descriptor.api.Child<T>
      • 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>
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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>
      • 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>