org.datanucleus.store.rdbms.sql.expression
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 query
this.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).
| Methods inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression |
add, and, 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
variableName
protected String variableName
UnboundExpression
public UnboundExpression(SQLStatement stmt,
String variableName)
- Constructor for an SQL expression for an unbound variable.
- Parameters:
stmt - The statementvariableName - name of the variable
getVariableName
public String getVariableName()
- Accessor for the variable name
- Returns:
- Variable name that this represents
Copyright © 2012. All Rights Reserved.