Java Data Objects

What Does Java Data Objects Mean?

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.

Advertisements

Techopedia Explains Java Data 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 JDO instance to the database is handled in a transparent way.
JDO is transparent to the Java objects being persistent. There is no requirement to add attributes to Java classes as it even works well with fields without get and set methods as well as with fields offering private visibility.
Programs written can be executed against relational databases, object databases, file system terms and XML documents.
The JDO is transparent to the database itself, which means porting of applications to different databases supporting JDO implementation is now relatively easy. And the binary compatibility of JDO instances ensures that it does not require recompilation even if there are alterations at the source code level.

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. The evolution of JDO for object persistence has finally laid the issues of loading and storing data to rest.

Advertisements

Related Terms

Latest Data Management Terms

Related Reading

Margaret Rouse

Margaret Rouse is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical, business audience. Over the past twenty years her explanations have appeared on TechTarget websites and she's been cited as an authority in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine and Discovery Magazine.Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages. If you have a suggestion for a new definition or how to improve a technical explanation, please email Margaret or contact her…