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.Object
Value 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 void
acceptVisit(ExpressionVisitor visitor)
Accept a visit from a tree visitor.void
appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf)
org.apache.openjpa.jdbc.kernel.exps.Exp
getExp()
int
getId()
java.lang.Class
getType()
Val
getVal()
ExpState
initialize(Select sel, ExpContext ctx, java.util.Map contains)
void
selectColumns(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:Expression
Accept a visit from a tree visitor.- Specified by:
acceptVisit
in interfaceExpression
-
getId
public int getId()
-
-