ObjectDB Database Search
1-50 of 200 resultsJPA 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 | |
Criteria Query Expressions The following interfaces are in use in representing general expressions in criteria queries: See the Query Expressions section for more details and examples. | |
How to use regular expressions in Criteria Builder does not support regular expressions in queries, so currently you cannot use regular expressions in ... so you can use regular expressions in queries, just use string-based JPQL ("e.g. e.field.matches(regexp)") instead of criteria queries. support Support ... I'm struggling to understand how to use the matches method on the String class when using regular | |
Strings in JPQL and Criteria Queries' , ''. as parameters - when string values are assigned as arguments. as path expressions - in ... is always the string to check for a match (usually a path expression ) and the right operand is always the pattern ... ;is evaluated to TRUE . '100' LIKE '%\%' ESCAPE '\' is evaluated to FALSE . In the expressions | |
FROM clause (JPQL / Criteria API) The JOIN FETCH expression is not a regular JOIN and it does not define a JOIN variable. Its only purpose ... at the WHERE clause level by using a type expression . For example, in the following query, c iterates ... variable that serves as a root and additional join variables that are bound to path expressions | |
Numbers in JPQL and Criteria Queries , -12.5 . as parameters - when numeric values are assigned as arguments. as path expressions - in navigation to persistent numeric fields. as aggregate expressions - e.g. COUNT. as collection ... value is numeric, e.g. LOCATE, LENGTH. as composite arithmetic expressions that use operators | |
Paths and Types in JPQL and Criteria API classes) are represented in JPQL by the following types of expressions : Variables - FROM ... are assigned as arguments. Path expressions that navigate from one object to another. Instances of user ... . But more often they are used in JPQL path expressions that navigate to values of simple types (number, boolean | |
ORDER BY clause (JPQL / Criteria API) Expressions The following query returns names of countries whose population size ... . Then the SELECT clause builds the results by evaluating the result expressions . Finally the results are ordered by evaluation of the ORDER BY expressions . Only expressions that are derived directly from | |
SELECT clause (JPQL / Criteria API) the ability to use almost any valid JPQL expression in SELECT clauses. Specifying the required query ... the "SELECT *" expression (which is commonly used in SQL). Projection of Path Expressions JPQL ... path expressions , such as c.name , in query results is referred to as projection. The field values | |
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 ... path expressions - in navigation to persistent date and time fields. as results of predefined JPQL current date and time functions. Current Date and Time JPA defines special JPQL expressions | |
Literals in JPQL and Criteria Queries expressions . Ordinary Literals The main method, literal , takes a Java object and returns a literal expression . For example: // Boolean literals: Expression t = cb. literal (true); Expression f = cb. literal (Boolean.FALSE); // Numeric literals: Expression i1 = cb. literal (1); Expression i2 = cb | |
GROUP BY and HAVING clauses which returns the first letters as result. ObjectDB is very flexible in allowing JPQL expressions anywhere in ... . Only identification variables and path expressions are currently supported in the GROUP BY clause by all the JPA ... that are in use by countries in that group. The DISTINCT keyword in a COUNT aggregate expression , as | |
JPA Criteria API Queries expression . CriteriaQuery TypedQuery TypedQuery TypedQuery query = em. createQuery (q); List results ... criteria expressions . Running this query requires setting the parameter: TypedQuery query = em. createQuery ... queries. Criteria Query Expressions JPA query clauses are composed of expressions . Because JPQL | |
Logical Operators in JPQL and Criteria API expressions out of simple JPQL boolean expressions . Logical Operators ObjectDB supports 2 sets ... part of its JDO support. Criteria Query Logical Operators Boolean Expressions and Predicates Boolean expressions are represented in criteria queries by Expression and descendant interfaces. For example | |
InterfaceRef jakarta.persistence.criteria.Expression JPA Interface Expression Type Parameters: - the type of the expression Super Interfaces: Selection , TupleElement Type for query expressions . Since: JPA 2.0 The JPA Query Expressions (JPQL / Criteria) article explains how to use Expression . Public Methods Expression as (Class type) Perform | |
Collections in JPQL and Criteria Queries. as path expressions - in navigation to persistent collection fields. IS [NOT] EMPTY ... are treated as synonyms. Criteria Query Collection Expressions JPQL collection operators and functions (which are described above) are available also as JPA criteria query expressions | |
CriteriaBuilder.concat(expressions) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression concat ( List expressions ) Create an expression for string concatenation. If the given list of expressions is empty, returns an expression equivalent to literal("") . Parameters: expressions - string | |
Expression | |
Expression | |
CriteriaBuilder.asc(expression) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Order asc ( Expression expression ) Create an ordering by the ascending value of the expression . Parameters: expression - expression used to define the ordering Return: ascending ordering corresponding to the expression Since: JPA 2.0 | |
CriteriaBuilder.desc(expression) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Order desc ( Expression expression ) Create an ordering by the descending value of the expression . Parameters: expression - expression used to define the ordering Return: descending ordering corresponding to the expression Since: JPA 2.0 | |
CriteriaBuilder.asc(expression,nullPrecedence) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Order asc ( Expression expression , Nulls nullPrecedence ) Create an ordering by the ascending value of the expression . Parameters: expression - expression used to define the ordering | |
CriteriaBuilder.desc(expression,nullPrecedence) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Order desc ( Expression expression , Nulls nullPrecedence ) Create an ordering by the descending value of the expression . Parameters: expression - expression used to define the ordering | |
JPA Annotations for Value Generation Automatically generated values are mainly useful for primary key fields, but are supported by ObjectDB also for regular (non primary key) persistent fields. At the field level, the @GeneratedValue with an optional GenerationType strategy is specified: The @GeneratedValue annotation | |
SpringBoot-Point The architecture of this application follows regular SprintBoot principles, but minimized, to match | |
Can I use ObjectDB with languages other than Java?, JRuby for Ruby and Quercus for PHP). Future direct support of regular Python, JavaScript, C# and other languages is planned. | |
CriteriaBuilder.selectCase(expression) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaBuilder.SimpleCase selectCase ( Expression expression ) Create a simple case expression . Parameters: expression - to be tested against the case conditions Return: simple case expression Since: JPA 2.0 | |
Expression | |
Expression | |
Expression | |
Expression | |
CriteriaBuilder.in(expression) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaBuilder.In in ( Expression expression ) Create predicate to test whether given expression is contained in a list of values. Parameters: expression - to be tested against list of values Return: in predicate Since: JPA 2.0 | |
Subquery.select(expression) - JPA Method JPA Method in jakarta.persistence.criteria.Subquery Subquery select ( Expression expression ) Specify the item that is to be returned as the subquery result. Replaces the previously specified selection, if any. Parameters: expression - expression specifying the item | |
Expression | |
Expression | |
InterfaceRef jakarta.persistence.criteria.CriteriaBuilder JPA Interface CriteriaBuilder Used to construct criteria queries, compound selections, expressions , predicates, orderings. Note that Predicate is used instead of Expression in this API in order ... Criteria API Queries article explains how to use CriteriaBuilder . Public Methods Expression abs | |
Expression | |
Expression | |
Expression | |
Expression | |
WHERE clause (JPQL / Criteria API) to function as a filter. The boolean expression in the WHERE clause, which is also known as the WHERE predicate, defines which objects to accept. Only Country objects for which the predicate expression ... Expressions in WHERE The above queries demonstrate only a small part of the full capabilities | |
Criteria Query Selection and Results of Expression , any criteria expression can be used as the SELECT clause content. Multiple selection expressions can be represented by CompoundSelection , which is itself a subinterface ... interface is a thin wrapper around Expression , which adds order direction - either ascending (ASC) or | |
Comparison in JPQL and Criteria API which NULL represents an unknown value and expressions that include an unknown value are evaluated as ... IS NOT NULL The expressions above are equivalent (respectively) to the following non standard JPQL (but standard Java and JDOQL) expressions : c.president == null c.president != null Comparable Data | |
ObjectDB Object Database Features JOIN and JOIN FETCH ). WHERE (with both JPQL and JDOQL expressions ). GROUP BY (including HAVING ... Expressions Path navigation expressions using the dot (.) operator. Comparison operators ( | |
Setting and Tuning of JPA Queries number ( 0 for the first page), the following expression retrieves the results for a specified page ... (); These methods can be invoked in a single expression with getResultList since the setter methods | |
Query Parameters in JPA), so invocation of getSingleResult can be chained to the same expression . Named parameters can be easily ... as is. Instead of a simple country name, a malicious user may provide JPQL expressions that change | |
Eclipse Public License - v 1.0 disclaims on behalf of all Contributors all warranties and conditions, express and implied, including ... , THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR | |
UPDATE SET Queries in JPA/JPQL supported. The SET clause defines one or more field update expressions (using the range variable name - if defined). Multiple field update expressions , separated by commas, are also allowed | |
Apache License, Version 2.0, January 2004 CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or | |
ObjectDB License Agreement [ver. 2.0.4] IS" without a warranty of any kind. All express or implied representations and warranties, including any |