public class WhenScalar extends java.lang.Object implements Exp
Constructor and Description |
---|
WhenScalar(Val val1,
Val val2)
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.
|
int |
getId() |
java.lang.Class |
getType() |
Val |
getVal1() |
Val |
getVal2() |
ExpState |
initialize(Select sel,
ExpContext ctx,
java.util.Map contains)
Initialize the expression.
|
void |
selectColumns(Select sel,
ExpContext ctx,
ExpState state,
boolean pks)
Select just the columns for this expression.
|
public Val getVal1()
public Val getVal2()
public java.lang.Class getType()
public ExpState initialize(Select sel, ExpContext ctx, java.util.Map contains)
Exp
initialize
in interface Exp
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
public void selectColumns(Select sel, ExpContext ctx, ExpState state, boolean pks)
Exp
selectColumns
in interface Exp
public void acceptVisit(ExpressionVisitor visitor)
Expression
acceptVisit
in interface Expression
public int getId()
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.