About named queries

21-30 of 200Refresh
JPA Doc
44

setParameter(name, value)

Method javax.persistence.Query Query 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 correspond
JPA Doc
44

setParameter(name, value, temporalType)

Method javax.persistence.Query Query setParameter(   String name,   Date value,   TemporalType ... name value - parameter value temporalType - temporal type Returns: the same query instance Throws: IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or if the value argument is of incorrect type Since: JPA 1.0
JPA Doc
44

setParameter(name, value, temporalType)

Method javax.persistence.Query Query setParameter(   String name,   Calendar value,   TemporalType ... - parameter name value - parameter value temporalType - temporal type Returns: the same query instance Throws: IllegalArgumentException - if the parameter name does not correspond to a parameter of the query
JPA Doc
43

getParameter(name)

Method javax.persistence.Query Parameter getParameter(   String name ) Get the parameter object corresponding to the declared parameter of the given name. This method is not required to be supported for native queries. Parameters: name - parameter name Returns: parameter object Throws
JDO Doc
43

Query.name

Annotation Element javax.jdo.annotations.Query String name Name of the query (mandatory) Returns: the name of the query Since: JDO 2.1
JPA Doc
42

getParameterValue(name)

Method javax.persistence.Query Object getParameterValue(   String name ) Return the value bound to the named parameter. Parameters: name - parameter name Returns: parameter value Throws: IllegalStateException - if the parameter has not been been bound IllegalArgumentException - if the parameter of the specified name does not exist Since: JPA 2.0
JDO Doc
37

javax.jdo.Query

There are two namespaces in queries. Type names have their own namespace that is separate from the namespace for fields ... conflict with parameter names. The result of the query by default is a list of result class instances ... to this Query variableDeclaration - the name of the variable in the outer query to bind the results
JPA Doc
36

JPA Queries

Queries are represented in JPA by the Query and TypedQuery interfaces: The JPA Query API section ... these interfaces to build and run JPQL queries. The TypedQuery interface (or alternatively the older Query interface) is the only neccessary interface for defining and running string based JPQL queries (e.g
Manual
36

DELETE Queries in JPA/JPQL

. Applying changes to the database by calling the commit method. JPQL DELETE queries provide an alternative way for deleting entity objects. Unlike SELECT queries, which are used to retrieve data from the database, DELETE queries do not retrieve data from the database, but when executed, delete specified
JPA Doc
35

javax.persistence.Query

name. This method is not required to be supported for native queries. Parameters: name - parameter ... name does not exist IllegalStateException - if invoked on a native query when the implementation does ... to be supported for criteria queries only. Parameters: name - parameter name type - type Returns: parameter