don't have to add setParameter(int), we just need to replace setParameters(Object[] parameters) with setParameters(Object ...parameters)

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2214883
This commit is contained in:
Heng Sin Low 2010-02-26 01:02:06 +00:00
parent c7175c22ba
commit 1516f063b5
1 changed files with 1 additions and 10 deletions

View File

@ -126,21 +126,12 @@ public class Query
* Set query parameters
* @param parameters
*/
public Query setParameters(Object[] parameters)
public Query setParameters(Object ...parameters)
{
this.parameters = parameters;
return this;
}
/**
* Set query parameters (one integer)
* @int_param integer parameter
*/
public Query setParameters(int int_param) {
this.parameters = new Object[]{int_param};
return this;
}
/**
* Set query parameters
* @param parameters collection of parameters