ObjectDB Database Search
1-50 of 95 resultsSELECT clause (JPQL / Criteria API) query = em. createQuery ("SELECT c FROM Country c", Country.class); List results = query. getResultList (); Because the results are managed entities they have all the support that JPA provides ... for deletion , and so on. Query results are not limited to entities. You can use almost any valid JPQL | |
LEFT JOIN FETCH over empty embedded collection returns no results of the first collection, the result of the overall query is an empty set. To use the example from ... include the full nested fetch, it fails, returning an empty result list: SELECT c FROM C c LEFT JOIN ... of the query). The following query returned results : SELECT c FROM C c LEFT JOIN FETCH c.bList.aList | |
Unexpected COUNT ResultsUnexpected COUNT Results | |
Setting and Tuning of JPA Queries getSingleResult . Result range (setFirstResult, setMaxResults) The setFirstResult and setMaxResults methods let you define a result window, which is a portion of a large query result list. The setFirstResult method specifies the starting point of the result window by defining how many results to skip from | |
Database Management Settings can improve performance by reducing file fragmentation that can result from frequent resize operations ... sync= "false" results in much faster database writes, but sync="true" is safer for production ... for the two query cache mechanisms that ObjectDB manages: The results attribute specifies the size | |
jakarta.persistence.EntityManager must also be flushed before execution of any query whose result set would be affected by unflushed modifications ... ( ConnectionFunction function ) Call the given function and return its result using the database connection ... result Returns: the new query instance. Throws: IllegalArgumentException - if a query has not | |
JPA Criteria Query Expressions interfaces is structured as follows: Selection # Base interface for result items └─ Expression # Base ... ;to allow using expression as query results . A boolean expression used to define restrictions in | |
Apache License, Version 2.0, January 2004 resulting from mechanical transformation or translation of a Source form, including but not limited ... , incidental, or consequential damages of any character arising as a result of this License or | |
JPA Entity Fields this case, the employees field is populated with the results of the following query: SELECT e FROM ... results by specifying the key field with the @MapKey annotation: @Entity public class Department | |
Database Transaction Replayer and recording files and attempts to apply all the recorded operations. The resulting database file ... and applies all operations up to transaction 1000, the resulting file is named 1000.odb . | |
JPA Named Queries Annotations instances of the following interface: Represents a named query, including its name, result type, and hints. Retrieve it by result type from EntityManagerFactory.getNamedQueries , and use it to get a TypedQuery instance via EntityManager.createQuery . | |
jakarta.persistence.EntityManagerFactory query definition. This includes configuration information such as max results , hints, flush mode, lock mode, result set mapping information, and information about stored procedure parameters ... function returns without throwing an exception, the result of the function is returned. If the given | |
jakarta.persistence.ConnectionFunction connection to compute a result . The connection is usually a JDBC connection. See Also: ConnectionConsumer ... Instance Methods T apply ( C connection ) Compute a result using the given connection. Parameters: connection - the connection to use Returns: the result . Throws: Exception - if a problem occurs calling | |
jakarta.persistence.EntityResult the SELECT clause of a SQL query to an entity result . If this annotation is used, the SQL statement ... columns to related entities. The results obtained when insufficient data is available are undefined ... The class of the result . Since: Jakarta Persistence (JPA) 1.0 LockModeType lockMode The lock mode obtained | |
jakarta.persistence.criteria.AbstractQuery.getResultType() Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery Class getResultType() Return the result type of the query or subquery. If a result type was specified as an argument ... the createTupleQuery method, the result type is Tuple . Otherwise, the result type is Object . Returns: result type. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.AbstractQuery.distinct(boolean) distinct ( boolean distinct ) Specify whether duplicate query results are eliminated. A true ... . If distinct has not been specified, duplicate results must be retained. Parameters: distinct - boolean value specifying whether duplicate results must be eliminated from the query result or | |
jakarta.persistence.LockModeType, and the database locking failure results in transaction-level rollback, the provider must throw ... . When the lock cannot be obtained, and the database locking failure results in only statement-level | |
jakarta.persistence.ColumnResult the name of a column in the SELECT list — i.e., column alias, if applicable. Scalar result types can be included in the query result by specifying this annotation in the metadata. Example: Query q = em | |
Explorer in 2.3 to do ad-hoc JPQL queries and navigate through the results and even make small changes to primitive ... the Results either as a table or tree. 4. It would be terrific if the Database tab had lots ... with max results limit. Viewing all the objects of a class without a query and max result limit is not | |
jakarta.persistence.criteria.CriteriaBuilder.unionAll(CriteriaSelect,CriteriaSelect) which is the union of the given queries, without elimination of duplicate results . Returns: a new criteria query which returns the union of the results of the given queries. Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.criteria.CriteriaBuilder.intersectAll(CriteriaSelect,CriteriaSelect) which is the intersection of the given queries, without elimination of duplicate results . Returns: a new criteria query which returns the intersection of the results of the given queries. Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.criteria.AbstractQuery.isDistinct() Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery boolean isDistinct() Return whether duplicate query results must be eliminated or retained. Returns: boolean indicating whether duplicate query results must be eliminated. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.createQuery(Class) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaQuery createQuery ( Class resultClass ) Create a CriteriaQuery object with the given result type. Parameters: resultClass - type of the query result Returns: criteria query object. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.construct(Class,Selection...) that is applied to the results of the query execution. If the constructor is for an entity class, the resulting | |
jakarta.persistence.TypedQuery.setFirstResult(int) Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery setFirstResult ( int startPosition ) Set the position of the first result to retrieve. Parameters: startPosition - position of the first result , numbered from 0 Returns: the same query instance. Throws | |
jakarta.persistence.ForeignKey.PROVIDER_DEFAULT selects the default behavior of the provider, which may or may not result in | |
jakarta.persistence.FlushModeType of all entities in the persistence context which could potentially affect the result of the query | |
jakarta.persistence.LockTimeoutException the persistence provider when a pessimistic locking conflict occurs that does not result in | |
jakarta.persistence.ConstructorResult constructor results will be in either the new or detached state, depending on whether a primary key | |
Mismatch client-server protocol prefix", username); TrackerUser result = null; result = (TrackerUser) q.getSingleResult(); em.detach( result ); return result ;   | |
Problem with distinct select, order by and equivalent alias/attribute path when ordering the results of some projection when the order by expression is different (though logically ... results (error 745) (position 85) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:728 ... expression 's_location' for distinct results at com.objectdb.o.MSG.d(MSG.java:62) at com.objectdb.o | |
General Performance Issues Illustrated with a Specific Method of Health Sri Lanka You should be able to get the results in milliseconds rather than 3 seconds ... to get the results in milliseconds rather than 3 seconds" was that the execution time should be much faster ... and post the results : support Support In addition, you should try (for diagnosis): The same | |
jakarta.persistence.criteria.CriteriaBuilder.union(CriteriaSelect,CriteriaSelect) of the results of the given queries. Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.criteria.CriteriaBuilder.intersect(CriteriaSelect,CriteriaSelect) the intersection of the results of the given queries. Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.criteria.CollectionJoin.on(Expression) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CollectionJoin CollectionJoin on ( Expression restriction ) Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any | |
jakarta.persistence.criteria.AbstractQuery.getRoots() Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery Set getRoots() Return the query roots. These are the roots that are defined for the CriteriaQuery or Subquery itself, including any subquery roots defined as a result of correlation. Returns an empty set if no roots | |
jakarta.persistence.criteria.CollectionJoin.on(Predicate...) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CollectionJoin CollectionJoin on ( Predicate... restrictions ) Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any | |
jakarta.persistence.criteria.CommonAbstractCriteria.subquery(Class) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CommonAbstractCriteria Subquery subquery ( Class type ) Create a subquery of the query. Parameters: type - the subquery result type Returns: subquery. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CommonAbstractCriteria.subquery(EntityType) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CommonAbstractCriteria Subquery subquery ( EntityType type ) Create a subquery of the query. Parameters: type - the subquery result type Returns: subquery. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.createTupleQuery() Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaQuery createTupleQuery() Create a CriteriaQuery object that returns a tuple of objects as its result . Returns: criteria query object. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.sumAsLong(Expression) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Expression sumAsLong ( Expression x ) Create an aggregate expression applying the sum operation to an Integer-valued expression, returning a Long result . Parameters: x - expression representing input | |
jakarta.persistence.criteria.CriteriaBuilder.sumAsDouble(Expression) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Expression sumAsDouble ( Expression x ) Create an aggregate expression applying the sum operation to a Float-valued expression, returning a Double result . Parameters: x - expression representing input | |
jakarta.persistence.ParameterMode.REF_CURSOR Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.ParameterMode REF_CURSOR Stored procedure reference cursor parameter. Some databases use REF_CURSOR parameters to return result sets from stored procedures. Since: Jakarta Persistence (JPA) 1.0 | |
Online backup problem; EntityManager em = null; String result = "OK"; try { emf = Persistence ... (Exception e) { e.printStackTrace(); result = "FAIL"; } finally {   ... database without any problems. The code runs, result is "OK", but no files are created in ObjectDB | |
JPA Web App Tutorial - Maven Project, you may download and run the result application as a Maven project: JPA Web App - Maven Project (6KB | |
Step 4: Add a Controller Class)); // Prepare the result view (guest.jsp): return new ModelAndView("guest.jsp", "guestDao", guestDao | |
combined index not used.hummingbird.Action[endDate] locating all the Action (a) instances. [Step 1b] Filter the results of step 1a retaining only results that satisfy: (a.endDate=:1). [Step 1c] Retrieve fields in Action (a) instances. [Step 1d] Filter the results of step 1c retaining only results that satisfy: (a.state=3). [Step 1e | |
[ODB1] Chapter 6 - Persistent Objects. Objects stored as a result of persistence by reachability can be embedded. By default, system types ... , sophisticated queries. The results can also be sorted by specified order expressions. Chapter 7 is devoted | |
JQL-Update Queries fails with activated L2-Cache-Query and fetching Entities afterwards from database. Expected result : Getting changed Entities from database - Actual result : No changes are visble. Scenario 2 : Disabled L2 Cache, updating elements ... . Expected result : Getting changed Entities from database - Actual result : Everything ok | |
Bug when using SIZE in combination with date lower parameter.dateCreated = :date I get the correct result (1 Tag). You find a test case at . Please start the Tester.main(), both queries should return the same results . I use the latest ObjectDB 2.7.2_05 ... Markus Ritter Can you confirm that the query that returns 0 should actually return no results as |