Internal Website Search

101-150 of 200 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

javax.persistence.criteria.AbstractQuery

whether duplicate query results will be 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 ... type of the query or subquery. If a result type was specified as an argument to the createQuery or

javax.persistence.criteria.Subquery

distinct (boolean distinct) Specify whether duplicate query results will be eliminated. A true ... Since: JPA 2.0 Class getResultType () Return the result type of the query or subquery. If a result ... . If the query was created using the createTupleQuery method, the result type is Tuple

Retrieving JPA Entity Objects

and the other for checking a persistent field of an entity object. Retrieval by Query The most flexible method for retrieving objects from the database is to use queries . The official query language of JPA is JPQL (Java Persistence Query Language). It enables retrieval of objects from the database by

Is ObjectDB a NoSQL Database?

of NoSQL technology, which are weak query capabilities and lack of ACID (atomicity, consistency, isolation, durability). Unlike other NoSQL solutions, ObjectDB provides full support of rich complex queries , using two standard Java query languages: JPQL (Java Persistence Query Language) and JDOQL (JDO

Query.setLockMode(lockMode) - JPA Method

JPA Method in javax.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 to be a Java

Query.getLockMode() - JPA Method

JPA Method in javax.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 Java Persistence query language SELECT query or a Criteria API query Since: JPA 2.0

Query.executeUpdate() - JPA Method

JPA Method in javax.persistence. Query int executeUpdate () Execute an update or delete statement ... for a Java Persistence query language SELECT statement or for a criteria query TransactionRequiredException ... QueryTimeoutException - if the statement execution exceeds the query timeout value set

Is ObjectDB better than competing object databases?

do not support aggregate queries (max, min, count, sum and avg). ObjectDB supports rich queries , including aggregate queries , as part of its support of JPQL (JPA Query Language) and JDOQL (JDO Query Language). ObjectDB is faster than other products.

Comparison in JPQL and Criteria API

Most JPQL queries use at least one comparison operator in their WHERE clause. Comparison Operators ... its own notation (which is also in use by JDOQL, the JDO Query Language). ObjectDB supports both forms ... . Equality operators (=, , == , != ) on strings in queries follow the logic of Java's equals

Updating JPA Entity Objects

Queries UPDATE queries provide an alternative way of updating entity objects in the database. Modifying objects using an UPDATE query may be useful especially when many entity objects have to be modified in one operation. The UPDATE Queries in JPA/JPQL in chapter 4 explains how to use JPA UPDATE queries .

Query.getParameter(name,type) - JPA Method

JPA Method in javax.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 Java Persistence query language query when the implementation does not support this use Since: JPA 2.0

Query.setFlushMode(flushMode) - JPA Method

JPA Method in javax.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 javax.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 Throws

Query.setHint(hintName,value) - JPA Method

JPA Method in javax.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 javax.persistence.QueryTimeoutException QueryTimeoutException (    Query   query ) Constructs a new QueryTimeoutException exception with the specified query . Parameters: query - the query . Since: JPA 2.0

Query.getParameter(position,type) - JPA Method

JPA Method in javax.persistence. Query Parameter getParameter (   int position,    Class  type ) Get the parameter object corresponding to the declared positional ... IllegalStateException - if invoked on a native query or Java 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 javax.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 javax.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 javax.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 javax.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 javax.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 javax.persistence. Query Query setParameter (   int position,  ... 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 javax.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

Query.setParameter(position,value) - JPA Method

JPA Method in javax.persistence. Query Query setParameter (   int position,  ... - position value - parameter value Return: the same query instance Throws: IllegalArgumentException - if position does not correspond to a positional parameter of the query or if the argument is of incorrect type Since: JPA 1.0

Query.setParameter(param,value) - JPA Method

JPA Method in javax.persistence. Query Query setParameter (    Parameter  param ... object value - parameter value Return: the same query instance Throws: IllegalArgumentException - if the parameter does not correspond to a parameter of the query Since: JPA 2.0

javax.persistence.NamedQuery.query

JPA Annotation Attribute in javax.persistence.NamedQuery String query default null (Required) The query string in the Java Persistence query language. Since: JPA 1.0

Query.getParameter(position) - JPA Method

JPA Method in javax.persistence. Query Parameter getParameter (   int position ... . This method is not required to be supported for native queries . Parameters: position - position Return ... does not exist IllegalStateException - if invoked on a native query when the implementation does not support this use Since: JPA 2.0

Query.getParameter(name) - JPA Method

JPA Method in javax.persistence. Query Parameter getParameter (   String name ... required to be supported for native queries . Parameters: name - parameter name Return: parameter ... IllegalStateException - if invoked on a native query when the implementation does not support this use Since: JPA 2.0

Query.getFlushMode() - JPA Method

JPA Method in javax.persistence. Query FlushModeType getFlushMode () Get the flush mode in effect for the query execution. If a flush mode has not been set for the query object, returns the flush mode in effect for the entity manager. Return: flush mode Since: JPA 2.0

Query.getHints() - JPA Method

JPA Method in javax.persistence. Query Map getHints () Get the properties and hints and associated values that are in effect for the query instance. Return: query properties and hints Since: JPA 2.0

Query.unwrap(cls) - JPA Method

JPA Method in 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 ... - the class of the object to be returned. This is normally either the underlying query implementation

DB persist operation results are not available for another Thread/EntityManager immdiately

a query . But there are not any results available. We debugged the problem. Thread B executes the query and prints the results to the console, but there are not results . After that the thread stops ... executing the query , in this case we get always the expected results . The problem does only occur

[ODB1] Chapter 4 - JDO Metadata

of queries against the class instances. However, maintaining an extent for a class has some overhead ... are not included in the extents of their classes, so they cannot be queried directly. When the embedded ... ;Index Definition Querying a large extent without indexes may take a significant amount of time

Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression,parameters) - JDO Method

JDO Method in javax.jdo. Query void addSubquery (    Query  sub,     ... ;   Map parameters ) Add a subquery to this query . The Map version of the method treats ... ":", and the value as the name of the expression in the outer query . If the trimmed expression

Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression,parameter) - JDO Method

JDO Method in javax.jdo. Query void addSubquery (    Query  sub,     ... ;   String parameter ) Add a subquery to this query . The String version of the method ... : sub - the subquery to add to this Query variableDeclaration - the name of the variable to be used

PersistenceManager.newQuery(language,query) - JDO Method

JDO Method in javax.jdo.PersistenceManager Query newQuery (   String language,    Object  query ) Create a new Query using the specified language. Parameters: language - the language of the query parameter query - the query , which is of a form determined by the language Return: the new Query Since: JDO 1.0

PersistenceManager.newQuery(query) - JDO Method

JDO Method in javax.jdo.PersistenceManager Query newQuery (   String  query ) Create a Construct a new query instance using the specified String as the single-string representation of the query . Parameters: query - the single-string query Return: the new Query Since: JDO 2.0

Query.setIgnoreCache(ignoreCache) - JDO Method

JDO Method in javax.jdo. Query void setIgnoreCache (   boolean ignoreCache ) Set ... the PersistenceManager used to create this Query . The ignoreCache option setting specifies whether the query should execute entirely in the back end, instead of in the cache. If this flag is set

javax.jdo.annotations.Queries

JDO Annotation Queries Target: ElementType.TYPE Implemented Interfaces: Annotation Annotation for a group of named queries . Since: JDO 2.1 Public Annotation Attributes Query [] value default null The named queries Since: JDO 2.1

Query.executeWithArray(parameters) - JDO Method

JDO Method in javax.jdo. Query Object executeWithArray (   Object... parameters ) Execute the query and return the filtered Collection . The execution of the query obtains the values ... compatible to the Class of the query . It is then evaluated by the Boolean expression of the filter

Query.getPersistenceManager() - JDO Method

JDO Method in javax.jdo. Query PersistenceManager getPersistenceManager () Get the PersistenceManager associated with this Query . If this Query was restored from a serialized form, it has no PersistenceManager , and this method returns null . Return: the PersistenceManager associated with this Query . Since: JDO 1.0

Query.getFetchPlan() - JDO Method

JDO Method in javax.jdo. Query FetchPlan getFetchPlan () Returns the FetchPlan used by this Query . Modifications of the returned fetch plan will not cause this query's owning PersistenceManager 's FetchPlan to be modified. Return: the fetch plan used by this query Since: JDO 2.0

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.compile() - JDO Method

JDO Method in javax.jdo. Query void compile () Verify the elements of the query and provide a hint to the query to prepare and optimize an execution plan. Since: JDO 1.0

javax.jdo.annotations.Queries.value

JDO Annotation Attribute in javax.jdo.annotations. Queries Query [] value default null The named queries Since: JDO 2.1