About query

101-110 of 200Refresh
JDO Doc
34

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 ... argument is the value from the query result. Portable result classes do not invoke any persistence
JDO Doc
34

setUnique(unique)

Method javax.jdo.Query void setUnique(   boolean unique ) Specify that only the first result of the query should be returned, rather than a collection. The execute method will return null if the query result size is 0. Parameters: unique - if true, only one element is returned Since: JDO 2.0
JPA Doc
34

unwrap(cls)

Method javax.persistence.Query T unwrap(   Class cls ) Return an object of the specified type to allow access to the provider-specific API. If the provider's query implementation does not support ... to be returned. This is normally either the underlying query implementation class or an interface
JDO Doc
33

Constants.OPTION_QUERY_SQL

Static Field javax.jdo.Constants String OPTION_QUERY_SQL "javax.jdo.query.SQL" Since: JDO 2.1 See Also: PersistenceManagerFactory.supportedOptions()
JDO Doc
33

declareVariables(variables)

Method javax.jdo.Query void declareVariables(   String variables ) Declare the unbound variables to be used in the query. Variables might be used in the filter, and these variables must be declared with their type. The unbound variable declaration is a String containing one or more unbound variable
JDO Doc
33

deletePersistentAll(parameters)

Method javax.jdo.Query long deletePersistentAll(   Map parameters ) Deletes all the instances of the candidate class that pass the filter. Parameters: parameters - for the query Returns: the number of instances of the candidate class that were deleted Since: JDO 2.0 See Also: deletePersistentAll()
JDO Doc
33

deletePersistentAll(parameters)

Method javax.jdo.Query long deletePersistentAll(   Object... parameters ) Deletes all the instances of the candidate class that pass the filter. Parameters: parameters - for the query Returns: the number of instances of the candidate class that were deleted Since: JDO 2.0 See Also: deletePersistentAll()
JDO Doc
33

execute()

Method javax.jdo.Query Object execute() Execute the query and return the filtered Collection. Returns: the filtered Collection. Since: JDO 1.0 See Also: executeWithArray(Object[] parameters)
JDO Doc
33

execute(p1)

Method javax.jdo.Query Object execute(   Object p1 ) Execute the query and return the filtered Collection. Parameters: p1 - the value of the first parameter declared. Returns: the filtered Collection. Since: JDO 1.0 See Also: executeWithArray(Object[] parameters)
JDO Doc
33

execute(p1, p2)

Method javax.jdo.Query Object execute(   Object p1,   Object p2 ) Execute the query and return the filtered Collection. Parameters: p1 - the value of the first parameter declared. p2 - the value of the second parameter declared. Returns: the filtered Collection. Since: JDO 1.0 See Also: executeWithArray(Object[] parameters)