Home » Search

About named queries

41-50 of 200Refresh
JPA Doc
31

createNamedQuery(name, resultClass)

> resultClass ) Create an instance of TypedQuery for executing a Java Persistence query language named ... to the type specified by the resultClass argument. Parameters: name - the name of a query defined in ... : IllegalArgumentException - if a query has not been defined with the given name or if the query string is found
JPA Doc
31

createNamedQuery(name)

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
JPA Doc
29

Entity.name

Annotation Element javax.persistence.Entity String name (Optional) The entity name. Defaults to the unqualified name of the entity class. This name is used to refer to the entity in queries. The name must not be a reserved literal in the Java Persistence query language. Default value: "" Since: JPA 1.0
JPA Doc
29

setParameter(name, value)

Method javax.persistence.TypedQuery TypedQuery setParameter(   String name,   Object value ) Bind an argument to a named parameter. Parameters: name - parameter name value - parameter value Returns: the same query instance Throws: IllegalArgumentException - if the parameter name does not
JPA Doc
29

setParameter(name, value, temporalType)

Method javax.persistence.TypedQuery TypedQuery setParameter(   String name,   Calendar value,   TemporalType temporalType ) Bind an instance of java.util.Calendar to a named parameter. Parameters: name - parameter name value - parameter value temporalType - temporal type Returns: the same query
JPA Doc
29

setParameter(name, value, temporalType)

Method javax.persistence.TypedQuery TypedQuery setParameter(   String name,   Date value,   TemporalType temporalType ) Bind an instance of java.util.Date to a named parameter. Parameters: name - parameter name value - parameter value temporalType - temporal type Returns: the same query instance
Tutorial
29

Step 4: Create an ObjectDB Data Set

Queries against the database are represented in BIRT as data sets. To create the data set: Open ... Points).  Enter a data set name (e.g. Points by X) and click Next. The database in this tutorial contains Point entity objects. We will use a simple JPQL query that retrieves points with x value in
JPA Doc
28

NamedNativeQuery.name

Annotation Element javax.persistence.NamedNativeQuery String name The name used to refer to the query with the EntityManager methods that create query objects. Since: JPA 1.0
JPA Doc
28

NamedQuery.name

Annotation Element javax.persistence.NamedQuery String name (Required) The name used to refer to the query with the EntityManager methods that create query objects. Since: JPA 1.0
JDO Doc
27

javax.jdo.annotations.Query

javax.jdo.annotations Annotation Query Target: Classes Annotation for a named query. Corresponds ... of the fetch plan used by this query The name of the fetch plan used by this query Returns: the fetch plan ... : the query language Default value: "JDOQL" Since: JDO 2.1 String name Name of the query (mandatory) Name