Class InExpression
- java.lang.Object
-
- org.datanucleus.store.rdbms.sql.expression.SQLExpression
-
- org.datanucleus.store.rdbms.sql.expression.BooleanExpression
-
- org.datanucleus.store.rdbms.sql.expression.InExpression
-
public class InExpression extends BooleanExpression
Expression representing the SQL construct "IN (expr1, expr2, ...)".
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
SQLExpression.ColumnExpressionList
-
-
Field Summary
-
Fields inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
-
-
Constructor Summary
Constructors Constructor Description InExpression(SQLExpression expr, List<SQLExpression> exprList)
Constructor for an IN expression.InExpression(SQLExpression expr, SQLExpression[] exprs)
Constructor for an IN expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanExpression
not()
Logical complementprotected void
setStatement()
-
Methods inherited from class org.datanucleus.store.rdbms.sql.expression.BooleanExpression
and, eor, eq, hasClosure, in, invoke, ior, ne, neg
-
Methods inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
add, bitAnd, bitOr, cast, com, distinct, div, encloseInParentheses, ge, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, gt, is, isParameter, le, lt, mod, mul, setJavaTypeMapping, sub, toSQLText, unDistinct
-
-
-
-
Constructor Detail
-
InExpression
public InExpression(SQLExpression expr, SQLExpression[] exprs)
Constructor for an IN expression.- Parameters:
expr
- The expression that is contained.exprs
- The expressions that it is contained in
-
InExpression
public InExpression(SQLExpression expr, List<SQLExpression> exprList)
Constructor for an IN expression.- Parameters:
expr
- The expression that is contained.exprList
- List of expressions that it is contained in
-
-
Method Detail
-
not
public BooleanExpression not()
Description copied from class:SQLExpression
Logical complement- Overrides:
not
in classBooleanExpression
- Returns:
- the result value is false if operand is true; otherwise, the result is true.
-
setStatement
protected void setStatement()
-
-