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:
parent
c7175c22ba
commit
1516f063b5
|
@ -126,21 +126,12 @@ public class Query
|
||||||
* Set query parameters
|
* Set query parameters
|
||||||
* @param parameters
|
* @param parameters
|
||||||
*/
|
*/
|
||||||
public Query setParameters(Object[] parameters)
|
public Query setParameters(Object ...parameters)
|
||||||
{
|
{
|
||||||
this.parameters = parameters;
|
this.parameters = parameters;
|
||||||
return this;
|
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
|
* Set query parameters
|
||||||
* @param parameters collection of parameters
|
* @param parameters collection of parameters
|
||||||
|
|
Loading…
Reference in New Issue