Class AbstractNoValueCondition<T>

java.lang.Object
org.mybatis.dynamic.sql.AbstractNoValueCondition<T>
All Implemented Interfaces:
RenderableCondition<T>
Direct Known Subclasses:
IsNotNull, IsNull

public abstract class AbstractNoValueCondition<T> extends Object implements RenderableCondition<T>
  • Constructor Details

    • AbstractNoValueCondition

      public AbstractNoValueCondition()
  • Method Details

    • filterSupport

      protected <S extends AbstractNoValueCondition<?>> S filterSupport(BooleanSupplier booleanSupplier, Supplier<S> emptySupplier, S self)
    • operator

      public abstract String operator()
    • renderCondition

      public FragmentAndParameters renderCondition(RenderingContext renderingContext, BindableColumn<T> leftColumn)
      Description copied from interface: RenderableCondition
      Render a condition - typically a condition in a WHERE clause.

      A rendered condition includes an SQL fragment, and any associated parameters. For example, the isEqual condition should be rendered as "= ?" where "?" is a properly formatted parameter marker (the parameter marker can be computed from the RenderingContext). Note that a rendered condition should NOT include the left side of the phrase - that is rendered by the RenderableCondition.renderLeftColumn(RenderingContext, BindableColumn) method.

      Specified by:
      renderCondition in interface RenderableCondition<T>
      Parameters:
      renderingContext - the current rendering context
      leftColumn - the column related to this condition in a where clause
      Returns:
      the rendered condition. Should NOT include the column.