>= and <= operators.
This commit is contained in:
@@ -123,6 +123,31 @@ public abstract class Conditionals
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** The SQL '<=' operator. */
|
||||||
|
public static class LessThanEquals extends BinaryOperator
|
||||||
|
{
|
||||||
|
public LessThanEquals (String pColumn, Comparable value)
|
||||||
|
{
|
||||||
|
super(new ColumnExp(pColumn), value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public LessThanEquals (SQLExpression column, Comparable value)
|
||||||
|
{
|
||||||
|
super(column, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public LessThanEquals (SQLExpression column, SQLExpression value)
|
||||||
|
{
|
||||||
|
super(column, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String operator()
|
||||||
|
{
|
||||||
|
return "<=";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** The SQL '>' operator. */
|
/** The SQL '>' operator. */
|
||||||
public static class GreaterThan extends BinaryOperator
|
public static class GreaterThan extends BinaryOperator
|
||||||
{
|
{
|
||||||
@@ -148,6 +173,31 @@ public abstract class Conditionals
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** The SQL '>=' operator. */
|
||||||
|
public static class GreaterThanEquals extends BinaryOperator
|
||||||
|
{
|
||||||
|
public GreaterThanEquals (String pColumn, Comparable value)
|
||||||
|
{
|
||||||
|
super(new ColumnExp(pColumn), value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public GreaterThanEquals (SQLExpression column, Comparable value)
|
||||||
|
{
|
||||||
|
super(column, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public GreaterThanEquals (SQLExpression column, SQLExpression value)
|
||||||
|
{
|
||||||
|
super(column, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String operator()
|
||||||
|
{
|
||||||
|
return ">=";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** The SQL 'in (...)' operator. */
|
/** The SQL 'in (...)' operator. */
|
||||||
public static class In
|
public static class In
|
||||||
implements SQLOperator
|
implements SQLOperator
|
||||||
|
|||||||
Reference in New Issue
Block a user