Home » Search

About named queries

61-70 of 200Refresh
JDO Doc
23

setFilter(filter)

Method javax.jdo.Query void setFilter(   String filter ) Set the filter for the query. The filter ... of the Query; and for all variables there exists a value for which the filter expression evaluates to true ... ) method. Identifiers in the expression are considered to be in the name space of the specified class
JDO Doc
23

addSubquery(sub, variableDeclaration, candidateCollectionExpression)

Method javax.jdo.Query void addSubquery(   Query sub,   String variableDeclaration,   String candidateCollectionExpression ) Add a subquery to this query. Parameters: sub - the subquery to add to this Query variableDeclaration - the name of the variable in the outer query to bind the results
JDO Doc
23

setResultClass(cls)

Method javax.jdo.Query void setResultClass(   Class cls ) Specify the type of object in ... or set to null, the result class defaults to the candidate class of the query. If the result ... put methods or fields. Each result expression must match one of: a public field that matches the name
JDO Doc
22

Queries.value

Annotation Element javax.jdo.annotations.Queries Query[] value The named queries Returns: The named queries Since: JDO 2.1
JPA Doc
22

setHint(hintName, value)

Method javax.persistence.Query Query setHint(   String hintName,   Object value ) Set a query property or hint. The hints elements may be used to specify query properties and hints. Properties ... , this hint may or may not be observed. Parameters: hintName - name of the property or hint value - value
JDO Doc
22

declareParameters(parameters)

Method javax.jdo.Query void declareParameters(   String parameters ) Declare the list of parameters query execution. The parameter declaration is a String containing one or more query parameter declarations separated with commas. Each parameter named in the parameter declaration must be bound
JDO Doc
22

executeWithArray(parameters)

Method javax.jdo.Query Object executeWithArray(   Object... parameters ) Execute the query and return the filtered 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
JDO Doc
22

executeWithMap(parameters)

Method javax.jdo.Query Object executeWithMap(   Map parameters ) Execute the query and return the filtered Collection. 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 the declareParameters method, and a value
JDO Doc
21

Query.fetchPlan

Annotation Element javax.jdo.annotations.Query String fetchPlan The name of the fetch plan used by this query Returns: the fetch plan Default value: "" Since: JDO 2.1
JDO Doc
21

declareImports(imports)

Method javax.jdo.Query void declareImports(   String imports ) Set the import statements to be used to identify the fully qualified name of variables or parameters. Parameters and unbound variables might come from a different class from the candidate class, and the names need to be declared in