|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ontopoly.model.QueryMapper<T>
public class QueryMapper<T>
Constructor Summary | |
---|---|
QueryMapper(QueryProcessorIF processor)
|
|
QueryMapper(QueryProcessorIF processor,
DeclarationContextIF context)
|
Method Summary | |
---|---|
protected QueryResultIF |
execute(java.lang.String query,
java.util.Map<java.lang.String,?> params)
|
boolean |
isTrue(java.lang.String query)
EXPERIMENTAL: Returns true if the query produces a row and false if the query produces no rows. |
boolean |
isTrue(java.lang.String query,
java.util.Map<java.lang.String,?> params)
EXPERIMENTAL: Returns true if the query produces a row and false if the query produces no rows. |
java.util.List<T> |
queryForList(java.lang.String query)
EXPERIMENTAL: Runs the query, and returns a the single value in each row. |
java.util.List<T> |
queryForList(java.lang.String query,
java.util.Map<java.lang.String,?> params)
EXPERIMENTAL: Runs the query, and returns a the single value in each row. |
java.util.List<T> |
queryForList(java.lang.String query,
RowMapperIF<T> mapper)
EXPERIMENTAL: Runs the query, and calls the mapper for each row in the query result. |
java.util.List<T> |
queryForList(java.lang.String query,
RowMapperIF<T> mapper,
java.util.Map<java.lang.String,?> params)
EXPERIMENTAL: Runs the query with the given parameters, and calls the mapper for each row in the query result. |
java.util.Map<java.lang.String,T> |
queryForMap(java.lang.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. |
java.util.Map<java.lang.String,T> |
queryForMap(java.lang.String query,
java.util.Map<java.lang.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. |
T |
queryForObject(java.lang.String query)
EXPERIMENTAL: Returns the value in the first column in the first row of the query result. |
T |
queryForObject(java.lang.String query,
java.util.Map<java.lang.String,?> params)
EXPERIMENTAL: Returns the value in the first column in the first row of the query result. |
T |
queryForObject(java.lang.String query,
RowMapperIF<T> mapper)
EXPERIMENTAL: Returns the value in the first column in the first row of the query result. |
T |
queryForObject(java.lang.String query,
RowMapperIF<T> mapper,
java.util.Map<java.lang.String,?> params)
EXPERIMENTAL: Returns the mapping of the value in the first column in the first row of the query result. |
protected T |
wrapValue(java.lang.Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryMapper(QueryProcessorIF processor)
public QueryMapper(QueryProcessorIF processor, DeclarationContextIF context)
Method Detail |
---|
public boolean isTrue(java.lang.String query)
public boolean isTrue(java.lang.String query, java.util.Map<java.lang.String,?> params)
public T queryForObject(java.lang.String query)
public T queryForObject(java.lang.String query, java.util.Map<java.lang.String,?> params)
public T queryForObject(java.lang.String query, RowMapperIF<T> mapper)
public T queryForObject(java.lang.String query, RowMapperIF<T> mapper, java.util.Map<java.lang.String,?> params)
public java.util.List<T> queryForList(java.lang.String query)
public java.util.List<T> queryForList(java.lang.String query, RowMapperIF<T> mapper)
public java.util.List<T> queryForList(java.lang.String query, java.util.Map<java.lang.String,?> params)
public java.util.List<T> queryForList(java.lang.String query, RowMapperIF<T> mapper, java.util.Map<java.lang.String,?> params)
public java.util.Map<java.lang.String,T> queryForMap(java.lang.String query)
public java.util.Map<java.lang.String,T> queryForMap(java.lang.String query, java.util.Map<java.lang.String,?> params)
protected T wrapValue(java.lang.Object value)
protected QueryResultIF execute(java.lang.String query, java.util.Map<java.lang.String,?> params) throws InvalidQueryException
InvalidQueryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |