kr.co.hit.live.query.element.tags
Class Tag

java.lang.Object
  extended by kr.co.hit.live.query.element.tags.Tag
Direct Known Subclasses:
AlwaysTag, EmptyTag, EqualRefTag, EqualTag

public abstract class Tag
extends Object

SQL 사용여부를 동적으로 결정하는 여러가지 Tag 클래스들이 구현할 Interface.

Since:
4.0
Author:
김형도

Field Summary
protected  int valueType
           
 
Constructor Summary
protected Tag()
           
protected Tag(int type)
           
 
Method Summary
protected  int compare(Object compared, Object compareTo)
          비교할 값의 타입에 따라서 비교대상 문자열을 변환하여 비교한다.
protected  Object getCompareValue(ValueObject params, String propName, int iterationIdx, DbmsSupporter supporter, DefinitionMap defMap)
           
protected  Object getCompareValue(ValueObject params, String propName, int iterationIdx, DbmsSupporter supporter, DefinitionMap defMap, int vtype)
          주어진 파라메터들로부터 비교 대상 객체를 꺼내온다.
abstract  boolean isCondition(ValueObject params, int iterationIdx, DbmsSupporter supporter, DefinitionMap defMap)
          동적으로 SQL사용 여부를 결정하는 메소드이다.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valueType

protected int valueType
Constructor Detail

Tag

protected Tag()

Tag

protected Tag(int type)
Method Detail

isCondition

public abstract boolean isCondition(ValueObject params,
                                    int iterationIdx,
                                    DbmsSupporter supporter,
                                    DefinitionMap defMap)
동적으로 SQL사용 여부를 결정하는 메소드이다.

Parameters:
params -
Returns:

getCompareValue

protected Object getCompareValue(ValueObject params,
                                 String propName,
                                 int iterationIdx,
                                 DbmsSupporter supporter,
                                 DefinitionMap defMap)

getCompareValue

protected Object getCompareValue(ValueObject params,
                                 String propName,
                                 int iterationIdx,
                                 DbmsSupporter supporter,
                                 DefinitionMap defMap,
                                 int vtype)
주어진 파라메터들로부터 비교 대상 객체를 꺼내온다.

Parameters:
params -
propName -
iterationIdx -
Returns:

compare

protected int compare(Object compared,
                      Object compareTo)
비교할 값의 타입에 따라서 비교대상 문자열을 변환하여 비교한다. 문자형태이면 문자순서비교이며(lexicographical order), 숫자형이면 숫자비교를 수행한다.

Parameters:
compared -
compareTo -
Returns:


Copyright © 2014. All Rights Reserved.