public class QueryFactory
extends java.lang.Object
"query sources"
. The lookup
proceeds through the available query sources calling
querySource.lookup()
,
and returns the first non-null result. If no result is found, an exception is
thrown.Modifier and Type | Field and Description |
---|---|
protected QuerySource[] |
sources
sources available for lookups.
|
Constructor and Description |
---|
QueryFactory(QuerySource... querySources)
main constructor which takes a non-null array of query sources as its
only argument.
|
Modifier and Type | Method and Description |
---|---|
<T> Query<T> |
lookup(java.lang.String queryID,
ome.parameters.Parameters params) |
protected QuerySource[] sources
public QueryFactory(QuerySource... querySources)
querySources
- Array of query sources. Not null.public <T> Query<T> lookup(java.lang.String queryID, ome.parameters.Parameters params)
T
- queryID
- params
-