Class ConditionValue<T extends Conditionable<T>>

  • Type Parameters:
    T - the type of the conditionable to return to

    public class ConditionValue<T extends Conditionable<T>>
    extends java.lang.Object
    The condition value that is used to represent values to use for conditions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T all​(QueryBuilder<?> parent)
      Set a subquery to be used as condition with restriction ALL
      T any​(QueryBuilder<?> parent)
      Set a subquery to be used as condition with restriction ANY
      T col​(java.lang.String column)
      Set a column to be constrained
      T expr​(Expression expression)
      Set an expression to be used as condition
      T expr​(java.lang.String expr, java.lang.Object... values)
      Set an expression to be used as condition
      T value​(java.lang.Object value)
      Set a value to be used as condition
      T values​(java.lang.Iterable<java.lang.Object> values)
      Set multiple values to be used as conditions
      T values​(java.lang.Object... values)
      Set multiple values to be used as conditions
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • value

        public T value​(java.lang.Object value)
        Set a value to be used as condition
        Parameters:
        value - The condition value
        Returns:
        This instance
      • values

        public T values​(java.lang.Object... values)
        Set multiple values to be used as conditions
        Parameters:
        values - The condition values
        Returns:
        This instance
      • values

        public T values​(java.lang.Iterable<java.lang.Object> values)
        Set multiple values to be used as conditions
        Parameters:
        values - The condition values
        Returns:
        This instance
      • col

        public T col​(java.lang.String column)
        Set a column to be constrained
        Parameters:
        column - The column name
        Returns:
        This instance
      • expr

        public T expr​(java.lang.String expr,
                      java.lang.Object... values)
        Set an expression to be used as condition
        Parameters:
        expr - The condition expression
        values - Additional values that are passed to the PreparedStatement. These values are ignored if the target is not a PreparedQuery.
        Returns:
        This instance
      • expr

        public T expr​(Expression expression)
        Set an expression to be used as condition
        Parameters:
        expression - The expression object
        Returns:
        This instance
      • all

        public T all​(QueryBuilder<?> parent)
        Set a subquery to be used as condition with restriction ALL
        Parameters:
        parent - The subquery builder
        Returns:
        This instance
      • any

        public T any​(QueryBuilder<?> parent)
        Set a subquery to be used as condition with restriction ANY
        Parameters:
        parent - The subquery builder
        Returns:
        This instanceF