Class WhenCondition
- java.lang.Object
-
- org.apache.openjpa.jdbc.kernel.exps.WhenCondition
-
- All Implemented Interfaces:
java.io.Serializable,Expression
public class WhenCondition extends java.lang.ObjectValue produced by a when_clause of a case expression.- Author:
- Catalina Wei
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WhenCondition(org.apache.openjpa.jdbc.kernel.exps.Exp exp, Val val)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)org.apache.openjpa.jdbc.kernel.exps.ExpgetExp()intgetId()java.lang.ClassgetType()ValgetVal()ExpStateinitialize(Select sel, ExpContext ctx, java.util.Map contains)voidselectColumns(Select sel, ExpContext ctx, ExpState state, boolean pks)
-
-
-
Constructor Detail
-
WhenCondition
public WhenCondition(org.apache.openjpa.jdbc.kernel.exps.Exp exp, Val val)Constructor.
-
-
Method Detail
-
getExp
public org.apache.openjpa.jdbc.kernel.exps.Exp getExp()
-
getVal
public Val getVal()
-
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:ExpressionAccept a visit from a tree visitor.- Specified by:
acceptVisitin interfaceExpression
-
getId
public int getId()
-
-