Java Data Objects (JDO)
Modeling using JDO
Gopalan Suresh Raj
Persistence management is delegated to JDO. The user never needs to implement
the actual persistence infrastructure if he chooses to go with a JDO solution.
Therefore, the user is free to design his domain object model without unduly
constraining his design and be assured that the persistence mechanism is
automatically implemented for him.
JDO does not affect the visibility modifiers of the user's domain classes, or mandate the presence of accessor and mutator methods.
JDO does not affect the way in which persistence-capable domain classes manipulate application exceptions.
The application of default persistence modifiers by JDO enhancers allows JDO persistence descriptors to be relatively straightforward documents.
In general it is classes in the domain object model that need to be made persistence-capable. Application, GUI and other infrastructure classes are generally not persistence-capable.
Each persistence manager has at most one active transaction associated with it. The same Transaction instance can be used to begin and commit successive transactions for the life of the persistence manager.
Instances of persistence-capable classes instantiated directly with the new operator are Transient.
When making Transient objects Persistent, it is more common to employ “Persistence by Reachability” than to explicitly invoke makePersistent().
Detachment from the object graph and Deletion from the data store are two separate concepts in JDO.
click here to go to
My JDO HomePage...
click here to go
My Advanced Java Tutorial Page...
|About the Author...|
|Gopalan Suresh Raj is a Software Architect, Developer and an active Author. He has co-authored a number of books including "Professional JMS", "Enterprise Java Computing-Applications and Architecture" and "The Awesome Power of JavaBeans". His expertise spans enterprise component architectures and distributed object computing. Visit him at his Web Cornucopia© site (http://gsraj.tripod.com/) or mail him at firstname.lastname@example.org.|
This site was developed and is maintained by Gopalan Suresh Raj
This page has been visited times since February 26,2002.
Last Updated : Feb 26, 2002
All products and companies mentioned at this site are trademarks of their respective owners.