public class TableResult extends java.lang.Object implements Callback
... 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| ...
Modifier and Type | Field and Description |
---|---|
boolean |
atmaxrows
Flag to indicate Maximum number of rows condition.
|
java.lang.String[] |
column
Column names of the result set.
|
int |
maxrows
Maximum number of rows to hold in the table.
|
int |
ncolumns
Number of columns in the result set.
|
int |
nrows
Number of rows in the result set.
|
java.util.Vector |
rows
Rows of the result set.
|
java.lang.String[] |
types
Types of columns of the result set or null.
|
Constructor and Description |
---|
TableResult()
Create an empty result set.
|
TableResult(int maxrows)
Create an empty result set with maximum number of rows.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear result set.
|
void |
columns(java.lang.String[] coldata)
Callback method used while the query is executed.
|
boolean |
newrow(java.lang.String[] rowdata)
Callback method used while the query is executed.
|
java.lang.String |
toString()
Make String representation of result set.
|
void |
types(java.lang.String[] types)
Callback method used while the query is executed.
|
public boolean atmaxrows
public java.lang.String[] column
public int maxrows
public int ncolumns
public int nrows
public java.util.Vector rows
public java.lang.String[] types
public TableResult()
public TableResult(int maxrows)
maxrows
- number of rowspublic void clear()
public void columns(java.lang.String[] coldata)
public boolean newrow(java.lang.String[] rowdata)
public java.lang.String toString()
toString
in class java.lang.Object
Contact: Christian Werner