|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.query.impl.rdbms.BooleanQueryResult
public class BooleanQueryResult
INTERNAL: Query result representating queries have no variables and evaluate to either true or false.
| Constructor Summary | |
|---|---|
BooleanQueryResult(java.lang.String[] colnames,
boolean result)
|
|
BooleanQueryResult(java.lang.String[] colnames,
java.lang.Object[] values,
boolean result)
|
|
| Method Summary | |
|---|---|
void |
close()
PUBLIC: Closes the query result, which allows it to free its resources. |
java.lang.String |
getColumnName(int ix)
PUBLIC: Returns the name of the given column. |
java.lang.String[] |
getColumnNames()
PUBLIC: Returns the names of the columns. |
int |
getIndex(java.lang.String colname)
PUBLIC: Returns the index of the named column. |
java.lang.Object |
getValue(int ix)
PUBLIC: Returns the value in the given column in the current match. |
java.lang.Object |
getValue(java.lang.String colname)
PUBLIC: Returns the value in the given column in the current match. |
java.lang.Object[] |
getValues()
PUBLIC: Returns the current match as an array of values. |
java.lang.Object[] |
getValues(java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BooleanQueryResult(java.lang.String[] colnames,
boolean result)
public BooleanQueryResult(java.lang.String[] colnames,
java.lang.Object[] values,
boolean result)
| Method Detail |
|---|
public boolean next()
QueryResultIF
next in interface QueryResultIFpublic java.lang.Object getValue(int ix)
QueryResultIFnext() to have been called first.
getValue in interface QueryResultIFpublic java.lang.Object getValue(java.lang.String colname)
QueryResultIFnext() to have been called first.
getValue in interface QueryResultIFpublic int getWidth()
QueryResultIF
getWidth in interface QueryResultIFpublic int getIndex(java.lang.String colname)
QueryResultIF
getIndex in interface QueryResultIFpublic java.lang.String[] getColumnNames()
QueryResultIF
getColumnNames in interface QueryResultIFpublic java.lang.String getColumnName(int ix)
QueryResultIF
getColumnName in interface QueryResultIFpublic java.lang.Object[] getValues()
QueryResultIFnext() to have been
called first.
getValues in interface QueryResultIFpublic java.lang.Object[] getValues(java.lang.Object[] values)
QueryResultIFnext() to have been called first.
getValues in interface QueryResultIFpublic void close()
QueryResultIF
close in interface QueryResultIF
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||