Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are the differences between the PersistenceBroker API and the ODMG API? Which one should I use in my applications?

0
Posted

What are the differences between the PersistenceBroker API and the ODMG API? Which one should I use in my applications?

0

The PersistenceBroker (PB) provides a minimal API for transparent persistence: • O/R mapping • Retrieval of objects with a simple query interface from RDBMS • storing (insert, update) of objects to RDBMS • deleting of objects from RDBMS This is all you need for simple applications as in tutorial1. The OJB ODMG implementation uses the PB as its persistence kernel. But it provides much more functionality to the application developer. ODMG is a full fledged API for Object Persistence, including: • OQL Query interface • real Object Transactions • A Locking Mechanism for management of concurrent threads (apps) accessing the same objects • predefined persistent capable Collections and Hashtables Some examples explaining the implications of these functional differences: • Say you use the PB to query an object O that has a collection attribute col with five elements a,b,c,d,e. Next you delete Objects d and e from col and store O again with PersistenceBroker.store(O); PB will store the remainin

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123