newNamedQuery(cls, queryName) - JDO PersistenceManager's method
Method
javax.jdo.PersistenceManager
Query newNamedQuery(
Class cls,
String queryName
)
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 instances -
queryName
- the name of the query to look up in metadata
- Returns:
-
the new
Query
- Since:
- JDO 1.0