ObjectDB Database Search
51-100 of 200 resultsCache configuration of database file pages, query programs, query results Are there some possibilities to configure following caches in order to keep cache data for only some important entity types and for the entire life cycle of the EntityManagerFactory. Cache of database file pages. Cache of query programs. Cache of query execution results . btc_es BTC EmbeddedSystems | |
Query results are not up to date for entities, not primitives Santos This could be the result of getting query results from the cache. There is no difference between ... that updates by queries bypass the cache and may result in not being seen by queries : "Updating ... When using the CriteriaBuilder to query , the loaded list are not refreshed according to the latest | |
Query only works correctly when debug printing results on pc) the query results are only fully read back when debug printing the result contents before ... RequirementLevelEntity l", RequirementLevelEntity.class); List results = query .getResultList(); //Start of debug ... is: query , debug printing query results , then closing entityManager instance. Solutions i tried: Putting | |
no query resultwe are using this query select a from Action a where (a.state = 2 or a.state = 3) and a.type = 0 and a.transferred = 0 and see a very strange query plan, an index scan for an entry that is not used at all in the query , and according to that plan there is no result : Query plan 1/2 description | |
java.lang.ClassCastException in query results the "for (Stadium result : results )" line TypedQuery query = em.createQuery( "SELECT Name, Capacity, City FROM Stadium s", Stadium.class); List results = query .getResultList(); for (Stadium result : results ) { System.out.println("Name: " + result .Name + ", Capacity: " + result .Capacity + ", City: " + result | |
wrong query result Hi we have a problem with queries , database is returning wrong results . These are the queries we run from ObjectDB explorer. Query 1 - SELECT MAX(e.generisaniID) FROM AktImpl e – returns string ... , Attached are a db repair log and a screenshot of queries and results . We will upload the DB through private | |
Criteria Query results in a NoResultException instead of returning object.RuntimeException: com.objectdb.o._NoResultException: No matching results for a unique query at org.jboss.seam ... ._NoResultException: No matching results for a unique query at com.objectdb.o.JPE.g(JPE.java:100 ... ()])); return em.createQuery(criteria).getSingleResult(); which evaluates to the query : SELECT $1 FROM | |
Query with FETCH JOIN returns multiple results instead of one. with two services, it's returned twice (both results contain the same instance). I believe that such query ... specified on the right-hand side of the join operation are not returned in the query result or ... ") .setParameter("demand", demand).getResultList(); I want this query to find one and only Demand object | |
@ElementCollection query returning extra result per element in collection. The issue is that, I'm getting repeated results of the owning entity of an '@ElementCollection ... ($1.name) LIKE :p1) AND (($1.conditionOne=:p2))) Got: 1 results - correct   ... .branches.branch=:p2) OR ($1.conditionOne=:p3)))) Only expected one result , but got: 2   | |
URGENCY, or in query does not report any objects on first operand having no results hgzpincher Hans-Georg Zwicker Checked with 2.8.9 and both queries return 1421 results , so hopefully ... this query does not return any objects even there are lot of objects to return for the second ... if the query is changed to select a from Action a where (a.state = 3 or a.state = 2) and a.type = 0 | |
JPA-Query does not lead to any result Hi, we have a database with a Entitiy inside which we want to fetch with a query . Normally that works without a problem, but in case of this database that query does not have any results . Can anyome ... are two databases, one where the query has a result and one where the query does not has any results | |
Empty query results after JAR creation Hi, I struggle with a strange issue. I've embedded ObjectDB in a small application to query cases ... -Jar xyz.jar", I get either empty results or on some cases a "NoResultException" which appears ... is working but once the Jar File is created and moved to a different folder, the query does not | |
Fields in objects not populated in query result..getResultList(); none of the Folder objects has its fields populated. Running the same query from the Explorer gives the results as expected. Any ideas what I'm doing wrong? This code had worked | |
String Contains Query Result - Possible? Swim Lessons 10-Pack I would like to know if it is possible to have a query return | |
Case.when(condition,result) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder$Case CriteriaBuilder.Case when ( Expression condition, R result ) Add a when/then clause to the case expression. Parameters: condition - "when" condition result - "then" result value Return: general case expression Since: JPA 2.0 | |
Case.otherwise(result) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder$Case Expression otherwise ( Expression result ) Add an "else" clause to the case expression. Parameters: result - "else" result expression Return: expression Since: JPA 2.0 | |
Case.otherwise(result) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder$Case Expression otherwise ( R result ) Add an "else" clause to the case expression. Parameters: result - "else" result Return: expression Since: JPA 2.0 | |
Case.when(condition,result) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder$Case CriteriaBuilder.Case when ( Expression condition, Expression result ) Add a when/then clause to the case expression. Parameters: condition - "when" condition result - "then" result expression Return: general case expression Since: JPA 2.0 | |
General Settings and Logging, such as query results that contain millions of objects. The element specifies temporary file settings ... , which specifies when network sockets become obsolete as a result of inactivity. The value is the timeout | |
Query.getFirstResult() - JPA Method JPA Method in jakarta.persistence. Query int getFirstResult () The position of the first result the query object was set to retrieve. Returns 0 if setFirstResult was not applied to the query object. Return: position of the first result Since: JPA 2.0 The Running JPA Queries article explains how to use getFirstResult . | |
Query.setFirstResult(startPosition) - JPA Method JPA Method in jakarta.persistence. Query Query setFirstResult ( int startPosition ) Set the position of the first result to retrieve. Parameters: startPosition - position of the first result , numbered from 0 Return: the same query instance Throws: IllegalArgumentException - if the argument is negative Since: JPA 1.0 | |
Query.getMaxResults() - JPA Method JPA Method in jakarta.persistence. Query int getMaxResults () The maximum number of results the query object was set to retrieve. Returns Integer if setMaxResults was not applied to the query object. Return: maximum number of results Since: JPA 2.0 | |
Query.setMaxResults(maxResult) - JPA Method JPA Method in jakarta.persistence. Query Query setMaxResults ( int maxResult ) Set the maximum number of results to retrieve. Parameters: maxResult - maximum number of results to retrieve Return: the same query instance Throws: IllegalArgumentException - if the argument is negative Since: JPA 1.0 | |
InterfaceRef jakarta.persistence.StoredProcedureQuery result corresponds to result set Throws: QueryTimeoutException - if the query execution exceeds ... () The position of the first result the query object was set to retrieve. Returns 0 if setFirstResult was not applied to the query object. Return: position of the first result Inherited from: Query Since: JPA 2.0 | |
InterfaceRef jakarta.persistence.TypedQuery JPA Interface TypedQuery Type Parameters: - query result type Super Interfaces: Query Interface ... Since: JPA 3.2 int getFirstResult () The position of the first result the query object was set to retrieve ... result Inherited from: Query Since: JPA 2.0 The Running JPA Queries article explains how to use | |
InterfaceRef jakarta.persistence.EntityManager context must also be flushed before execution of any query whose result set would be affected by ... of a query defined in metadata resultClass - the type of the query result Return: the new query instance ... string is found to be invalid or if the query result is found to not be assignable to the specified | |
Query execution creates a wrong result Hello, we analysed an unexpected behavior and find out that the result of an Query are wrong ... returns an expected result (one Entity). The second Query is the first Query with an additional ... is fixed with Version 2.6.6. But we report the BUG, because a wrong Query result | |
NoResultException: No matching results for a unique query Adam The stack trace indicates a normal situation of executing a query that has no results ... I am very often getting a "com.objectdb.o._NoResultException: No matching results for a unique query " when modifying my already persisted entities within a transaction. I cannot replicate | |
query only reports 1 result 2.7.2_01 suddenly some queries do only have 1 result even there are more results (you can use the database that you have from #308): this query gives 1 result even there are a lot ... results , a number of them fit with the complete condition hgzwicker Hans-Georg Zwicker This is fixed now | |
InterfaceRef jakarta.persistence.criteria.CriteriaBuilder to a constructor. This method is used to specify a constructor that is applied to the results of the query ... with the given result type. Parameters: resultClass - type of the query result Return: criteria query object ... of objects as its result . Return: criteria query object Since: JPA 2.0 Expression currentDate | |
InterfaceRef jakarta.persistence.criteria.CriteriaQuery whether duplicate query results are eliminated. A true value will cause duplicates to be eliminated ... must be eliminated from the query result or whether they must be retained Return: the modified query . Since: JPA 2 ... () Return the result type of the query or subquery. If a result type was specified as an argument | |
Query.setLockMode(lockMode) - JPA Method JPA Method in jakarta.persistence. Query Query setLockMode ( LockModeType lockMode ) Set the lock mode type to be used for the query execution. Parameters: lockMode - lock mode Return: the same query instance Throws: IllegalStateException - if the query is found not | |
Query.getLockMode() - JPA Method JPA Method in jakarta.persistence. Query LockModeType getLockMode () Get the current lock mode for the query . Returns null if a lock mode has not been set on the query object. Return: lock mode Throws: IllegalStateException - if the query is found not to be a Jakarta Persistence query language | |
Query.executeUpdate() - JPA Method JPA Method in jakarta.persistence. Query int executeUpdate () Execute an update or delete statement ... for a Jakarta Persistence query language SELECT statement or for a criteria query ... QueryTimeoutException - if the statement execution exceeds the query timeout value set | |
Query.getParameter(name,type) - JPA Method JPA Method in jakarta.persistence. Query Parameter getParameter ( String name ... of the given name and type. This method is required to be supported for criteria queries ... IllegalStateException - if invoked on a native query or Jakarta Persistence query language query when the implementation does not support this use Since: JPA 2.0 | |
Query.setFlushMode(flushMode) - JPA Method JPA Method in jakarta.persistence. Query Query setFlushMode ( FlushModeType flushMode ) Set the flush mode type to be used for the query execution. The flush mode type applies to the query regardless of the flush mode type in use for the entity manager. Parameters: flushMode | |
Query.getParameters() - JPA Method JPA Method in jakarta.persistence. Query Set getParameters () Get the parameter objects corresponding to the declared parameters of the query . Returns empty set if the query has no parameters. This method is not required to be supported for native queries . Return: set of the parameter objects | |
Query.setHint(hintName,value) - JPA Method JPA Method in jakarta.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 defined by this specification must be observed by | |
QueryTimeoutException.QueryTimeoutException(message,cause,query) - JPA Constructor;String message, Throwable cause, Query query ) Constructs a new QueryTimeoutException exception with the specified detail message, cause, and query . Parameters: message - the detail message. cause - the cause. query - the query . Since: JPA 2.0 | |
QueryTimeoutException.QueryTimeoutException(query) - JPA Constructor JPA Constructor in jakarta.persistence.QueryTimeoutException QueryTimeoutException ( Query query ) Constructs a new QueryTimeoutException exception with the specified query . Parameters: query - the query . Since: JPA 2.0 | |
Query.setTimeout(timeout) - JPA Method JPA Method in jakarta.persistence. Query Query setTimeout ( Integer timeout ) Set the query timeout, in milliseconds. This is a hint, and is an alternative to plain jakarta.persistence. query .timeout . Parameters: timeout - the timeout, in milliseconds, or null to indicate no timeout Return: the same query instance Since: JPA 3.2 | |
InterfaceRef jakarta.persistence.criteria.AbstractQuery whether duplicate query results are eliminated. A true value will cause duplicates to be eliminated ... must be eliminated from the query result or whether they must be retained Return: the modified query ... getResultType () Return the result type of the query or subquery. If a result type was specified as | |
Query.getParameter(position,type) - JPA Method JPA Method in jakarta.persistence. Query Parameter getParameter ( int position, Class type ) Get the parameter object corresponding to the declared positional ... to the type IllegalStateException - if invoked on a native query or Jakarta Persistence query language query when the implementation does not support this use Since: JPA 2.0 | |
Query.setParameter(name,value,temporalType) - JPA Method JPA Method in jakarta.persistence. Query Query setParameter ( String name,  ... value temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or if the value argument is of incorrect type Since: JPA 1.0 | |
Query.setParameter(name,value) - JPA Method JPA Method in jakarta.persistence. Query Query setParameter ( String name,  ... - parameter name value - parameter value Return: the same query instance Throws: IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or if the argument is of incorrect type Since: JPA 1.0 | |
Query.setParameter(param,value,temporalType) - JPA Method JPA Method in jakarta.persistence. Query Query setParameter ( Parameter param ... value temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException - if the parameter does not correspond to a parameter of the query Since: JPA 2.0 | |
Query.setParameter(param,value,temporalType) - JPA Method JPA Method in jakarta.persistence. Query Query setParameter ( Parameter param ... - parameter value temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException - if the parameter does not correspond to a parameter of the query Since: JPA 2.0 | |
Query.setParameter(position,value,temporalType) - JPA Method JPA Method in jakarta.persistence. Query Query setParameter ( int position,  ... temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException - if position does not correspond to a positional parameter of the query or if the value argument is of incorrect type Since: JPA 1.0 | |
Query.setParameter(position,value,temporalType) - JPA Method JPA Method in jakarta.persistence. Query Query setParameter ( int position,  ... - parameter value temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException - if position does not correspond to a positional parameter of the query or if the value argument is of incorrect type Since: JPA 1.0 | |
Query.setParameter(name,value,temporalType) - JPA Method JPA Method in jakarta.persistence. Query Query setParameter ( String name,  ... temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or if the value argument is of incorrect type Since: JPA 1.0 |