Interface SqlValidatorFactory


  • public interface SqlValidatorFactory
    The factory definition, which can be used to construct the SqlValidator instances.

    The factory can be based on Spring DI framework for example. Another approch is the next one (for the sample validator described at SqlValidator.

     SqlValidatorFactory validatorFactory = new SampleValidator.SampleValidatorFactory();
     SqlEngineFactory factory = ...
     SqlCrudEngine sqlEngine = factory.getCrudEngine(name);
     sqlEngine.setValidator(validatorFactory.getSqlValidator());
     

    For more information please see SqlValidator.

    Author:
    Vladimir Hudec
    • Method Detail

      • getSqlValidator

        SqlValidator getSqlValidator()
        The main contract of this factory.
        Returns:
        the instance of the SqlValidator