Internal Website Search

1-10 of 200 resultsRefresh

Query Parameters in JPA

Query parameters enable the definition of reusable queries. Such queries can be executed with different parameter values to retrieve different results. Running the same query multiple times with different parameter values (arguments) is more efficient than using a new query string

javax.persistence.Parameter

Interface Parameter<T> parameter objects. Since: Parameter/getName" title="Method of javax.persistence.Parameter">getName

parameter(paramClass, name)

">ParameterExpression<T> parameter(  Class<T> paramClass,   String name) Create a parameter expression with the given name. parameters"> Parameters:

getPosition()

Parameter" title="Interface in javax.persistence">javax.persistence.ParameterInteger getPosition() Return the parameter position, or null if the parameter is not a positional parameter

addSubquery(sub, variableDeclaration, candidateCollectionExpression, parameters)

;String candidateCollectionExpression,   String... parameters) parameter instance is unmodified as a result of the addSubquery or subsequent execution of the outer ... the candidate class, filter, parameter declarations, variable declarations, imports, ordering

executeWithArray(parameters)

.QueryObject executeWithArray(  Object... parameters)Collection . The execution of the query obtains the values of the parameters and matches them against the declared parameters in order. The names of the declared parameters are ignored

declareParameters(parameters)

.Queryvoid declareParameters(  String parameters) Declare the list of parameters query execution. The parameter declaration is a String containing one or more query parameter declarations

executeWithMap(parameters)

.QueryObject executeWithMap(  Map parameters) . The query is executed with the parameters set by the Map values. Each Map entry consists of a key which is the name of the parameter in

addSubquery(sub, variableDeclaration, candidateCollectionExpression, parameters)

;String candidateCollectionExpression,   Map parameters) parameter in the subquery, with or without the leading ... is the empty String for either the parameter or the value of the String[], or for any map key or value

addSubquery(sub, variableDeclaration, candidateCollectionExpression, parameter)

;String candidateCollectionExpression,   String parameter) parameter implictly or explicitly declared in the subquery. parameters"> Parameters: sub