Internal Website Search
1-50 of 200 resultsQuery 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 for every query | |
Entity object parameter in Explorer parameter Hello, I cannot set an entity object in a parameter for a bulk update in the explorer query execution. The format Entity#001 works well for the parameter in the WHERE clause, but it doesn't work in ... Parameters : a: Status#10002 b: Status#10003 That query | |
javax.persistence.Parameter JPA Interface Parameter Type Parameters : - the type of the parameter Type for query parameter ... how to use Parameter . Public Methods String getName () Return the parameter name, or null if the parameter is not a named parameter or no name has been assigned. Return: parameter name Since: JPA 2.0 | |
Object as parameter results in exception parameters . Maybe EclipseLink defines an implicit parameter to resolve this query, and maybe this is what ObjectDB should do. Using a parameter is also recommended for the primary key. In the current form ... with parameters automatically, whenever possible. Currently, to solve the problem and improve | |
CriteriaBuilder.parameter(paramClass,name) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder ParameterExpression parameter ( Class paramClass, String name ) Create a parameter expression with the given name. Parameters : paramClass - parameter class name - name that can be used to refer to the parameter Return: parameter expression Since: JPA 2.0 | |
Parameter.getParameterType() - JPA Method JPA Method in javax.persistence. Parameter Class getParameterType () Return the Java type of the parameter . Values bound to the parameter must be assignable to this type. This method is required ... language queries and native queries will not be portable. Return: the Java type of the parameter | |
Parameter.getName() - JPA Method JPA Method in javax.persistence. Parameter String getName () Return the parameter name, or null if the parameter is not a named parameter or no name has been assigned. Return: parameter name Since: JPA 2.0 | |
Parameter.getPosition() - JPA Method JPA Method in javax.persistence. Parameter Integer getPosition () Return the parameter position, or null if the parameter is not a positional parameter . Return: position of parameter Since: JPA 2.0 | |
CriteriaBuilder.parameter(paramClass) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder ParameterExpression parameter ( Class paramClass ) Create a parameter expression. Parameters : paramClass - parameter class Return: parameter expression Since: JPA 2.0 | |
javax.persistence.NamedStoredProcedureQuery.parameters JPA Annotation Attribute in javax.persistence.NamedStoredProcedureQuery StoredProcedureParameter [] parameters default {} Information about all parameters of the stored procedure. All parameters must be specified in the order in which they occur in the parameter list of the stored procedure. Since: JPA 2.1 | |
Navigation and Parameters Greetings ObjectDB team, Suppose I pass a List of persistent objects to some query as a parameter , can I navigate to those objects' fields ? E.g.: SELECT x FROM ClassX x WHERE x ... . So if the parameter y is a collection the expression y.b is invalid. support Support | |
Query over the keySet of a map field with collection parameter It is possible to execute a query over a keySet of a map field with comparing to a collection parameter ? Set values = new HashSet (); values.add("c2"); String query = // "SELECT e " + "FROM ... with a parameter which is a collection of strings. SELECT e FROM EntityParent e JOIN e . map key | |
JPA Criteria API Queries, regardless of the way in which the query is built. Parameters in Criteria Queries The following query string represents a JPQL query with a parameter : SELECT c FROM Country c WHERE c.population :p ... ); ParameterExpression p = cb. parameter (Integer.class); q. select (c). where (cb. gt (c | |
Collections in JPQL and Criteria Queries Collections may appear in JPQL queries: as parameters - when collections are assigned as arguments ... that is passed to the query as a parameter . For example: 'English' IN :languages is TRUE if the argument for the languages parameter is a collection that contains 'English' and FALSE if not | |
Database Connection using JPA of the createEntityManagerFactory method takes a map of persistence unit properties as a second parameter : Map properties ... to the server data root path. Connection URL Parameters The following parameters are supported as ... a connection to an empty database (discarding existing content if any) the drop parameter | |
Strings in JPQL and Criteria Queries' , ''. as parameters - when string values are assigned as arguments. as path expressions - in ... (usually a parameter or literal). For example: c.name LIKE '_r%' is TRUE for 'Brazil' and FALSE ... , as shown in the following examples: // Create path and parameter expressions: Expression path | |
Numbers in JPQL and Criteria Queries , -12.5 . as parameters - when numeric values are assigned as arguments. as path expressions - in ... Java numeric object: // Create path and parameter expressions: Expression path = country. get ("population"); Expression param = cb. parameter (Integer.class); // Addition (+) Expression sum1 = cb. sum | |
Literals in JPQL and Criteria Queries ). JPQL literals should be used sparingly as queries that use parameters instead of literals ... parameter values. Literals should only be embedded in JPQL queries when a single constant value | |
Online Backup directory can be specified by setting the target parameter before executing the backup query:   ... is specified as a value for the target parameter it represents a path relative to the ObjectDB home | |
Paths and Types in JPQL and Criteria API identification variables and SELECT result variables. Parameters - when instances of these classes ... with an instance of a user defined class (represented by a variable, parameter or prefix path | |
Database Explorer a query string. In the [ Parameters ] table provide arguments for parameters (if any). An entity | |
javax.persistence.StoredProcedureQuery with the following: The setParameter methods are used to set the values of all required IN and INOUT parameters . It is not required to set the values of stored procedure parameters for which default values ... both the simple case where scalar results are passed back only via INOUT and OUT parameters as well as | |
date parameter not working (probably) in explorer.classIdentifier = '(PR)' and o.created ?1 we try to set the parameter (its a java.util.Date) in the parameters table. None of the following works: 2020-12-01 2020.12.01 {d '2020-12-01'} the parameter ... '. A workaround for previous versions is to use a date literal (embedded in the query) instead of a date parameter . support Support | |
javax.persistence.criteria.CriteriaBuilder ( Expression x) Create an expression that returns the absolute value of its argument. Parameters : x ... an all expression over the subquery results. Parameters : subquery - subquery Return: all expression ... of the given boolean expressions. Parameters : x - boolean expression y - boolean expression Return | |
Bug when using SIZE in combination with date lower parameter cannot be both before and after the date parameter . support Support Hello, to archieve the results the date parameter used in both queries is obviously not the same. For the first query it is 1 year in the future | |
Large query parameter - out of memory. In your test the request is very large (the query parameter arguments) and the response ... with their huge query parameter arguments. Build 2.3.3_06 fixes this issue. Thank you for this report and for the test program. support Support | |
Exception on comparing array fields against parameters in queriesException on comparing array fields against parameters in queries | |
javax.persistence.TypedQuery JPA Interface TypedQuery Type Parameters : - query result type Super Interfaces: Query Interface used to control the execution of typed queries. See Also: Query Parameter Since: JPA 2.0 Chapter 4 ... Since: JPA 2.0 Parameter getParameter (String name) Get the parameter object corresponding | |
javax.persistence.Query StoredProcedureQuery Parameter Since: JPA 1.0 Chapter 4 - JPA Queries (JPQL / Criteria) explains how to use Query ... of results Since: JPA 2.0 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 | |
Database Management Settings of these temporary databases is deleted when using the drop URL connection parameter . The elements | |
Date and Time in JPQL and Criteria Queries Date and time expressions may appear in JPQL queries: as date and time literals - e.g. {d '2011-12-31'} , {t '23:59:59'} . as parameters - when date and time values are assigned as arguments. as path expressions - in navigation to persistent date and time fields. as results of predefined | |
JPA Query Expressions (JPQL / Criteria) / Criteria Variables JPQL / Criteria Parameters JPQL / Criteria Literals Every query expression consists | |
JPA Named Queries A named query is a statically defined query with a predefined unchangeable query string. Using named queries instead of dynamic queries may improve code organization by separating the JPQL query strings from the Java code. It also enforces the use of query parameters | |
WHERE clause (JPQL / Criteria API)); Root c = q. from (Country.class); q. select (c); ParameterExpression p = cb. parameter (Integer | |
Comparison in JPQL and Criteria API. The two following expressions are equivalent ( :min and :max are query parameters ): x BETWEEN :min AND :max x | |
ObjectDB Object Database Features parameters for efficient reuse of one query in multiple executions. Result range settings (first | |
Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression,parameters) - JDO Method; String... parameters ) Add a subquery to this query. A subquery is composed as a Query ... 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 | |
Query.executeWithArray(parameters) - JDO Method JDO Method in javax.jdo.Query Object executeWithArray ( Object... parameters ... of the parameters and matches them against the declared parameters in order. The names of the declared parameters are ignored. The type of the declared parameters must match the type of the passed | |
Query.declareParameters(parameters) - JDO Method JDO Method in 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 | |
Query.executeWithMap(parameters) - JDO Method JDO Method in 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 | |
Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression,parameters) - JDO Method; Map parameters ) Add a subquery to this query. The Map version of the method treats the key of each map entry as the name of the 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 | |
Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression,parameter) - JDO Method; String parameter ) Add a subquery to this query. The String version of the method binds the named expression to the parameter implictly or explicitly declared in the subquery. Parameters ... parameter - the expression from the outer query to bind the parameter in the subquery | |
Query.deletePersistentAll(parameters) - JDO Method JDO Method in javax.jdo.Query long deletePersistentAll ( Map parameters ) Deletes all the instances of the candidate class that pass the filter. Parameters : parameters - for the query Return: the number of instances of the candidate class that were deleted See Also: deletePersistentAll () Since: JDO 2.0 | |
Query.deletePersistentAll(parameters) - JDO Method JDO Method in javax.jdo.Query long deletePersistentAll ( Object... parameters ) Deletes all the instances of the candidate class that pass the filter. Parameters : parameters - for the query Return: the number of instances of the candidate class that were deleted See Also: deletePersistentAll () Since: JDO 2.0 | |
[ODB1] Chapter 7 - JDOQL Queries can include other optional components, such as parameters , variables and import and order expressions ... all the elements that can be used in a JDOQL query filter, except for parameters and variables ... the next section ( section 7.3 ), parameters could be used instead of constant literals to make queries | |
[ODB1] Chapter 8 - ObjectDB Server. You can use the –conf command line parameter to specify the location of your server configuration file ... to use the –conf command line parameter , because ObjectDB will automatically look for a server/server.xml file if the –conf parameter is not used. Also, if you do not use the –conf parameter and do not | |
[ODB1] Chapter 6 - Persistent Objects IDs very useful for representing objects in web applications (in which parameters are represented by strings). If getObjectID( ... ) is called with a transient parameter , it returns null | |
javax.jdo.PersistenceManager the listener instance to the list of lifecycle event listeners. The classes parameter identifies all of the classes of interest. If the classes parameter is specified as null , events for all persistent ... event for which it implements the corresponding listenerInstance interface. Parameters : listener | |
javax.jdo.Query of instances, and the filter. There are optional elements: parameter declarations, variable declarations ... declareParameters corresponds to formal parameters of a method declareVariables corresponds to local ... , variables and parameters . The method setClass introduces the name of the candidate class in the type | |
[ODB1] Chapter 9 - ObjectDB Explorer the candidate collection of the query. Optional JDOQL components, such as filter, parameters , variables |