Java Data Objects (JDO) is a specification defining a standard method to access persistent data in databases through POJO (plain old Java objects). It provides an interface-based definition of object persistence for the Java programming language mainly dealing with storing, querying and retrieving database objects.
JDO provides a means for persisting objects to a relational database. The term persistence here means storing a piece of information after the program exits. This task is quite challenging since it involves serializing the orderly placed structured objects into a tabular database. The JDO serves as an alternative programming interface, which helps to achieve object persistence in Java technology through XML metadata and bytecode enhancements.
JDO is well-known for supporting object persistence transparency, as follows:
The benefits of JDO implementations include portability, high performance, seamless integration with EJB, object transparency and ease of use.
The JDO classes are of three types:
1. Persistence-Capable: These are the type of classes whose instances can be persisted into a database. This type of class needs enhancement, as per JDO metadata specification, before they can be used in JDO environment.
2. Persistence-Aware: This type of class manipulates the persistence capable class. These classes are enhanced with minimal JDO metadata.
3. Normal: This type of class is non-persistable and does not require JDO metadata.
Read More ยป
Get Techopedia delivered to your inbox!