public class BooleanQueryResult extends Object implements QueryResultIF
| Constructor and Description |
|---|
BooleanQueryResult(String[] colnames,
boolean result) |
BooleanQueryResult(String[] colnames,
Object[] values,
boolean result) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
PUBLIC: Closes the query result, which allows it to free its
resources.
|
String |
getColumnName(int ix)
PUBLIC: Returns the name of the given column.
|
String[] |
getColumnNames()
PUBLIC: Returns the names of the columns.
|
int |
getIndex(String colname)
PUBLIC: Returns the index of the named column.
|
Object |
getValue(int ix)
PUBLIC: Returns the value in the given column in the current
match.
|
Object |
getValue(String colname)
PUBLIC: Returns the value in the given column in the current
match.
|
Object[] |
getValues()
PUBLIC: Returns the current match as an array of values.
|
Object[] |
getValues(Object[] values)
PUBLIC: Reads the values of the current match into the specified
array.
|
int |
getWidth()
PUBLIC: Returns the number of columns in the result.
|
boolean |
next()
PUBLIC: Steps to the next match, returning true if a valid match
was found, and false if there are no more matches.
|
public BooleanQueryResult(String[] colnames, boolean result)
public boolean next()
QueryResultIFnext in interface QueryResultIFpublic Object getValue(int ix)
QueryResultIFnext() to have been called first.getValue in interface QueryResultIFpublic Object getValue(String colname)
QueryResultIFnext() to have been called first.getValue in interface QueryResultIFpublic int getWidth()
QueryResultIFgetWidth in interface QueryResultIFpublic int getIndex(String colname)
QueryResultIFgetIndex in interface QueryResultIFpublic String[] getColumnNames()
QueryResultIFgetColumnNames in interface QueryResultIFpublic String getColumnName(int ix)
QueryResultIFgetColumnName in interface QueryResultIFpublic Object[] getValues()
QueryResultIFnext() to have been
called first.getValues in interface QueryResultIFpublic Object[] getValues(Object[] values)
QueryResultIFnext() to have been called first.getValues in interface QueryResultIFpublic void close()
QueryResultIFclose in interface AutoCloseableclose in interface QueryResultIF