|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implementations of this interface are NOT expected to be thread safe, as they must hold call specific parameters.
Method Summary | |
void |
clearParameters()
Resets the values of all parameters to null. |
Cursor |
execute()
Execute the query, causing it to fetch data based on the current values for the parameters. |
Cursor |
execute(int pageNumber,
int rowsPerPage)
Execute the query, causing it to fetch data based on the current values for the parameters. |
void |
setParameter(java.lang.String name,
boolean value)
Sets the designated parameter value to the given boolean. |
void |
setParameter(java.lang.String name,
char value)
Sets the designated parameter value to the given char. |
void |
setParameter(java.lang.String name,
java.util.Date value)
Sets the designated parameter value to the given Date. |
void |
setParameter(java.lang.String name,
double value)
Sets the designated parameter value to the given double. |
void |
setParameter(java.lang.String name,
float value)
Sets the designated parameter value to the given float. |
void |
setParameter(java.lang.String name,
int value)
Sets the designated parameter value to the given int. |
void |
setParameter(java.lang.String name,
long value)
Sets the designated parameter value to the given long. |
void |
setParameter(java.lang.String name,
java.lang.Object value)
Sets the designated parameter value to the given Object. |
void |
setParameter(java.lang.String name,
java.lang.String value)
Sets the designated parameter value to the given String. |
Method Detail |
public void setParameter(java.lang.String name, java.util.Date value)
public void setParameter(java.lang.String name, boolean value)
public void setParameter(java.lang.String name, char value)
public void setParameter(java.lang.String name, double value)
public void setParameter(java.lang.String name, float value)
public void setParameter(java.lang.String name, int value)
public void setParameter(java.lang.String name, long value)
public void setParameter(java.lang.String name, java.lang.String value)
public void setParameter(java.lang.String name, java.lang.Object value)
public void clearParameters()
public Cursor execute() throws QException
QException
public Cursor execute(int pageNumber, int rowsPerPage) throws QException
Page number is zero based. The Cursor that is returned will also know which page it is, and how many total pages there are.
When using this option for pagination, it is recomended that caching features be taken advantage of as not to waste the effort of querying the data source for only one page of content.
QException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |