|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.jdbc.kernel.exps.EmptyExpression
org.apache.openjpa.jdbc.kernel.exps.BindVariableExpression
class BindVariableExpression
Binds a variable to a value. Typically, the 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 Summary | |
|---|---|
BindVariableExpression(Variable var,
PCPath val,
boolean key)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BindVariableExpression(Variable var,
PCPath val,
boolean key)
| Method Detail |
|---|
public Variable getVariable()
public ExpState initialize(Select sel,
ExpContext ctx,
Map contains)
Exp
initialize 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 aliases
public void appendTo(Select sel,
ExpContext ctx,
ExpState state,
SQLBuffer buf)
Exp
appendTo in interface ExpappendTo in class EmptyExpression
public void selectColumns(Select sel,
ExpContext ctx,
ExpState state,
boolean pks)
Exp
selectColumns in interface ExpselectColumns in class EmptyExpressionpublic void acceptVisit(ExpressionVisitor visitor)
Expression
acceptVisit in interface ExpressionacceptVisit in class EmptyExpression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||