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)
Expinitialize in interface Expinitialize in class EmptyExpressioncontains - 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)
ExpappendTo in interface ExpappendTo in class EmptyExpressionpublic void selectColumns(Select sel, ExpContext ctx, ExpState state, boolean pks)
ExpselectColumns in interface ExpselectColumns in class EmptyExpressionpublic void acceptVisit(ExpressionVisitor visitor)
ExpressionacceptVisit in interface ExpressionacceptVisit in class EmptyExpressionCopyright © 2006–2015 Apache Software Foundation. All rights reserved.