|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Deprecated public interface QueryResult
Interface used to retrieve results of a query executed using the QueryManagerService.
| Method Summary | |
|---|---|
int |
getColumnCount()
Deprecated. Returns the amount of columns in the result. |
int |
getRowCount()
Deprecated. Returns the amount of rows in the result. |
java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.Object>> |
getRows()
Deprecated. Returns all rows in the result as arraylist of mappings of column names onto values |
java.lang.Object |
getValue()
Deprecated. Returns the value of the result assuming there is exactly one row and one column in the result. |
java.lang.Object |
getValue(int row)
Deprecated. Returns the value of the result on the specified row assuming there is exactly one column in the result. |
java.lang.Object |
getValue(int row,
java.lang.String column)
Deprecated. Returns the value of the result on the specified row and column name. |
boolean |
hasResults()
Deprecated. Returns if the query returned results (at least one row with one column) |
| Method Detail |
|---|
int getRowCount()
int getColumnCount()
java.lang.Object getValue()
throws java.sql.SQLException
java.sql.SQLException - if there is not exactly one row and one column
in the result.
java.lang.Object getValue(int row)
throws java.sql.SQLException
row - Row to retrieve the result for
java.sql.SQLException - if there is not exactly one column in the result or the
specified row exceeds the number of rows contained by the result.
java.lang.Object getValue(int row,
java.lang.String column)
throws java.sql.SQLException
row - Row to retrieve the result forcolumn - Name of the column to retrieve the result for
java.sql.SQLException - in case there is no column in the result with the
specified name or if the specified row exceeds the number of rows
contained by the result.java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.Object>> getRows()
boolean hasResults()
true if the query returned results, false
otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||