ObjectDB ObjectDB

createNamedQuery(name) - JPA EntityManager's method

Method
javax.persistence.EntityManager
Query createNamedQuery(
  String name
)

Create an instance of Query for executing a named query (in the Java Persistence query language or in native SQL).
Parameters:
name - the name of a query defined in metadata
Returns:
the new query instance
Throws:
IllegalArgumentException - if a query has not been defined with the given name or if the query string is found to be invalid
Since:
JPA 1.0