Class UnboundExpression
- java.lang.Object
-
- org.datanucleus.store.rdbms.sql.expression.SQLExpression
-
- org.datanucleus.store.rdbms.sql.expression.UnboundExpression
-
public class UnboundExpression extends SQLExpression
Representation of an expression for an unbound variable. This is used where we have a variable in use in a query and at the point of needing it we haven't yet bound the variable. For example, in the following querythis.names.contains(var) && var == someValue
in the first clause the "var" is unbound when passing in to the InvokeExpression, so it is passed in as an UnboundExpression, and in that contains() method will be bound to the collection (element) table (a join added).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
SQLExpression.ColumnExpressionList
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
variableName
-
Fields inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
-
-
Constructor Summary
Constructors Constructor Description UnboundExpression(SQLStatement stmt, java.lang.String variableName)
Constructor for an SQL expression for an unbound variable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getVariableName()
Accessor for the variable name-
Methods inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
add, and, bitAnd, bitOr, cast, com, distinct, div, encloseInParentheses, eor, eq, ge, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, gt, in, invoke, ior, is, isParameter, le, lt, mod, mul, ne, neg, not, setJavaTypeMapping, sub, toSQLText, unDistinct
-
-
-
-
Constructor Detail
-
UnboundExpression
public UnboundExpression(SQLStatement stmt, java.lang.String variableName)
Constructor for an SQL expression for an unbound variable.- Parameters:
stmt
- The statementvariableName
- name of the variable
-
-