|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectacedb.Result
provide a pointer iteration through the result. resultProperty controls the type of iterator. Empty field is represented as "" empty string (for null).
| Field Summary | |
protected int |
resultProperty
to mark the type of result, currently RESULT_FORWARD, RESULT_RANDOM. |
| Fields inherited from interface acedb.Constants |
ACESERV_MSGDATA, ACESERV_MSGENCORE, ACESERV_MSGFAIL, ACESERV_MSGKILL, ACESERV_MSGOK, ACESERV_MSGREQ, RESULT_BACKWARD, RESULT_FORWARD, RESULT_RANDOM |
| Constructor Summary | |
protected |
Result()
construct an empty Result object if return 0 objects. |
protected |
Result(java.lang.String r)
the String r should be the whole message body obtained from the Ace or Aceclient class Should not be used outside the package. |
protected |
Result(java.lang.String r,
Aceconnect db)
Construct a new Result object from String r. |
protected |
Result(java.lang.String r,
boolean random)
Construct a random access result from a complete query result. |
| Method Summary | |
boolean |
absolute(int row)
|
void |
close()
|
boolean |
first()
for random access only. |
int |
getColumnCount()
returns number of columns returns by AQL |
java.lang.String |
getColumnType(int cnum)
returns column type at cnum as a String. |
int |
getCurrentRow()
return the rows that have been accessed through next(). |
double |
getDouble(int col)
|
float |
getFloat(int col)
|
int |
getInt(int col)
retruns the column at col as an integer. |
java.lang.String[] |
getRowArray()
returns row as an array of Strings |
int |
getRowCount()
return the total rows in this result only if Result is set to be random access. |
java.lang.String |
getRowString()
return the whole row as a single String object. |
java.lang.String |
getString(int col)
return unquoted String. |
boolean |
isEmpty()
Simply inform you whether you have obtained some results or not. |
boolean |
last()
|
boolean |
next()
if there is more results, after calling next you can retrieve the result with getXXXX methods. |
boolean |
nextForward()
move pointer to the next item in result; this is a FORWARD_ONLY iterator. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int resultProperty
| Constructor Detail |
protected Result()
protected Result(java.lang.String r)
protected Result(java.lang.String r,
Aceconnect db)
db - indicates whether more encore is needed.
when the db argument is given, we assume more segments
of results are needed to be obtained from the database.
protected Result(java.lang.String r,
boolean random)
| Method Detail |
public boolean next()
throws AceException
AceException
public boolean nextForward()
throws AceException
AceExceptionpublic boolean first()
public boolean last()
public boolean absolute(int row)
public java.lang.String getRowString()
public boolean isEmpty()
public int getColumnCount()
public java.lang.String getColumnType(int cnum)
cnum - column number, 1-basedpublic java.lang.String[] getRowArray()
public int getInt(int col)
col - column number starting from 1.public java.lang.String getString(int col)
public float getFloat(int col)
public double getDouble(int col)
public int getRowCount()
public int getCurrentRow()
public void close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||