Java Data Objects

Why Trust Techopedia

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

Margaret Rouse
Technology Specialist
Margaret Rouse
Technology Specialist

Margaret is an award-winning writer and educator known for her ability to explain complex technical topics to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles in the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret’s idea of ​​a fun day is to help IT and business professionals to learn to speak each other’s highly specialized languages.