Class UnboundExpression
java.lang.Object
org.datanucleus.store.rdbms.sql.expression.SQLExpression
org.datanucleus.store.rdbms.sql.expression.UnboundExpression
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 query
this.names.contains(var) && var == someValuein 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
FieldsFields inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
-
Constructor Summary
ConstructorsConstructorDescriptionUnboundExpression
(SQLStatement stmt, String variableName) Constructor for an SQL expression for an unbound variable. -
Method Summary
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
-
Field Details
-
variableName
-
-
Constructor Details
-
UnboundExpression
Constructor for an SQL expression for an unbound variable.- Parameters:
stmt
- The statementvariableName
- name of the variable
-
-
Method Details
-
getVariableName
Accessor for the variable name- Returns:
- Variable name that this represents
-