class BindVariableExpression extends EmptyExpression
initialize(org.apache.openjpa.jdbc.sql.Select, org.apache.openjpa.jdbc.kernel.exps.ExpContext, java.util.Map)
and
#getJoins
methods of this expression are not called. They are
only called if the variable being bound is otherwise unused in the filter,
in which case we must at least make the joins to the variable because the
act of binding a variable should at least guarantee that an instance
represting the variable could exist (i.e. the binding collection is not
empty).Constructor and Description |
---|
BindVariableExpression(Variable var,
PCPath val,
boolean key)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisit(ExpressionVisitor visitor)
Accept a visit from a tree visitor.
|
void |
appendTo(Select sel,
ExpContext ctx,
ExpState state,
SQLBuffer buf)
Append the SQL for this expression to the given buffer.
|
Variable |
getVariable() |
ExpState |
initialize(Select sel,
ExpContext ctx,
Map contains)
Initialize the expression.
|
void |
selectColumns(Select sel,
ExpContext ctx,
ExpState state,
boolean pks)
Select just the columns for this expression.
|
public Variable getVariable()
public ExpState initialize(Select sel, ExpContext ctx, Map contains)
Exp
initialize
in interface Exp
initialize
in class EmptyExpression
contains
- map of relation paths to the number of times
the paths appear in a contains() expression;
used to ensure paths used for contains() within
the same AND expression used different aliasespublic void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf)
Exp
appendTo
in interface Exp
appendTo
in class EmptyExpression
public void selectColumns(Select sel, ExpContext ctx, ExpState state, boolean pks)
Exp
selectColumns
in interface Exp
selectColumns
in class EmptyExpression
public void acceptVisit(ExpressionVisitor visitor)
Expression
acceptVisit
in interface Expression
acceptVisit
in class EmptyExpression
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.