kr.co.hit.live.query
Class SqlQueryPage

java.lang.Object
  extended by kr.co.hit.live.query.SqlQueryPage

public class SqlQueryPage
extends Object

하나의 XML 파일내에 정의된 SQL 문장들을 파싱하여 SQL 문장과 대응되는 SqlQuery 객체를 제공한다.

Since:
4.0
Author:
김형도

Constructor Summary
SqlQueryPage(String path)
          생성자이다.
SqlQueryPage(String path, ClassLoader loader)
          생성자이다.
 
Method Summary
 SqlQuery getQuery(String id)
          요청한 ID에 해당되는 SQL 문장을 표현하는 SqlQuery 객체를 생성하여 반환한다.
 ResultMap getResultMap(String id)
          요청한 ID에 해당되는 ResultMap 객체를 반환한다.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlQueryPage

public SqlQueryPage(String path)
생성자이다. SqlQuery 파일의 클래스 패스를 지정한다.

Parameters:
path -

SqlQueryPage

public SqlQueryPage(String path,
                    ClassLoader loader)
생성자이다. SqlQuery 파일의 클래스 패스와 그 클래스 패스로부터 파일을 로딩하기 위한 클래스로더를 지정한다.

Parameters:
path -
loader -
Method Detail

getQuery

public SqlQuery getQuery(String id)
                  throws LiveException
요청한 ID에 해당되는 SQL 문장을 표현하는 SqlQuery 객체를 생성하여 반환한다. 내부적으로 SqlQueryReader 객체를 사용하여 해당 XML 파일을 파싱한다.

Parameters:
id -
Returns:
Throws:
LiveException - 해당 파일을

getResultMap

public ResultMap getResultMap(String id)
                       throws LiveException
요청한 ID에 해당되는 ResultMap 객체를 반환한다.

Parameters:
id -
Returns:
Throws:
LiveException


Copyright © 2014. All Rights Reserved.