sf.qof.util
Class InClauseParameterReplacer
java.lang.Object
sf.qof.util.InClauseParameterReplacer
public class InClauseParameterReplacer
- extends Object
Helper class with utility method to replace in-clause parameters.
Method Summary |
static String |
replace(String sql,
int index,
int numArgs)
Returns a SQL statement that replaces the index -th
parameter '?' with a number numArgs of '?'. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InClauseParameterReplacer
public InClauseParameterReplacer()
replace
public static String replace(String sql,
int index,
int numArgs)
- Returns a SQL statement that replaces the
index
-th
parameter '?' with a number numArgs
of '?'.
- Parameters:
sql
- the SQL statementindex
- the index of the parameter to replacenumArgs
- number of parameters required
- Returns:
- new SQL statement with additional parameters
Copyright © 2007 brunella ltd. All Rights Reserved.