ObjectDB Database Search

1-50 of 200 results

Distributed second level cache

Is it possible to configure the second level cache as distributed? The use-case: The object Person "John" is read on application node 1 and also on application node 2 to the second level caches. The object Person "John" is changed on application node 1 - name is set to "Jim" - so the second

a second mapping-file is ignored in persistence.xml by enhancer

Why the second mapping-file is ignored?   The unit test has following result, because not ... how you invoke the Enhancer. Do you use the -pu option to specify a persistence unit in which the second orm

Using of Second Level Cache

In our use case we want to find some entity types always again very quickly by primary key or query in many short transactions. The entity MyEntity1 and its relationships to MyEntity2/MyEntity3 was load and the entity MyEntity1 is taken in the second level cache, the other entity types not

Enforce Second Level cache

Enforce Second Level cache

Date and Time in JPQL and Criteria Queries

, HOUR , MINUTE and SECOND . For example: YEAR({d '2011-12-31'}) is evaluated to 2011 . MONTH({d ... '}) is evaluated to 23 . MINUTE({t '23:59:00'}) is evaluated to 59 . SECOND ({t '23:59:00'}) is evaluated ... =     cb. function ("minute", Integer.class, time); Expression second = cb. function (" second ", Integer.class, ts);

Locking in JPA

argument is an entity object. The second argument is the requested lock mode ... (on the second lock request). Pessimistic Lock Timeout By default, when a pessimistic lock conflict

JPA Class Enhancer

for loading classes for enhancement can be specified as a second argument: com.objectdb.Enhancer ... 6 or above (and not on JRE 6 for example). Second , classes that are loaded into the JVM before

FROM clause (JPQL / Criteria API)

, which has two range variables and a WHERE clause. However, this second query form that uses a join variable is preferred. Besides being shorter and cleaner, the second query describes the right and efficient way

Database Transaction Replayer

When a transaction ID is specified as a second argument the Replayer applies recorded operations

Database Doctor

( old.odb above) is the path to the original (corrupted) database file. The second argument ( new.odb

JPA Primary Key

key of the second entity object is 2, etc. Primary key values are not recycled when entity objects

Database Connection using JPA

of the createEntityManagerFactory method takes a map of persistence unit properties as a second parameter: Map properties

WHERE clause (JPQL / Criteria API)

.class); q. where (cb. gt (c. get ("population"), p)); Multiple Restrictions The second where method

SELECT clause (JPQL / Criteria API)

Object[] element is 2. The first array cell contains the country name ( c.name ) and the second array

GROUP BY and HAVING clauses

the initial letter as a String object, the second cell contains the number of countries in

Strings in JPQL and Criteria Queries

above only the first percent character ( % ) is a wildcard. The second (which appears after the escape character

General Settings and Logging

in seconds , where 0 indicates never (no inactivity timeout). The inactivity timeout (when 0

javax.persistence.criteria.CriteriaBuilder

a predicate for testing whether the first argument is between the second and third arguments in value ... whether the first argument is between the second and third arguments in value. Parameters: v ... for testing whether the first argument is greater than or equal to the second . Parameters: x - expression y

javax.persistence.EntityManager

denote an entity type or the second argument is is not a valid type for that entity's primary key or ... the second argument is not a valid type for that entity's primary key or is null ... an entity type or the second argument is not a valid type for that entity's primary key or is null

[ODB1] Chapter 6 - Persistent Objects

for database objects. The first method, object IDs, is supported by JDO. The second method, object ... of the first object in the database is always 1, the ID of the second object is 2 ... can be retrieved simply by: Person person = (Person)pm.getObjectById(oid, false); The second argument

Step 6: Design a BIRT Report Table

the data set in the [Data Explorer] window (under the data set node) and dropping them on the second

[ODB1] Chapter 2 - A Quick Tour

of the second run is expected to be: Hello World 0 Hello World 1 After two runs, the database contains ... ). You can ignore the second argument of the getObjectById( ... ) method that is discussed in section 6.3 ... are represented in JDO by an Extent instance (line 40). The second argument of the getExtent( ... ) method

[ODB1] Chapter 8 - ObjectDB Server

. The reload attribute specifies how often (in seconds ) the server checks the configuration file for changes. For instance, a value of 30 (as specified above) indicates a check every 30 seconds . If a change ... . It specifies the maximum allowed connection inactivity time (in seconds ). If a connection is inactive

[ODB1] Chapter 5 - JDO Connections

retries (about 2 seconds ) a JDOUserException (a subclass of JDOException ) is thrown. These constants (50 ... transaction succeeds while the second fails, throws an exception, and is rolled back automatically

javax.persistence.Cache

JPA Interface Cache Interface used to interact with the second -level cache. If a cache is not in use, the methods of this interface have no effect, except for contains , which returns false. Since: JPA 2.0 The Shared (L2) Entity Cache article explains how to use Cache . Public Methods boolean

EntityManager.find(entityClass,primaryKey) - JPA Method

argument does not denote an entity type or the second argument is is not a valid type for that entity's primary key or is null Since: JPA 1.0

EntityManager.find(entityClass,primaryKey,properties) - JPA Method

- if the first argument does not denote an entity type or the second argument is is not a valid type for that entity's primary key or is null Since: JPA 2.0

EntityManager.find(entityClass,primaryKey,lockMode) - JPA Method

: IllegalArgumentException - if the first argument does not denote an entity type or the second argument is not

EntityManager.find(entityClass,primaryKey,lockMode,properties) - JPA Method

: IllegalArgumentException - if the first argument does not denote an entity type or the second argument

EntityManager.getReference(entityClass,primaryKey) - JPA Method

type or the second argument is not a valid type for that entity's primary key or is null

EntityManager.setProperty(propertyName,value) - JPA Method

of property or hint value - value for property or hint Throws: IllegalArgumentException - if the second

javax.persistence.EntityManagerFactory

with the entity manager factory (the " second level cache"). Return: instance of the Cache interface

EntityManagerFactory.getCache() - JPA Method

JPA Method in javax.persistence.EntityManagerFactory Cache getCache () Access the cache that is associated with the entity manager factory (the " second level cache"). Return: instance of the Cache interface or null if no cache is in use Throws: IllegalStateException - if the entity manager factory has been closed Since: JPA 2.0

javax.persistence.Query

or hint Return: the same query instance Throws: IllegalArgumentException - if the second argument

Query.setHint(hintName,value) - JPA Method

Throws: IllegalArgumentException - if the second argument is not valid for the implementation Since: JPA 1.0

javax.persistence.SharedCacheMode

JPA Enum SharedCacheMode java.lang.Object ∟  java.lang.Enum ∟  javax.persistence.SharedCacheMode Specifies how the provider must use a second -level cache for the persistence unit. Corresponds to the value of the persistence.xml shared-cache-mode element, and returned as the result

javax.persistence.StoredProcedureQuery

- if the second argument is not valid for the implementation Since: JPA 2.1 Query setLockMode

StoredProcedureQuery.setHint(hintName,value) - JPA Method

: IllegalArgumentException - if the second argument is not valid for the implementation Since: JPA 2.1

javax.persistence.TypedQuery

: the same query instance Throws: IllegalArgumentException - if the second argument is not valid

TypedQuery.setHint(hintName,value) - JPA Method

instance Throws: IllegalArgumentException - if the second argument is not valid for the implementation Since: JPA 2.0

CriteriaBuilder.greaterThan(x,y) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Predicate greaterThan (    Expression  x,     Expression  y ) Create a predicate for testing whether the first argument is greater than the second . Parameters: x - expression y - expression Return: greater-than predicate Since: JPA 2.0

[ODB1] Chapter 9 - ObjectDB Explorer

filter and also when you fill the ordering field in the query form. The second tab window is filled

[ODB1] Chapter 1 - About ObjectDB

of objects per second . Even queries on millions of objects are very fast, when proper indexes are defined

[ODB1] Chapter 7 - JDOQL Queries

of the specified candidate Extent , and in the second form, the candidate collection is automatically set

javax.jdo.datastore.DataStoreCache

JDO Interface DataStoreCache Many JDO implementations allow instances to be cached in a second ... the parameter instance from the second -level cache. Parameters: oid - the object id of the instance to evict. Since: JDO 2.0 void evictAll () Evict the parameter instances from the second -level cache

javax.jdo.PersistenceManagerFactory

connection factory. Since: JDO 1.0 Object getConnectionFactory2 () Get the second data store connection ... () Get the name for the second data store connection factory. This is needed for managed ... getDataStoreCache () Return the DataStoreCache that this factory uses for controlling a second -level

javax.jdo.Query

- the value of the first parameter declared. p2 - the value of the second parameter declared ... of the second parameter declared. p3 - the value of the third parameter declared. Return: the filtered ... and the second argument is the value from the query result. Portable result classes do not invoke any

PersistenceManagerFactory.getDataStoreCache() - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory DataStoreCache getDataStoreCache () Return the DataStoreCache that this factory uses for controlling a second -level cache. If this factory does not use a second -level cache, the returned instance does nothing. This method never returns null . Return: the DataStoreCache Since: JDO 2.0

DataStoreCache.evictAll() - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache void evictAll () Evict the parameter instances from the second -level cache. All instances in the PersistenceManager's cache are evicted from the second -level cache. Since: JDO 2.0

javax.jdo.spi.I18NHelper

- the message key arg1 - the first argument arg2 - the second argument Return: the resolved message ... argument arg2 - the second argument arg3 - the third argument Return: the resolved message text