ObjectDB Database Search

51-100 of 200 results

jakarta.persistence.Query.setParameter(int,Date,TemporalType)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Query setParameter (    ... type value - parameter value Returns: the same query instance. Throws: IllegalArgumentException - if position does not correspond to a positional parameter of the query or if the value argument

jakarta.persistence.Query.setParameter(String,Calendar,TemporalType)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Query setParameter (    ... - temporal type value - parameter value Returns: the same query instance. Throws: IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or if the value argument

jakarta.persistence.Query.setParameter(String,Date,TemporalType)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Query setParameter (    ... value - parameter value Returns: the same query instance. Throws: IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or if the value argument

jakarta.persistence.Query.setParameter(int,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Query setParameter (    ... . Parameters: position - position value - parameter value Returns: the same query instance. Throws: IllegalArgumentException - if position does not correspond to a positional parameter of the query or

jakarta.persistence.Query.setParameter(int,Calendar,TemporalType)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Query setParameter (    ... - temporal type value - parameter value Returns: the same query instance. Throws: IllegalArgumentException - if position does not correspond to a positional parameter of the query or if the value argument

jakarta.persistence.Query.setParameter(String,Object)

: name - parameter name value - parameter value Returns: 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: Jakarta Persistence (JPA) 1 .0 ... Jakarta Persistence (JPA) Method in jakarta.persistence. Query Query setParameter (   

jakarta.persistence.NamedQuery.query

Jakarta Persistence (JPA) Method in jakarta.persistence.NamedQuery String query (Required) The query string in the Jakarta Persistence query language. Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.Query.setMaxResults(int)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Query setMaxResults (    ... of results to retrieve Returns: the same query instance. Throws: IllegalArgumentException - if the argument is negative. Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.Query.setFirstResult(int)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Query setFirstResult (    ... - position of the first result, numbered from 0 Returns: the same query instance. Throws: IllegalArgumentException - if the argument is negative. Since: Jakarta Persistence (JPA) 1 .0

Database Explorer

it to view data, execute JPQL and JDOQL queries , and edit database content. Running the Explorer ... (entity and embeddable classes) in the database and their persistent fields and indexes. The Query window lets you run JPQL and JDOQL queries , as discussed later. Closing a database connection To close

jakarta.persistence.NamedNativeQuery.query

Jakarta Persistence (JPA) Method in jakarta.persistence.NamedNativeQuery String query The native SQL query string. Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.PersistenceConfiguration.QUERY_TIMEOUT

Jakarta Persistence (JPA) Field in jakarta.persistence.PersistenceConfiguration QUERY _TIMEOUT Default query timeout hint. Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.QueryTimeoutException.query

Jakarta Persistence (JPA) Field in jakarta.persistence.QueryTimeoutException query Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.StoredProcedureQuery

back. Since: Jakarta Persistence (JPA) 1 .0 Integer getTimeout () The query timeout. Inherited from Query ... - type of the parameter Returns: the same query instance. Since: Jakarta Persistence (JPA) 1 .0 ... Persistence (JPA) 1 .0 StoredProcedureQuery setHint ( String hintName , Object value ) Set a query property

ORDER BY clause (JPQL / Criteria API)

COUNT(c) 1 ORDER BY c.currency In the query above, the ORDER BY clause sorts the results by ... The ORDER BY clause specifies the order for the query results. Any JPQL query that does not ... expressions The following query returns the names of countries with a population of at least one million

jakarta.persistence.TypedQuery

back. Since: Jakarta Persistence (JPA) 1 .0 Stream getResultStream () Execute a SELECT query and return the query ... - flush mode Returns: the same query instance. Since: Jakarta Persistence (JPA) 1 .0 TypedQuery setHint ... parameter of the query or if the argument is of incorrect type. Since: Jakarta Persistence (JPA) 1 .0

Retrieving JPA Entities

object with a primary key of 1 : Employee employee = em. find (Employee.class, 1 ); You do not need ... its persistence context, it returns the existing managed object without querying the database. Otherwise, JPA ... version of find : Employee employee = em. getReference (Employee.class, 1 ); The getReference method

jakarta.persistence.criteria.CriteriaBuilder

operation Returns: the query object. Since: Jakarta Persistence (JPA) 2. 1 CriteriaQuery createQuery () Create a CriteriaQuery object. Returns: criteria query object. Since: Jakarta Persistence (JPA) 1 ... criteria queries , compound selections, expressions, predicates, orderings. Note that Predicate

jakarta.persistence.EntityManager

graph. Since: Jakarta Persistence (JPA) 2. 1 Query createNamedQuery ( String name ) Create an instance ... - if no query has been defined with the given name. Since: Jakarta Persistence (JPA) 2. 1 Query ... - a native SQL query string Returns: the new query instance. Since: Jakarta Persistence (JPA) 1 .0 Query

JPA Entity Fields

an automatic query when the entity is retrieved. Note : Navigation through inverse fields is much less efficient than navigation through ordinary persistent fields because it requires running queries ... the following query , where :d represents the Department entity: SELECT e FROM Employee e WHERE e.department

FROM clause (JPQL / Criteria API)

The FROM clause declares query identification variables for iterating over objects in the database. A query identification variable is similar to a variable in a Java enhanced for loop because both are used to iterate over objects. Range variables Range variables are query identification variables

jakarta.persistence.criteria.CriteriaQuery

.. Since: Jakarta Persistence (JPA) 1 .0 Root from ( Class entityClass ) Create and add a query root ... Returns: query root corresponding to the given entity. Since: Jakarta Persistence (JPA) 1 .0 List ... . Since: Jakarta Persistence (JPA) 1 .0 Set getParameters () Return the parameters of the query . Returns empty set

Logical Operators in JPQL and Criteria API

Logical operators in JPQL and JPA criteria queries combine simple Boolean expressions to form ... the following table: Set 1 : JPQL / SQL Set 2: Java / JDO AND && OR || NOT ! JPQL uses SQL notation, while Java uses its own notation, which is also used by the JDO Query Language (JDOQL). ObjectDB

Updating JPA Entities

, 1 ); em. getTransaction (). begin (); employee.setNickname("Joe the Plumber"); em. getTransaction ... when entity classes are enhanced: Employee employee = em. find (Employee.class, 1 ); em. getTransaction ... and provide better support for automatic change tracking. UPDATE queries UPDATE queries provide

jakarta.persistence.Query.setLockMode(LockModeType)

Jakarta Persistence (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 Returns: the same query instance. Throws: IllegalStateException - if the query is found

jakarta.persistence.Query.getResultStream()

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Stream getResultStream() Execute a SELECT query and return the query results as an untyped java.util.stream.Stream . By default ... if there are no results. Throws: IllegalStateException - if called for a Jakarta Persistence query

jakarta.persistence.criteria.Subquery

of the containing query Returns: subquery root. Since: Jakarta Persistence (JPA) 1 .0 Join correlate ( Join ... query Returns: subquery join. Since: Jakarta Persistence (JPA) 1 .0 Subquery distinct ( boolean ... Persistence (JPA) 1 .0 Root from ( EntityType entity ) Create and add a query root corresponding

jakarta.persistence.Query.getLockMode()

Jakarta Persistence (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. Returns: lock mode. Throws: IllegalStateException - if the query is found not to be a Jakarta

jakarta.persistence.Query.getSingleResultOrNull()

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Object getSingleResultOrNull() Execute a SELECT query that returns a single untyped result. Returns: the result, or null if there is no result. Throws: IllegalStateException - if called for a Jakarta Persistence query language UPDATE or

jakarta.persistence.Query.getParameters()

Jakarta Persistence (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 . Returns: set

jakarta.persistence.Query.getParameter(String,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Parameter getParameter (    ... parameter 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

jakarta.persistence.Query.setTimeout(Integer)

Jakarta Persistence (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 setting the hint jakarta.persistence. query .timeout . Parameters: timeout - the timeout, in milliseconds

JPA Optimistic and Pessimistic Locking

entity is 1 when it is first stored in the database. In every transaction where an entity  ... query . Releasing a Pessimistic Lock Pessimistic locks are automatically released at the end ... with this mode marks the clean entity as modified (dirty) and increments its version number by 1

jakarta.persistence.Query.getParameter(int,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Parameter getParameter (    int position ,    Class type ) Get the parameter object corresponding to the declared ... : IllegalStateException - if invoked on a native query or Jakarta Persistence query language query

jakarta.persistence.Query.setCacheRetrieveMode(CacheRetrieveMode)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Query setCacheRetrieveMode (   ... during query execution. This cache retrieval mode overrides the cache retrieve mode in use by the entity manager. Parameters: cacheRetrieveMode - cache retrieval mode Returns: the same query instance. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.Query.setCacheStoreMode(CacheStoreMode)

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

jakarta.persistence.Query.getMaxResults()

Jakarta Persistence (JPA) Method in jakarta.persistence. Query int getMaxResults() The maximum number of results the query object was set to retrieve. Returns Integer#MAX_VALUE if Query .setMaxResults was not applied to the query object. Returns: maximum number of results. Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.Query.setParameter(Parameter,T)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Query setParameter (    ... - parameter object value - parameter value Returns: the same query instance. Throws: IllegalArgumentException - if the parameter does not correspond to a parameter of the query . Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.Query.setParameter(Parameter,Calendar,TemporalType)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Query setParameter (    ... - parameter object value - parameter value Returns: the same query instance. Throws: IllegalArgumentException - if the parameter does not correspond to a parameter of the query . Deprecated: Newly-written

jakarta.persistence.Query.setParameter(Parameter,Date,TemporalType)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Query setParameter (    ... object value - parameter value Returns: the same query instance. Throws: IllegalArgumentException - if the parameter does not correspond to a parameter of the query . Deprecated: Newly-written code

jakarta.persistence.Query.getFirstResult()

Jakarta Persistence (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. Returns: position of the first result. Since: Jakarta Persistence (JPA) 2.0

JPA Shared (L2) Entity Cache

several server-side caches: Cache of database file pages . Cache of query programs . Cache of query execution ... for a specific retrieval operation: // Before executing a query : query . setHint ("jakarta.persistence.cache ... (MyEntity2.class, Long.valueOf( 1 ), Collections. singletonMap( "jakarta.persistence.cache.retrieveMode

jakarta.persistence.Query.getParameter(String)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Parameter getParameter (    ... . This method is not required to be supported for native queries . Parameters: name - parameter name Returns: parameter object. Throws: IllegalStateException - if invoked on a native query

jakarta.persistence.Query.getFlushMode()

Jakarta Persistence (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. Returns: flush mode. Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.Query.getParameter(int)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Parameter getParameter (    ... with the given position. This method is not required to be supported for native queries . Parameters ... query when the implementation does not support this use. IllegalArgumentException - if the parameter

jakarta.persistence.Query.unwrap(Class)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query T unwrap (    Class cls ... implementation of Query does not support the given type, the PersistenceException is thrown ... implementing Query or an interface it implements. Returns: an instance of the specified class. Throws

jakarta.persistence.Query.getHints()

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

jakarta.persistence.Query.getParameterValue(Parameter)

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

[ODB1] Chapter 6 - Persistent Objects

Persistence objects represent data in the database. 6. 1   Making Objects Persistent In ... classes are not included in the extents of their classes, so they cannot be iterated or queried directly ... of the first object in the database is always 1 , the ID of the second object is 2

[ODB1] Chapter 4 - JDO Metadata

and the other resources (possibly in a jar file). 4. 1   JDO Metadata Files During JDO enhancement and later ... 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