ObjectDB Database Search

51-100 of 200 results

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

Query.setParameter(position,value) - JPA Method

JPA Method in jakarta.persistence. Query Query setParameter (   int position,  ... : 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 jakarta.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

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.setCacheStoreMode(cacheStoreMode) - JPA Method

JPA Method in jakarta.persistence. Query Query setCacheStoreMode (    CacheStoreMode  cacheStoreMode ) Set the cache storage mode that is in effect during query execution. This cache ... : cacheStoreMode - cache storage mode Return: the same query instance Since: JPA 3.2

Query.setCacheRetrieveMode(cacheRetrieveMode) - JPA Method

JPA Method in jakarta.persistence. Query Query setCacheRetrieveMode (    CacheRetrieveMode  cacheRetrieveMode ) Set the cache retrieval mode that is in effect during query execution ... : cacheRetrieveMode - cache retrieval mode Return: the same query instance Since: JPA 3.2

AnnotationAttrRef jakarta.persistence.NamedQuery.query

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

Query.getParameter(position) - JPA Method

JPA Method in jakarta.persistence. Query Parameter getParameter (   int position ... . This method is not required to be supported for native queries . Parameters: position - position ... 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 jakarta.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 jakarta.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.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

Query.getHints() - JPA Method

JPA Method in jakarta.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 jakarta.persistence. Query T unwrap (   Class  cls ) Return an object ... of Query does not support the given type, the PersistenceException is thrown. Parameters: cls ... Query } or an interface it implements. Return: an instance of the specified class Throws

Logical Operators in JPQL and Criteria API

Logical operators in JPQL and in JPA criteria queries enable composition of complex JPQL boolean ... , the JDO Query Language). ObjectDB supports both forms. Binary AND (&&) Operator The following query retrieves countries whose population and area (both) exceed specified limits: SELECT c FROM

AnnotationAttrRef jakarta.persistence.NamedNativeQuery.query

JPA Annotation Attribute in jakarta.persistence.NamedNativeQuery String query default null The native SQL query string. Since: JPA 1.0

Query.getParameterValue(param) - JPA Method

JPA Method in jakarta.persistence. Query T getParameterValue (    Parameter  param ) Return the input value bound to the parameter. (Note that OUT parameters are unbound.) Parameters ... is not a parameter of the query IllegalStateException - if the parameter has not been bound Since: JPA 2.0

FieldRef jakarta.persistence.PersistenceConfiguration.QUERY_TIMEOUT

JPA Static Field in jakarta.persistence.PersistenceConfiguration QUERY _TIMEOUT Default query timeout hint. Since: JPA 3.2

Query.getCacheStoreMode() - JPA Method

JPA Method in jakarta.persistence. Query CacheStoreMode getCacheStoreMode () The cache storage mode that will be in effect during query execution. Since: JPA 3.2

Query.getCacheRetrieveMode() - JPA Method

JPA Method in jakarta.persistence. Query CacheRetrieveMode getCacheRetrieveMode () The cache retrieval mode that will be in effect during query execution. Since: JPA 3.2

Query.getTimeout() - JPA Method

JPA Method in jakarta.persistence. Query Integer getTimeout () The query timeout. Since: JPA 3.2

Query.isBound(param) - JPA Method

JPA Method in jakarta.persistence. Query boolean isBound (    Parameter  param ) Return a boolean indicating whether a value has been bound to the parameter. Parameters: param - parameter object Return: boolean indicating whether parameter has been bound Since: JPA 2.0

Query.getParameterValue(position) - JPA Method

JPA Method in jakarta.persistence. Query Object getParameterValue (   int position ) Return the input value bound to the positional parameter. (Note that OUT parameters are unbound.) Parameters: position - position Return: parameter value Throws: IllegalStateException

Query.getParameterValue(name) - JPA Method

JPA Method in jakarta.persistence. Query Object getParameterValue (   String name ) Return the input value bound to the named parameter. (Note that OUT parameters are unbound.) Parameters: name - parameter name Return: parameter value Throws: IllegalStateException - if the parameter

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

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.

Deleting JPA Entity Objects

to automatic removal of that object from the database. DELETE Queries DELETE queries provide an alternative way for removing entity objects from the database. Deleting objects using a DELETE query ... ;The  DELETE Queries in JPA/JPQL  in chapter 4 explains how to use JPA DELETE queries .

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 .

What are the main benefits of using ObjectDB?

processes JPQL (JPA Query Language) and JDOQL (JDO Query Language) queries directly, where ORM tools first convert these queries to SQL and then transition the SQL to the DBMS for execution through a JDBC

Shared (L2) Entity Cache

side: Cache of database file pages . Cache of query programs . Cache of query execution results ... can also be overridden for a specific retrieval operation: // Before executing a query :    query . setHint

JPA Persistable Types

are represented in queries by entity names . By default, the entity name is the unqualified name ... . their instances cannot be shared by different entity objects and they cannot be queried directly), so a decision ... ). It simplifies queries on dates and ranges of dates. When an entity is stored, its date and time fields

Posting Sample Code

.getTransaction().commit();         Query query = em.createQuery("SELECT e FROM MyEntity e");         List resultList = query

Locking in JPA

retrieval operation or query . Releasing a Pessimistic Lock Pessimistic locks are automatically ... can also be set for a query in order to lock all the query result objects. When a retrieval operation includes

JPA Primary Key

in the database in an efficient way. This is especially useful when using queries that return large ... time, sensor ID and additional details. Suppose that queries that retrieve all the events ... , the following primary key can significantly improve query run performance: @Entity public class Event

Database Connection using JPA

for Query instances, which are needed for executing queries on the database. Every JPA implementation

BIRT/ODA ObjectDB Driver

The ObjectDB BIRT/ODA driver is an extension of the open source Business Intelligence and Reporting Tools (BIRT) that adds support of ObjectDB as a data source and JPQL as a data set query ... ) and click Next . Entry a JPQL or a JDOQL query and click Finish . See the Report Generation

Step 4: Create an ObjectDB Data Set

Queries against the database are represented in BIRT as data sets. To create the data set: Open ... this tutorial contains Point entity objects. We will use a simple JPQL query that retrieves points with x ... copy and paste to enter the above query and click Finish . When the data set is created

Step 3: Define an EJB Session Bean

getAllGuests() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g.id", Guest.class); return query .getResultList(); } } The  GuestDao session bean (EJB) class defines two methods

Step 3: Define a Spring DAO Component

() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g.id", Guest.class); return query .getResultList(); } } The GuestDao Spring component class defines two methods: persist

Step 3: Define a Spring DAO Component

getAllGuests() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g.id", Guest.class); return query .getResultList(); } } The GuestDao Spring component class defines two methods: persist