ObjectDB Database Search

1-23 of 23 results

PersistenceManager.getObjectsById(Collection,boolean) throwing JDOException

PersistenceManager.getObjectsById(Collection,boolean) throwing JDOException

JDO PersistenceManager.getSequence() returns null sometimes

to reproduce: import javax.jdo. PersistenceManager ; import javax.jdo.PersistenceManagerFactory; import ... .setConnectionURL("build/testcase.odb"); PersistenceManager pm = factory.getPersistenceManager(); Sequence seq1

Soft Reference Object Cache Recommendation

myself and, upon detecting a full JVM GC, manually evict JdoBlob2s from their relevant PersistenceManager (via persistenceManager .evict(jdoBlob2)).  I would have to maintain the list with a LRU ordering ... " entries from PersistenceManager ). So at this point I think ObjectDB Support Personnel could really

Executing JUnit "all tests" throws "Object ... belongs to another EntityManager" Exception

tried using ThreadLocal on the PersistenceManager created from a once-per-test-class ... , to no avail. I'm using JDO, and I only ever knowingly create one PersistenceManager ... only ever knowingly create one  PersistenceManager During all tests, you probably create

Can I Disable the Creation of the "log" Directory?

. PersistenceManager ; import javax.jdo.PersistenceManagerFactory; import java.nio.file.Files; import java.nio.file ... .getPersistenceManagerFactory(properties); PersistenceManager persistenceManager = persistenceManagerFactory.getPersistenceManager(); persistenceManager .close(); persistenceManagerFactory.close(); if(Files.exists

Type xxx is not found (error 301)

PersistenceManager from your EntityManager :     em.unwrap( PersistenceManager .class ... ) 3) use jdo from jpa - is there a performance penalty for unwrapping PersistenceManager .class ... David Moshal 3) use jdo from jpa - is there a performance penalty for unwrapping PersistenceManager

Optimistic Locking

); // Persist one Counter object: PersistenceManager pm = pmf.getPersistenceManager(); pm ... (); // First user retrieves and updates the Counter:   PersistenceManager pm1 = pmf ... (); c1.increase(); // Second user retrieves and updates the Counter:   PersistenceManager pm2

Unable to delete the .odb file programatically

code to delte the odb files      PersistenceManager pm = ( PersistenceManager ... .setMultithreaded(true); PersistenceManager pm = pmf.getPersistenceManager(); if (codeLogger ... the lock so that database files can be deleted      PersistenceManager pm = getPM

Replaying recorded requests...

) Is this because I'm somehow not closing a transaction properly, or a PersistenceManager , or ... ( PersistenceManager's close doesn't close the database file). support Support Another possibility ... ( PersistenceManager's close doesn't close the database file). I have been closing the PersistenceManagerFactory in

Source not found error after downloading ObjectDB 2.3.7_04

"); PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory(prop); PersistenceManager pm ... . PersistenceManager ; import javax.jdo.PersistenceManagerFactory; public class Main {    ... );          PersistenceManager pm = pmf.getPersistenceManager(); /

Connection performace after upgrade to objectdb 2

and PersistenceManager : In objectdb 1 : PersistenceManagerFactory pmf = JDOHelper ... only 3ms and PersistenceManager pm = pmf.getPersistenceManager(); takes 40ms However, with objectdb 2 ... Gabbouch Just tried to create PersistenceManagerFactory and  PersistenceManager for your database

Getting a list of all the entity class names

). It requires a JDO' s PersistenceManager : String[] classNames = com.objectdb.Utilities.getClassNames(pm); In JPA you have to unwrap the EntityManager as a JDO PersistenceManager :   String ... ( PersistenceManager .class)); This method remained from ObjectDB 1.x, but in JPA 2 applications the JPA Metamodel API

Database is locked when in use

, it is mentioned for EntityManager. How do i achieve the same for PersistenceManager as I ... PersistenceManager to EntityManager . In ObjectDB the same object is an instance of both interfaces

Cascading makeTransient

be garbage-collected even after the PersistenceManager is closed and they are no longer needed from ... method PersistenceManager .makeTransient(object, true) with a correct FetchPlan? The documentation

Problem with byte arrays in JDO - internal exception

This code generates an internal exception: package spiffy.test; import java.util.List; import javax.jdo.JDOHelper; import javax.jdo. PersistenceManager ; import javax.jdo.PersistenceManagerFactory ... ) { PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory("test.odb"); PersistenceManager

Problem with byte arrays in JDO - ClassCastException

.List; import javax.jdo.JDOHelper; import javax.jdo. PersistenceManager ; import javax.jdo ... .getPersistenceManagerFactory("test.odb");         PersistenceManager pm = pmf

Missing Data on Retrieval (0, null values)

().isLoaded(m_object))     em.unwrap( PersistenceManager .class).retrieve(obj); Note

Change Sequcene Id

could I change sequcence id ? allocating small value may not be effect. or something other ways ? javax.jdo.datastore.Sequence seq = em.unwrap(javax.jdo. PersistenceManager .class).getSequence("MyEntity$identity"); long currentValue = seq.currentValue(); // I would like to change currentValue

Replicated cluster recovery

and two 2 reading data but all hangs up on geting PersistenceManager from the PMF, without cluter

Navigation to Collection Elements

/ PersistenceManager is open. If the referenced objects are not already in memory they will be loaded

How to do an Offline Database Backup?

the PersistenceManagerFactory  (not just the PersistenceManager instances) and avoid opening

I can't get cascading delete to work in JDO

;     PersistenceManager pm = pmf.getPersistenceManager();         pm ... ; public static void persist( PersistenceManager pm) {         pm.makePersistent(   ... ")));     }     public static void delete( PersistenceManager pm) {      

ObjectDB 2.6.9

cache InternalException. Fixed JDO PersistenceManager 's  newObjectIdInstance to support classes