|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jess.QueryResult
A ResultSet-like class to report the result of executing a Jess query. One of these is
returned by the Rete.runQueryStar(java.lang.String, jess.ValueVector)
method or by the run-query* function in Jess. Note that the
arguments to the getXXX() methods are the names of variables that appear in the query, not the names
of slots in the individual facts returned by the query.
(C) 2006 Sandia National Laboratories
Rete.runQueryStar(java.lang.String, jess.ValueVector)
Method Summary | |
void |
close()
Dispose of this QueryResult. |
Value |
get(java.lang.String variableName)
Return the value of the given variable in the current result record, as a jess.Value object |
boolean |
getBoolean(java.lang.String variableName)
Return the value of the given variable in the current result record, interpreted as a Jess Boolean value. |
byte |
getByte(java.lang.String variableName)
Return the value of the given variable in the current result record, as a byte. |
double |
getDouble(java.lang.String variableName)
Return the value of the given variable in the current result record, as a double. |
float |
getFloat(java.lang.String variableName)
Return the value of the given variable in the current result record, as a float. |
int |
getInt(java.lang.String variableName)
Return the value of the given variable in the current result record, as an int. |
long |
getLong(java.lang.String variableName)
Return the value of the given variable in the current result record, as a long. |
java.lang.Object |
getObject(java.lang.String variableName)
Return the value of the given variable in the current result record, as a Java object |
short |
getShort(java.lang.String variableName)
Return the value of the given variable in the current result record, as a short. |
java.lang.String |
getString(java.lang.String variableName)
Return the value of the given variable in the current result record, as a String. |
java.lang.String |
getSymbol(java.lang.String variableName)
Return the value of the given variable in the current result record, as a symbol. |
boolean |
next()
Advance the cursor to the next result record. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public boolean next()
public void close()
public java.lang.String getString(java.lang.String variableName) throws JessException
variableName
- the name of a variable mentioned anywhere in the query
JessException
- if the variable does not hold a String, or the cursor is invalid.public java.lang.String getSymbol(java.lang.String variableName) throws JessException
variableName
- the name of a variable mentioned anywhere in the query
JessException
- if the variable does not hold a symbol, or the cursor is invalid.public boolean getBoolean(java.lang.String variableName) throws JessException
variableName
- the name of a variable mentioned anywhere in the query
JessException
- if the variable can't be interpreted as a Boolean, or the cursor is invalid.public byte getByte(java.lang.String variableName) throws JessException
variableName
- the name of a variable mentioned anywhere in the query
JessException
- if the variable does not hold a number, or the cursor is invalid.public short getShort(java.lang.String variableName) throws JessException
variableName
- the name of a variable mentioned anywhere in the query
JessException
- if the variable does not hold a number, or the cursor is invalid.public int getInt(java.lang.String variableName) throws JessException
variableName
- the name of a variable mentioned anywhere in the query
JessException
- if the variable does not hold a number, or the cursor is invalid.public long getLong(java.lang.String variableName) throws JessException
variableName
- the name of a variable mentioned anywhere in the query
JessException
- if the variable does not hold a number, or the cursor is invalid.public float getFloat(java.lang.String variableName) throws JessException
variableName
- the name of a variable mentioned anywhere in the query
JessException
- if the variable does not hold a number, or the cursor is invalid.public double getDouble(java.lang.String variableName) throws JessException
variableName
- the name of a variable mentioned anywhere in the query
JessException
- if the variable does not hold a number, or the cursor is invalid.public java.lang.Object getObject(java.lang.String variableName) throws JessException
variableName
- the name of a variable mentioned anywhere in the query
JessException
- if the variable does not hold a Java object, or the cursor is invalid.public Value get(java.lang.String variableName) throws JessException
variableName
- the name of a variable mentioned anywhere in the query
JessException
- if the variable is undefined, or the cursor is invalid.
|
© 2007 Sandia Corporation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |