Re: Is possible store an object update in Ozone Database?
Per Nyfelt <[email protected]> Tue, 29 Nov 2005 11:10:21 +0000
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Organization | New Field Consulting |
| Message-ID | <[email protected]> |
Hi,
There is no specific method for update in Ozone. Each method that updates the
object is marked with an @update javadoc tag (or an //update comment after
the method or a method name pattern passed to OPP - see turorial and
examples). The resulting proxy generated by OPP will signal to the server how
to behave. My guess is that you are running Ozone as a local embedded
database and that objects are not correctly marked as updates which would
mean that changes are not stored persistantly. The whole point and great
advantage of Ozone over other persistence frameworks such as JDO, Hibernate
etc is that storage is truly transparent - no storageManager.persist(obj) or
whatever just normal java interaction with and the server will take care of
persistence for you!
Best regards,
Per
On Tuesday 29 November 2005 04.43, Naaliel Mendes wrote:
> Hi,
> I'm trying store an alteration in Ozone database without sucess. So, I
> need help.
> I have the following line in the sense of Ozone + Benchmark OO7:
>
> Benchmark anBenchmark = (Benchmark)
> anDatabase.objectForName("OO7Benchmark");
>
> Well, I can found the elements of OO7Benchmark throught BenchmarkImpl
> methods. In this moment, I take a object from class OO7_AtomicPartImpl
> and use setX to define a new value. At this moment, I would like store
> this information in database, but I don't know how. When I access this
> object in the currently database, I can see that new value (for this I
> use traversal query). But, when database is off and after on, I can't
> see the updates, the new value disappear. With this scenario, I regard
> that my updates were not persisted in Ozone database.
>
> For this side, I can be wrong. Perhaps, any concept is hidden for me
> now. When I see org.ozoneDB.Database I can see methods for
> create/copy/delete an object, but I don't see any method for update an
> object.
>
> Regards,
> Naaliel Mendes
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&op=Click
> _______________________________________________
> Ozone-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ozone-users
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click