| 
 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.ObjectSQLite.TableResult
Class representing an SQLite result set as
 returned by the
 Database.get_table
 convenience method.
 
 Example:
 
   ...
   SQLite.Database db = new SQLite.Database();
   db.open("db", 0);
   System.out.print(db.get_table("select * from TEST"));
   ...
 
 Example output:id|firstname|lastname| 0|John|Doe| 1|Speedy|Gonzales| ...
| Field Summary | |
|  boolean | atmaxrowsFlag to indicate Maximum number of rows condition. | 
|  String[] | columnColumn names of the result set. | 
|  int | maxrowsMaximum number of rows to hold in the table. | 
|  int | ncolumnsNumber of columns in the result set. | 
|  int | nrowsNumber of rows in the result set. | 
|  Vector | rowsRows of the result set. | 
|  String[] | typesTypes of columns of the result set or null. | 
| Constructor Summary | |
| TableResult()Create an empty result set. | |
| TableResult(int maxrows)Create an empty result set with maximum number of rows. | |
| Method Summary | |
|  void | clear()Clear result set. | 
|  void | columns(String[] coldata)Callback method used while the query is executed. | 
|  boolean | newrow(String[] rowdata)Callback method used while the query is executed. | 
|  String | toString()Make String representation of result set. | 
|  void | types(String[] types)Callback method used while the query is executed. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public boolean atmaxrows
public String[] column
public int maxrows
public int ncolumns
public int nrows
public Vector rows
public String[] types
| Constructor Detail | 
public TableResult()
public TableResult(int maxrows)
| Method Detail | 
public void clear()
public void columns(String[] coldata)
columns in interface Callbackcoldata - string array holding the column namespublic boolean newrow(String[] rowdata)
newrow in interface Callbackrowdata - string array holding the column values of the rowpublic String toString()
public void types(String[] types)
types in interface Callbacktypes - string array holding column types| 
 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||