| java.lang.Object org.apache.openjpa.jdbc.kernel.exps.AbstractVal org.apache.openjpa.jdbc.kernel.exps.Variable
Variable | class Variable extends AbstractVal (Code) | | A variable in a filter. Typically, the
Variable.initialize and
Variable.getJoins methods of this value are not called. They are
only called if the variable is bound but 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).
author: Abe White |
Method Summary | |
public void | acceptVisit(ExpressionVisitor visitor) | public void | appendIsEmpty(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf) | public void | appendIsNotEmpty(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf) | public void | appendIsNotNull(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf) | public void | appendIsNull(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf) | public void | appendSize(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf) | public void | appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) | public void | calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) | public ClassMetaData | getMetaData() | public String | getName() Return the variable name. | public PCPath | getPCPath() Return the path this variable is aliased to. | public Class | getType() | public void | groupBy(Select sel, ExpContext ctx, ExpState state) | public ExpState | initialize(Select sel, ExpContext ctx, int flags) | public boolean | isBound() Return true if the variable is bound. | public boolean | isVariable() | public int | length(Select sel, ExpContext ctx, ExpState state) | public Object | load(ExpContext ctx, ExpState state, Result res) | public void | orderBy(Select sel, ExpContext ctx, ExpState state, boolean asc) | public void | select(Select sel, ExpContext ctx, ExpState state, boolean pks) | public void | selectColumns(Select sel, ExpContext ctx, ExpState state, boolean pks) | public void | setImplicitType(Class type) | public void | setMetaData(ClassMetaData meta) | public void | setPCPath(PCPath path) Set the path this variable is aliased to. |
Variable | public Variable(String name, Class type)(Code) | | Constructor. Supply variable name and type.
|
getName | public String getName()(Code) | | Return the variable name.
|
getPCPath | public PCPath getPCPath()(Code) | | Return the path this variable is aliased to.
|
isBound | public boolean isBound()(Code) | | Return true if the variable is bound.
|
isVariable | public boolean isVariable()(Code) | | |
setImplicitType | public void setImplicitType(Class type)(Code) | | |
setPCPath | public void setPCPath(PCPath path)(Code) | | Set the path this variable is aliased to.
|
Methods inherited from org.apache.openjpa.jdbc.kernel.exps.AbstractVal | public void acceptVisit(ExpressionVisitor visitor)(Code)(Java Doc) public void appendIsEmpty(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql)(Code)(Java Doc) public void appendIsNotEmpty(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql)(Code)(Java Doc) public void appendIsNotNull(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql)(Code)(Java Doc) public void appendIsNull(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql)(Code)(Java Doc) public void appendSize(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql)(Code)(Java Doc) public boolean isAggregate()(Code)(Java Doc) public boolean isVariable()(Code)(Java Doc) public boolean isXPath()(Code)(Java Doc) public Object toDataStoreValue(Select sel, ExpContext ctx, ExpState state, Object val)(Code)(Java Doc)
|
|
|