Query newNamedQuery(
Class cls,
String queryName
)
Create a new
Query
with the given candidate class from a named query. The query name given must be the name of a query defined in metadata. - Parameters:
cls
- theClass
of candidate instancesqueryName
- the name of the query to look up in metadata
- Return:
- the new
Query
- Since:
- JDO 1.0