Package ontopoly.model
Class QueryMapper<T>
java.lang.Object
ontopoly.model.QueryMapper<T>
-
Constructor Summary
ConstructorsConstructorDescriptionQueryMapper(QueryProcessorIF processor) QueryMapper(QueryProcessorIF processor, DeclarationContextIF context) -
Method Summary
Modifier and TypeMethodDescriptionprotected QueryResultIFbooleanEXPERIMENTAL: Returns true if the query produces a row and false if the query produces no rows.booleanEXPERIMENTAL: Returns true if the query produces a row and false if the query produces no rows.queryForList(String query) EXPERIMENTAL: Runs the query, and returns a the single value in each row.queryForList(String query, Map<String, ?> params) EXPERIMENTAL: Runs the query, and returns a the single value in each row.queryForList(String query, RowMapperIF<T> mapper) EXPERIMENTAL: Runs the query, and calls the mapper for each row in the query result.queryForList(String query, RowMapperIF<T> mapper, Map<String, ?> params) EXPERIMENTAL: Runs the query with the given parameters, and calls the mapper for each row in the query result.queryForMap(String query) EXPERIMENTAL: Returns a map of the first row of the query results, with each variable name (without $) as a key and each variable value as the value of the key.queryForMap(String query, Map<String, ?> params) EXPERIMENTAL: Returns a map of the first row of the query results, with each variable name (without $) as a key and each variable value as the value of the key.queryForObject(String query) EXPERIMENTAL: Returns the value in the first column in the first row of the query result.queryForObject(String query, Map<String, ?> params) EXPERIMENTAL: Returns the value in the first column in the first row of the query result.queryForObject(String query, RowMapperIF<T> mapper) EXPERIMENTAL: Returns the value in the first column in the first row of the query result.queryForObject(String query, RowMapperIF<T> mapper, Map<String, ?> params) EXPERIMENTAL: Returns the mapping of the value in the first column in the first row of the query result.protected T
-
Constructor Details
-
QueryMapper
-
QueryMapper
-
-
Method Details
-
isTrue
EXPERIMENTAL: Returns true if the query produces a row and false if the query produces no rows. -
isTrue
EXPERIMENTAL: Returns true if the query produces a row and false if the query produces no rows. -
queryForObject
EXPERIMENTAL: Returns the value in the first column in the first row of the query result. If the query produces no results null is returned. -
queryForObject
EXPERIMENTAL: Returns the value in the first column in the first row of the query result. If the query produces no results null is returned. -
queryForObject
EXPERIMENTAL: Returns the value in the first column in the first row of the query result. If the query produces no results null is returned. -
queryForObject
EXPERIMENTAL: Returns the mapping of the value in the first column in the first row of the query result. If the query produces no results null is returned. -
queryForList
EXPERIMENTAL: Runs the query, and returns a the single value in each row. -
queryForList
EXPERIMENTAL: Runs the query, and calls the mapper for each row in the query result. Returns a list of all the objects produced by the mapper in query result order. -
queryForList
EXPERIMENTAL: Runs the query, and returns a the single value in each row. -
queryForList
EXPERIMENTAL: Runs the query with the given parameters, and calls the mapper for each row in the query result. Returns a list of all the objects produced by the mapper in query result order. -
queryForMap
EXPERIMENTAL: Returns a map of the first row of the query results, with each variable name (without $) as a key and each variable value as the value of the key. If the query produces no rows the method returns null; if it produces more than one an exception is thrown. -
queryForMap
EXPERIMENTAL: Returns a map of the first row of the query results, with each variable name (without $) as a key and each variable value as the value of the key. If the query produces no rows the method returns null. -
wrapValue
-
execute
- Throws:
InvalidQueryException
-