public abstract class QuerySource extends Object
queries
.
Instances should be registered with the
QueryFactory
in the Spring configuration.
QuerySources are responsible for mapping the given query ID to a Query
instance (possibly dependent on the Parameters
). The
order of sources provided to QueryFactory
is very
important.
QuerySources can use any mechanism available to perform the lookup, e.g. a
database backend, flat-files, the set of Hibernate named-queries, or concrete
classes (see ClassQuerySource
).Constructor and Description |
---|
QuerySource() |
Modifier and Type | Method and Description |
---|---|
abstract <T> Query<T> |
lookup(String queryID,
Parameters parameters)
map the queryID argument to some Query instance (including null).
|
public abstract <T> Query<T> lookup(String queryID, Parameters parameters)
Parameters
T
- the generic type of the return Query. This is usually provided
indirectly through the type assignment, e.g. "QueryqueryID
- abstract identifier for the sought query.parameters
- named parameters for lookup and actual bindings.
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.