Package ome.services.query
Class NullQuerySource
- java.lang.Object
-
- ome.services.query.QuerySource
-
- ome.services.query.NullQuerySource
-
public class NullQuerySource extends QuerySource
always returns null for any id. Useful for testing.- Since:
- OMERO 3.0
-
-
Constructor Summary
Constructors Constructor Description NullQuerySource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Query
lookup(java.lang.String queryID, ome.parameters.Parameters parameters)
map the queryID argument to some Query instance (including null).
-
-
-
Method Detail
-
lookup
public Query lookup(java.lang.String queryID, ome.parameters.Parameters parameters)
Description copied from class:QuerySource
map the queryID argument to some Query instance (including null). This mapping can be dependent on the providedParameters
- Specified by:
lookup
in classQuerySource
- Parameters:
queryID
- abstract identifier for the sought query.parameters
- named parameters for lookup and actual bindings.- Returns:
- A possible null Query for later execution.
-
-