kr.co.hit.live.query
Class SqlQueryReader
java.lang.Object
kr.co.hit.live.query.SqlQueryReader
public class SqlQueryReader
- extends Object
SQL Query 정의 파일의 클래스 경로로부터 해당 파일을 파싱하여
파싱된 결과 객체인 Sqls 객체를 반환해주는 기능을 제공하는 클래스이다.
- Since:
- 4.0
- Author:
- 김형도
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getReader
public static SqlQueryReader getReader()
getQuery
public Sqls getQuery(String path)
throws IOException,
SAXException
- Throws:
IOException
SAXException
getQuery
public Sqls getQuery(String path,
ClassLoader loader)
throws IOException,
SAXException
- Sql Query 정의 파일의 클래스 경로를 지정하면
해당되는 정의 파일을 파싱하여 Sqls 객체로 반환한다.
- Parameters:
path - Sql Query 정의 파일의 클래스 경로loader - 클래스 경로로부터 파일을 로딩하기 위하여 사용되는 클래스로더 객체,
null 이면 Thread의 ContextClassLoader가 사용된다.
- Returns:
- 파싱된 결과
- Throws:
IOException
SAXException
Copyright © 2014. All Rights Reserved.