kr.co.hit.live.query.element
Class ArgumentSqlText
java.lang.Object
kr.co.hit.live.query.element.ArgumentSqlText
- All Implemented Interfaces:
- SqlText
public class ArgumentSqlText
- extends Object
- implements SqlText
문자열 치환방식의 파라메터 하나를 표현하는 SqlText 클래스이다.
SQL 문장에서 $...$ 방식으로 표현되는 부분이다.
~로 시작하면 ' 를 '' 로 escaping 시켜준다.
예) name을 key로하는 문자열 값이 kim's name 이라면 $~name$ --> kim''s name 이된다.
- Since:
- 4.0
- Author:
- 김형도
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArgumentSqlText
public ArgumentSqlText(String param)
appendSql
public void appendSql(ValueObject params,
StringBuilder sb,
List<SqlParameter> sqlParams,
int iterationIdx,
DbmsSupporter supporter,
DefinitionMap defMap)
- Description copied from interface:
SqlText
- 파싱된 SQL 문장을 StringBuilder에 append하고 SqlParameter 들은 sqlParams에 add한다.
- Specified by:
appendSql in interface SqlText
sb - SQL 문장을 여기에 계속 추가한다.sqlParams - SqlParameter 객체를 여기에 계속 추가한다.
Copyright © 2014. All Rights Reserved.