Class WhenScalar
- java.lang.Object
 - 
- org.apache.openjpa.jdbc.kernel.exps.WhenScalar
 
 
- 
- All Implemented Interfaces:
 Serializable,Expression
public class WhenScalar extends 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 voidacceptVisit(ExpressionVisitor visitor)Accept a visit from a tree visitor.voidappendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf)intgetId()ClassgetType()ValgetVal1()ValgetVal2()ExpStateinitialize(Select sel, ExpContext ctx, Map contains)voidselectColumns(Select sel, ExpContext ctx, ExpState state, boolean pks) 
 - 
 
- 
- 
Method Detail
- 
getVal1
public Val getVal1()
 
- 
getVal2
public Val getVal2()
 
- 
getType
public Class getType()
 
- 
initialize
public ExpState initialize(Select sel, ExpContext ctx, 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:ExpressionAccept a visit from a tree visitor.- Specified by:
 acceptVisitin interfaceExpression
 
- 
getId
public int getId()
 
 - 
 
 -