Home » Search

About named queries

21-30 of 200Refresh
JPA Doc
45

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
45

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
45

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
44

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
44

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
43

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
Manual
43

Comparison in JPQL and Criteria API

Most JPQL queries use at least one comparison operator in their WHERE clause. Comparison Operators ... , the JDO Query Language). ObjectDB supports both forms. Besides the different notation ... can be compared by using any comparison operator. Equality operators (=, <>, ==, !=) on strings in queries
Manual
42

JPA Query Expressions (JPQL / Criteria)

Query expressions are the foundations on which JPQL and criteria queries are built. Every query ... of JPQL / Criteria query expressions. Atomic Expressions The atomic query expressions are: JPQL / Criteria Variables JPQL / Criteria Parameters JPQL / Criteria Literals Every query expression consists
Manual
42

Paths and Types in JPQL and Criteria API

through a NULL value The following query retrieves country names with their capital city names: SELECT ... , string, date). Simple type values are more useful in queries. They have special operators ... .capital.name is a nested path expression that continues from the Capital entity object to its name
JPA Doc
42

Criteria Query From Elements

The interfaces in this group are in use for setting a criteria query FROM clause. Criteria Query Variables The FROM clause in JPA queries (as in SQL) defines the query variables. Query variables are represented in criteria queries by descendant interfaces of the From interface: Range variables