com.ibatis.sqlmap.engine.mapping.sql.dynamic.elements

Class ConditionalTagHandler

public abstract class ConditionalTagHandler extends BaseTagHandler

Field Summary
static longNOT_COMPARABLE
Method Summary
protected longcompare(SqlTagContext ctx, SqlTag tag, Object parameterObject)
protected longcompareValues(Class type, Object value1, Object value2)
protected ObjectconvertValue(Class type, String value)
intdoEndFragment(SqlTagContext ctx, SqlTag tag, Object parameterObject, StringBuffer bodyContent)
intdoStartFragment(SqlTagContext ctx, SqlTag tag, Object parameterObject)
protected StringgetResolvedProperty(SqlTagContext ctx, SqlTag tag)
This method will add the proper index values to an indexed property string if we are inside an iterate tag
abstract booleanisCondition(SqlTagContext ctx, SqlTag tag, Object parameterObject)

Field Detail

NOT_COMPARABLE

public static final long NOT_COMPARABLE

Method Detail

compare

protected long compare(SqlTagContext ctx, SqlTag tag, Object parameterObject)

compareValues

protected long compareValues(Class type, Object value1, Object value2)

convertValue

protected Object convertValue(Class type, String value)

doEndFragment

public int doEndFragment(SqlTagContext ctx, SqlTag tag, Object parameterObject, StringBuffer bodyContent)

doStartFragment

public int doStartFragment(SqlTagContext ctx, SqlTag tag, Object parameterObject)

getResolvedProperty

protected String getResolvedProperty(SqlTagContext ctx, SqlTag tag)
This method will add the proper index values to an indexed property string if we are inside an iterate tag

Parameters: ctx tag

isCondition

public abstract boolean isCondition(SqlTagContext ctx, SqlTag tag, Object parameterObject)
Copyright © 2011. All Rights Reserved.