ObjectDB Database Search
1-50 of 50 resultsClassCastException on closing PersistenceManager the PersistenceManager after reading the DB: java.lang.ClassCastException: com.objectdb.o.ENT ... ; the method on the bottom of the stack trace looks like this: private PersistenceManager persistenceManager ; public void close() { if( ! this. persistenceManager .isClosed()) {   | |
How Should I Configure objectdb.conf to Obtain 256KB Disk IO Requests and Maximize Shared PersistenceManager Entity Cache?.conf to give 256KB disk accesses and use PersistenceManager L1 ref=soft caching and datastore pagefile caching 1 MB (4 256KB sized pages). The goal is to have frequent PersistenceManager L1 | |
PersistenceManager.getObjectsById(Collection,boolean) throwing JDOExceptionPersistenceManager.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 | |
OutofMemory error with Object DB 2.0 its 1GB.(however, attached the screen shot from the profiler) I have also tried persistenceManager ... ? It may be the result of creating multiple PersistenceManager instances without closing them. support ... PersistenceManager instance (com.objectdb.jdo.PMImp) The application tries to persist records | |
"Attempt to lock a non entity object" error; PersistenceManager pm = em.unwrap( PersistenceManager .class); pm ... their content (discarding changes if any): PersistenceManager pm = em.unwrap( PersistenceManager .class); pm.currentTransaction().setRestoreValues(true); The first option | |
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 | |
evictAll() behavior PersistenceManager - it is useful only to see changes that have been committed by other persistence managers. To undo changes of the current PersistenceManager you will have to invoke pm.refreshAll ... PersistenceManager " Cool, that is exactly the effect I am looking for. What is the difference / characteristics | |
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 | |
Rename Application StringIdentity; ... } PersistenceManager persistenceManager = ...; Transaction transaction = persistenceManager .currentTransaction(); try{ transaction.begin(); MyClass myPersistedClass = persistenceManager | |
ObjectDb.conf Defaults entries under "General". import javax.jdo.JDOHelper; import javax.jdo. PersistenceManager ; import ... .getPersistenceManagerFactory(properties); PersistenceManager persistenceManager = persistenceManagerFactory.getPersistenceManager(); persistenceManager .close(); persistenceManagerFactory.close(); } } CBE CBE Is it expected | |
JOD problems regarding detachCopy() Hi, I am new to JDO and trying to get the PersistenceManager .detachCopy functionality working. I ... =JDOHelper.getPersistenceManagerFactory(properties); PersistenceManager pm = pmf.getPersistenceManager ... "); PersistenceManagerFactory pmf =JDOHelper.getPersistenceManagerFactory(properties); PersistenceManager pm | |
Query and commit simultaneously EntityManager/ PersistenceManager instance then operations are executed sequentially ... / PersistenceManager level. To have real concurrent operations, you have to use ObjectDB 2.0 (and not ObjectDB 1.0) and you have to use multiple EntityManager/ PersistenceManager instances, usually one per thread | |
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 | |
object creation during pmf.getPersistenceManager() PersistenceManager / EntityManager instantiation operations, which are lighter) - in an ordinary ... ; } EntityWithJdoConstructor( PersistenceManager pm) {   | |
Setting temp directory location in ObjectDB HI, I am using ObjectDB and would to change the temp directory location wihtout using objectDB.conf file. I am using JDO and setting the persistenceManager as follow properties.setProperty("javax ... ); pmf.setNontransactionalWrite(false); PersistenceManager pm = pmf.getPersistenceManager(); When pmf | |
Access to client/server database from multiple applications;set to false or a new PersistenceManager for new operations (i.e. PersistenceManager | |
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 | |
Query filter comparing Dates = ClassWithDate.getCorrectDate(new Date()); PersistenceManager pm = getPMF().getPersistenceManager | |
Unable to persist TreeMap import java.util.SortedMap; import java.util.TreeMap; import javax.persistence.Entity; //---------------- @Entity class Person { public SortedMap memberships = new TreeMap (); } //Person import javax.jdo. PersistenceManager ; import javax.persistence.Entity; import javax.persistence | |
Getting java.lang.ArithmeticException: / by zero HI, I am using ObjectDb 1.x and getting the following exception while calling the following code PersistenceManager pm = getPersistenceManager(); if (!pm.isClosed()){   | |
JDO sequences from ORM file below and persistenceManager .getSequence("com.spiffymap.model.UserSequence") returns null as | |
java.lang.UnsupportedOperationException().begin(); em.unwrap( PersistenceManager .class).newQuery(License.class).deletePersistentAll(); em | |
Updating existing persistence entries. Both Hibernate and ObjectDB have an old API ( Session in Hibernate, JDO PersistenceManager in | |
Index causes increased memory usage transactions. When Does each PersistenceManager have its own 64mb processing cache?  | |
pm.newObjectIdInstance returns null) bmcalist Brian McAlister The first thing that PersistenceManager 's newObjectIdInstance does | |
javax.transaction.Synchronization with Java SE 10.0.1 Greetings, I am trying to get my app running on Java 10 (up to now it runs on Java 8) and with the latest version of ObjectDB it enhances fine, but during runtime when first trying to instantiate the PersistenceManager , it gives me the following error java.lang.NoClassDefFoundError | |
package.jdo validation error (Connection timed out); pmf.setMultithreaded(true); PersistenceManager pm = pmf | |
How to change properties in urls2.xml? PersistenceManager . Today, copying urls located in urls2.xml allow me to connect to my databases. Unfortunatly | |
JDOHelper.isDetached failure ? Running this example code: public static void main(String[] args) { PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory("test.odb"); PersistenceManager pm = pmf.getPersistenceManager(); pm.currentTransaction().begin(); TestClass test = new TestClass(1234,"test"); pm | |
Internal error; PersistenceManager by multiple threads and / or other PersistenceManager instances. You wrote: Both threads ... of them uses only objects from its own PersistenceManager ? There are several things ... guess for a possible cause of this exception is sharing entity objects of one PersistenceManager by | |
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 | |
Query on primary key is slow when using 'IN', that could be even faster, but didn't find one. I thought PersistenceManager .getObjectsById | |
ObjectDB 2.7.0 PersistenceManager . Fixed an "Enhancement ... is old" bug on overriding persistent properties |