Class WhenScalar
- java.lang.Object
-
- org.apache.openjpa.jdbc.kernel.exps.WhenScalar
-
- All Implemented Interfaces:
java.io.Serializable
,Expression
public class WhenScalar extends java.lang.Object
Value produced by a when_clause of a case expression.- Author:
- Catalina Wei
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WhenScalar(Val val1, Val val2)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptVisit(ExpressionVisitor visitor)
Accept a visit from a tree visitor.void
appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf)
int
getId()
java.lang.Class
getType()
Val
getVal1()
Val
getVal2()
ExpState
initialize(Select sel, ExpContext ctx, java.util.Map contains)
void
selectColumns(Select sel, ExpContext ctx, ExpState state, boolean pks)
-
-
-
Method Detail
-
getVal1
public Val getVal1()
-
getVal2
public Val getVal2()
-
getType
public java.lang.Class getType()
-
initialize
public ExpState initialize(Select sel, ExpContext ctx, java.util.Map contains)
-
appendTo
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf)
-
selectColumns
public void selectColumns(Select sel, ExpContext ctx, ExpState state, boolean pks)
-
acceptVisit
public void acceptVisit(ExpressionVisitor visitor)
Description copied from interface:Expression
Accept a visit from a tree visitor.- Specified by:
acceptVisit
in interfaceExpression
-
getId
public int getId()
-
-