public class WhenCondition extends Object
Constructor and Description |
---|
WhenCondition(org.apache.openjpa.jdbc.kernel.exps.Exp exp,
Val val)
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.
|
org.apache.openjpa.jdbc.kernel.exps.Exp |
getExp() |
int |
getId() |
Class |
getType() |
Val |
getVal() |
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 WhenCondition(org.apache.openjpa.jdbc.kernel.exps.Exp exp, Val val)
public org.apache.openjpa.jdbc.kernel.exps.Exp getExp()
public Val getVal()
public Class getType()
public ExpState initialize(Select sel, ExpContext ctx, Map contains)
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)
public void selectColumns(Select sel, ExpContext ctx, ExpState state, boolean pks)
public void acceptVisit(ExpressionVisitor visitor)
Expression
public int getId()
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.