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
Editor

Margaret jest nagradzaną technical writerką, nauczycielką i wykładowczynią. Jest znana z tego, że potrafi w prostych słowach pzybliżyć złożone pojęcia techniczne słuchaczom ze świata biznesu. Od dwudziestu lat jej definicje pojęć z dziedziny IT są publikowane przez Que w encyklopedii terminów technologicznych, a także cytowane w artykułach ukazujących się w New York Times, w magazynie Time, USA Today, ZDNet, a także w magazynach PC i Discovery. Margaret dołączyła do zespołu Techopedii w roku 2011. Margaret lubi pomagać znaleźć wspólny język specjalistom ze świata biznesu i IT. W swojej pracy, jak sama mówi, buduje mosty między tymi dwiema domenami, w ten…