Interface SqlConditionGenerator

All Known Implementing Classes:
SubjectSettings2Sql
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SqlConditionGenerator
the interface for condition generator in SQL clause. Such a generator may deal with different aspects of restricting an SQL result.
  • Method Summary

    Modifier and Type
    Method
    Description
    generates a condition which may be connected with other conditions in order to restrict/extend set of data.
  • Method Details

    • getCondition

      String getCondition() throws BindingException
      generates a condition which may be connected with other conditions in order to restrict/extend set of data. The callee controls how conditions from multiple generators are connected. The condition genereated here is self-contained is does not make assumptions on any other possible conditions. The condition follows the valid SQL syntax.
      Returns:
      NULL in case of no condition or non-empty String, such as '1=1' or '(0=0)' or more complex, like '(a=b or c is null)'
      Throws:
      BindingException