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() |
public abstract <T> Query<T> lookup(String queryID, ome.parameters.Parameters parameters)
ParametersT - 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.1.1-ice35-b43
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.