Internal Website 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);

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

JPA Class Enhancer

classes for enhancement can be specified as a second argument: com.objectdb.Enhancer.enhance( "test.pc ... above. First, currently it only works on Sun JDK 6 or above (and not on JRE 6 for example). Second

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

SELECT clause (JPQL / Criteria API)

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

Database Transaction Replayer

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

Strings in JPQL and Criteria Queries

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

WHERE clause (JPQL / Criteria API)

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

Database Doctor

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

Database Connection using JPA

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

GROUP BY and HAVING clauses

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

General Settings and Logging

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

JPA Primary Key

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

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

. The second method, object names, is not supported by JDO, but ObjectDB supports it as an extension ... the database. The ID of the first object in the database is always 1, the ID of the second object is 2 ... ); The second argument of getObjectById( ... ) indicates whether or not the retrieved object

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 ... JDO by an Extent instance (line 40). The second argument of the getExtent( ... ) method indicates

[ODB1] Chapter 8 - ObjectDB Server

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 is found, the new ... the maximum allowed connection inactivity time (in seconds ). If a connection is inactive

[ODB1] Chapter 5 - JDO Connections

to obtain the lock. After 40 retries (about 2 seconds ) a JDOUserException (a subclass of JDOException ... . If a conflict happens, the first committed transaction succeeds while the second fails, throws an exception

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.EntityManagerFactory

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

Query.setHint(hintName,value) - JPA Method

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

[ODB1] Chapter 9 - ObjectDB Explorer

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

[ODB1] Chapter 7 - JDOQL Queries

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

[ODB1] Chapter 1 - About ObjectDB

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

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

PersistenceManagerFactory.getConnectionFactory2Name() - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory String getConnectionFactory2Name () Get the name for the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions. Return: the name of the data store connection factory. Since: JDO 1.0

PersistenceManagerFactory.setConnectionFactory2Name(connectionFactoryName) - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory void setConnectionFactory2Name (   String connectionFactoryName ) Set the name for the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions

PersistenceManagerFactory.getConnectionFactory2() - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory Object getConnectionFactory2 () Get the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions. Return: the data store connection factory. Since: JDO 1.0

PersistenceManagerFactory.setConnectionFactory2(connectionFactory) - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory void setConnectionFactory2 (   Object connectionFactory ) Set the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions. JDO implementations

DataStoreCache.unpinAll(pcClass,subclasses) - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache void unpinAll (   Class pcClass,    boolean subclasses ) Unpin instances from the second -level cache. Parameters: pcClass - the class of instances to unpin subclasses - if true, unpin instances of subclasses also Since: JDO 2.0

DataStoreCache.unpinAll(oids) - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache void unpinAll (   Object... oids ) Unpin the parameter instance from the second -level cache. Parameters: oids - the object id of the instance to evict. Since: JDO 2.0

javax.jdo.datastore.DataStoreCache$EmptyDataStoreCache

JDO Class EmptyDataStoreCache java.lang.Object ∟  javax.jdo.datastore.DataStoreCache$EmptyDataStoreCache Implemented Interfaces: DataStoreCache This class is an empty implementation of the DataStoreCache interface. It can be used by an implementation that does not support a second -level cache

DataStoreCache.unpinAll(subclasses,pcClass) - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache void unpinAll (   boolean subclasses,    Class pcClass ) Unpin instances from the second -level cache. Parameters: pcClass - the class of instances to unpin subclasses - if true, unpin instances of subclasses also Since: JDO 2.1

DataStoreCache.pinAll(subclasses,pcClass) - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache void pinAll (   boolean subclasses,    Class pcClass ) Pin instances in the second -level cache. Parameters: pcClass - the class of instances to pin subclasses - if true, pin instances of subclasses also Since: JDO 2.1

DataStoreCache.pinAll(pcClass,subclasses) - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache void pinAll (   Class pcClass,    boolean subclasses ) Pin instances in the second -level cache. Parameters: pcClass - the class of instances to pin subclasses - if true, pin instances of subclasses also Since: JDO 2.0

DataStoreCache.unpinAll(oids) - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache void unpinAll (   Collection oids ) Unpin the parameter instances from the second -level cache. Parameters: oids - the object ids of the instance to evict. Since: JDO 2.0

DataStoreCache.unpin(oid) - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache void unpin (   Object oid ) Unpin the parameter instance from the second -level cache. Parameters: oid - the object id of the instance to unpin. Since: JDO 2.0

DataStoreCache.pin(oid) - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache void pin (   Object oid ) Pin the parameter instance in the second -level cache. Parameters: oid - the object id of the instance to pin. Since: JDO 2.0

DataStoreCache.evictAll(subclasses,pcClass) - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache void evictAll (   boolean subclasses,    Class pcClass ) Evict the parameter instances from the second -level cache. Parameters: pcClass - the class of instances to evict subclasses - if true, evict instances of subclasses also Since: JDO 2.1