sf logo

sf.qof.util
Class InClauseParameterReplacer

java.lang.Object
  extended by sf.qof.util.InClauseParameterReplacer

public class InClauseParameterReplacer
extends Object

Helper class with utility method to replace in-clause parameters.


Constructor Summary
InClauseParameterReplacer()
           
 
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
 

Constructor Detail

InClauseParameterReplacer

public InClauseParameterReplacer()
Method Detail

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 statement
index - the index of the parameter to replace
numArgs - number of parameters required
Returns:
new SQL statement with additional parameters

sf logo

Copyright © 2007 brunella ltd. All Rights Reserved.