Package com.github.eikecochu.sqlbuilder
Class ConditionValue<T extends Conditionable<T>>
- java.lang.Object
-
- com.github.eikecochu.sqlbuilder.ConditionValue<T>
-
- Type Parameters:
T- the type of the conditionable to return to
public class ConditionValue<T extends Conditionable<T>> extends java.lang.ObjectThe condition value that is used to represent values to use for conditions.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConditionValue(ConditionPart<T> part, CompareOperator operator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tall(QueryBuilder<?> parent)Set a subquery to be used as condition with restriction ALLTany(QueryBuilder<?> parent)Set a subquery to be used as condition with restriction ANYTcol(java.lang.String column)Set a column to be constrainedTexpr(Expression expression)Set an expression to be used as conditionTexpr(java.lang.String expr, java.lang.Object... values)Set an expression to be used as conditionTvalue(java.lang.Object value)Set a value to be used as conditionTvalues(java.lang.Iterable<java.lang.Object> values)Set multiple values to be used as conditionsTvalues(java.lang.Object... values)Set multiple values to be used as conditions
-
-
-
Constructor Detail
-
ConditionValue
protected ConditionValue(ConditionPart<T> part, CompareOperator operator)
-
-
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 expressionvalues- 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
-
-