| |
|
| java.lang.Object org.mandarax.util.ResultSetWrapper org.mandarax.jdbc.server.ResultSetExtension
ResultSetExtension | class ResultSetExtension extends ResultSetWrapper (Code) | | Extended mandarax result set with added "static" replacements.
This replacements represent bindings done before the query is issued, i.e.
slot=value conditions in the (SQL) query. In the result set, "global"
subtitutions slot/value are added.
author: Jens Dietrich version: 3.3.2 <29 December 2004> since: 3.0 |
ResultSetExtension | ResultSetExtension(ResultSet delegate, Query query) throws InferenceException(Code) | | Constructor.
Parameters: result - set a result set Parameters: query - a query - static replacements will be extracted from the query |
getQueryVariables | public List getQueryVariables() throws InferenceException(Code) | | Get a list of all variable terms in the query.
a list of variable terms |
getResult | public Object getResult(Class type, String name) throws InferenceException(Code) | | Get the object that replaces the variable with the given name and type.
If there is no such object, return null.
Throw an exception if the cursor is not positioned at a result.
the object that replaced the variable Parameters: type - the type of the variable Parameters: name - the name of the variable exception: an - inference exception |
getResult | public Object getResult(VariableTerm term) throws InferenceException(Code) | | Get the object that replaces the variable.
If there is no such object, return null.
Throw an exception if the cursor is not positioned at a result.
the object that replaced the variable Parameters: term - the variable term that is (perhaps) replaced exception: an - inference exception |
|
|
|