public class StringQuerySource extends QuerySource
StringQuery.STRING
This query source should be placed at the end of the array of query sources
provided to QueryFactory
because it will always
return a Query
regardless of the id. An exception
will be thrown at execution time if the HQL is invalid.Constructor and Description |
---|
StringQuerySource()
Default constructor, used primarily for testing.
|
StringQuerySource(ome.util.SqlAction sql) |
Modifier and Type | Method and Description |
---|---|
Query |
lookup(java.lang.String queryID,
ome.parameters.Parameters parameters)
map the queryID argument to some Query instance (including null).
|
public StringQuerySource()
SqlAction
to created StringQuery
instances.public StringQuerySource(ome.util.SqlAction sql)
public Query lookup(java.lang.String queryID, ome.parameters.Parameters parameters)
QuerySource
Parameters
lookup
in class QuerySource
queryID
- abstract identifier for the sought query.parameters
- named parameters for lookup and actual bindings.