Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ibatis.sqlmap.engine.mapping.sql.dynamic.elements
Class ConditionalTagHandler  view ConditionalTagHandler download ConditionalTagHandler.java

java.lang.Object
  extended bycom.ibatis.sqlmap.engine.mapping.sql.dynamic.elements.BaseTagHandler
      extended bycom.ibatis.sqlmap.engine.mapping.sql.dynamic.elements.ConditionalTagHandler
All Implemented Interfaces:
SqlTagHandler
Direct Known Subclasses:
IsEmptyTagHandler, IsEqualTagHandler, IsGreaterEqualTagHandler, IsGreaterThanTagHandler, IsLessEqualTagHandler, IsLessThanTagHandler, IsNullTagHandler, IsParameterPresentTagHandler, IsPropertyAvailableTagHandler

public abstract class ConditionalTagHandler
extends BaseTagHandler


Field Summary
private static java.text.DateFormat DATE_FORMAT
           
private static java.lang.String DATE_MASK
           
static long NOT_COMPARABLE
           
private static com.ibatis.common.beans.Probe PROBE
           
 
Fields inherited from interface com.ibatis.sqlmap.engine.mapping.sql.dynamic.elements.SqlTagHandler
INCLUDE_BODY, REPEAT_BODY, SKIP_BODY
 
Constructor Summary
ConditionalTagHandler()
           
 
Method Summary
protected  long compare(SqlTagContext ctx, SqlTag tag, java.lang.Object parameterObject)
           
protected  long compareValues(java.lang.Class type, java.lang.Object value1, java.lang.Object value2)
           
protected  java.lang.Object convertValue(java.lang.Class type, java.lang.String value)
           
 int doEndFragment(SqlTagContext ctx, SqlTag tag, java.lang.Object parameterObject, java.lang.StringBuffer bodyContent)
           
 int doStartFragment(SqlTagContext ctx, SqlTag tag, java.lang.Object parameterObject)
           
abstract  boolean isCondition(SqlTagContext ctx, SqlTag tag, java.lang.Object parameterObject)
           
 
Methods inherited from class com.ibatis.sqlmap.engine.mapping.sql.dynamic.elements.BaseTagHandler
doPrepend, iteratePropertyReplace, replace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROBE

private static final com.ibatis.common.beans.Probe PROBE

NOT_COMPARABLE

public static final long NOT_COMPARABLE
See Also:
Constant Field Values

DATE_MASK

private static final java.lang.String DATE_MASK
See Also:
Constant Field Values

DATE_FORMAT

private static final java.text.DateFormat DATE_FORMAT
Constructor Detail

ConditionalTagHandler

public ConditionalTagHandler()
Method Detail

isCondition

public abstract boolean isCondition(SqlTagContext ctx,
                                    SqlTag tag,
                                    java.lang.Object parameterObject)

doStartFragment

public int doStartFragment(SqlTagContext ctx,
                           SqlTag tag,
                           java.lang.Object parameterObject)
Specified by:
doStartFragment in interface SqlTagHandler
Overrides:
doStartFragment in class BaseTagHandler

doEndFragment

public int doEndFragment(SqlTagContext ctx,
                         SqlTag tag,
                         java.lang.Object parameterObject,
                         java.lang.StringBuffer bodyContent)
Specified by:
doEndFragment in interface SqlTagHandler
Overrides:
doEndFragment in class BaseTagHandler

compare

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

compareValues

protected long compareValues(java.lang.Class type,
                             java.lang.Object value1,
                             java.lang.Object value2)

convertValue

protected java.lang.Object convertValue(java.lang.Class type,
                                        java.lang.String value)