7.1. JDO versus JDBC

Put in its simplest form, JDO can be used to build any Java application that needs to access data stored in a datastore, whatever the architecture of the Java application. To this extent, JDO and JDBC can be viewed as competing ways of accessing persistent data from Java. However, the difference between JDO and JDBC lies in JDO's object perspective.

For data-centric applications, whose main purpose is to store and retrieve record-oriented data, JDBC is likely the best tool for the job. Record-oriented data can easily be mapped directly to a relational model, and an application can leverage the power of SQL for ad hoc queries and data access. The focus is on the data.

For object-centric applications, whose main purpose is ...

Get Core Java™ Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.