org.apache.ws.jaxme.sqls.impl

Class CaseImpl

public class CaseImpl extends Object implements Case

Implementation of a Case clause.
Nested Class Summary
static classCaseImpl.WhenImpl
Implementation of a When clause.
Constructor Summary
protected CaseImpl(Column.Type pType)
Creates a new instance with the given type.
Method Summary
voidaddWhen(Object pCondition, Object pValue)
voidaddWhen(When pWhen)
ObjectgetCheckedValue()
ObjectgetElseValue()
Column.TypegetType()
When[]getWhens()
voidsetCheckedValue(Object pValue)
voidsetElseValue(Object pValue)

Constructor Detail

CaseImpl

protected CaseImpl(Column.Type pType)
Creates a new instance with the given type.

Method Detail

addWhen

public void addWhen(Object pCondition, Object pValue)

addWhen

public void addWhen(When pWhen)

getCheckedValue

public Object getCheckedValue()

getElseValue

public Object getElseValue()

getType

public Column.Type getType()

getWhens

public When[] getWhens()

setCheckedValue

public void setCheckedValue(Object pValue)

setElseValue

public void setElseValue(Object pValue)