About execute

issue

Issue with UPPER ?

Hi, Assuming those queries which are all the same except the UPPER calls: ... is true - execute only step 8a2. If ... is false - execute only step 8a3. [Step 8a2] Scan type ... 8a3a] If ($3!=null) is true - execute only step 8a3e. If ($3!=null) is false - execute only step 8a3f. [Step 8a3b] Scan type ...

 
forum_thread

exception during online backup

hi   from time to time i get exception during online backup in server/client config: ... ( "objectdb backup" ) ; backupQuery. execute ( ) ; but this is not an urgent ...

 
forum_thread

Listing large number of complicated objects with paging.

Hi, For last few hours I was working on a problem with bad performance and memory problems with such a simple query: select prod from Product prod order by prod.id ASC Right now I have 55541 'Product' (attached to this post) entities in database and I'm trying to speed listing them with paging. The problem is, that running code that looks like this: #1 2011-11-15 18:32 Hi, For last few hours I was working on a problem with bad performance and memory problems with such a si ...

 
forum_thread

Remove an entity which attributes were changed - OptimisticLockException

We use an OSGi environment and we have three OSGi plugins.   In plugin A an entity is loaded and the entity is passed to plugin B. Plugin B changes an attribute on the entity. Plugin C removes the entity from the database. After commit the transaction an exception is caused with optimistic lock exception of the removed entity. If this operations on the entity are executed in only one plugin, it works well. ... with plugins com.btc.ep.base.dal.tests.it and main.You can execute the unit test OptimisticLockTest as a JUnit Plugin Test. The test ... 19:05 Please execute the unit test OptimisticLockTest as a JUnit Plugin Test. ...

 
forum_thread

Restrict by class in query

I have the following bit of code: ... and a link with the same name into the database, and execute the above query, I get a List<Folder> with two entries in it ...

 
forum_thread

Query vs Extent for retrieving data

I'm running into a problem where data that is retrieved via a Query comes out null, but when I retrieve it using an Extent everything is present. We have a very simple class: public class PositionReportManagerBean implements InstanceCallbacks { private int maxReports; private List<PositionReportBean> reports; } I have a test file with 5 instances of PositionReportManagerBean, each with maxReports set to 10 and 5 PositionReportBeans in reports. I can verify with the ObjectDB explorer that all of the data is there. If I call ... back with all of the data as I would expect. However, if I execute a Query: javax. jdo . Query q = pm. newQuery ... ; Collection c = ( Collection ) q. execute ( ) ; Then the PositionReportManagerBeans ...

 
forum_thread

Remove a modified entity cause an optimistic lock exception

Hello, the following examples load and modify an entity, and load and remove the same entity. The first example 'SetAndRemoveIssue.java' is a simple java program which executes without errors. The second example is an OSGi program which fails with an optimistic lock exception. Both examples are equivalent, please execute SetAndRemoveIssue.java (in the OSGi example as a plugin-test). Can you explain the optimistic lock exception? ... exception. Both examples are equivalent, please execute SetAndRemoveIssue.java (in the OSGi example as a plugin-test). ... Please clean and build the example in eclipse before you execute the plugin test SetAndRemoveIssue. ...

 
forum_thread

Weird behaviour with enhanced classes and embedded entities

Hi, I've found some weird behaviour in my project (www.tinymediamanager.org): Sometimes some entries of my ArrayLists with embedded entities are missing. I've hunted the problem down to an enhanced/proxied list in my entity which contains embedded entities and some .add(obj) are simply failing. Here is a small sscce which reproduces the issue: ... ( ) ) ; executor. execute ( task1 ) ; executor. execute ( task2 ) ; executor. execute ( task3 ...

 
manual

Online Backup

Online Backup enables backing up an ObjectDB database while it is in active use by applications. The ability to create a backup while the system is running is essential in applications and services that have to be available 24/7/365. An ObjectDB database can be backed up by simply copying or archiving the database file while the database is offline (i.e. when it is not open in an ObjectDB server and not in use by any application), since an ObjectDB database is stored as an o ...

 
forum_thread

Query problem after transaction commit

I have a machine running the objectdb server and the client on another machine connect to it. The client program can connect to the server and query to get all the records. However, after transaction.begin ... persist(p) .. commit of a new object, my client program can no longer retrieve the old records but only the latest stored record. I tried to run database explorer on the server machine and able to see all the records including the new stored record. #1 2016-11-16 17:32 I have a machine running the objectdb server and the client on another machine connect to it. The client program ...