# ObjectDB

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/ObjectDB
> Markdown URL: https://mediated.wiki/source/ObjectDB.md
> Source: https://en.wikipedia.org/wiki/ObjectDB
> Source revision: 1341348601
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

**ObjectDB** is an [object database](/source/Object_database) for [Java](/source/Java_(programming_language)). It can be used in client-server mode and in embedded (in process) mode.

Unlike other object databases, ObjectDB does not provide its own proprietary API. Accordingly, working with ObjectDB requires using one of the two standard Java APIs: [JPA](/source/Java_Persistence_API) or [JDO](/source/Java_Data_Objects). Both APIs are built-in in ObjectDB,[2][3] so an intermediate [ORM](/source/Object-relational_mapping) software is not needed.[4][5]

## Features

ObjectDB is a cross platform software and can be used on various operating systems with Java SE 5 or higher. It can be integrated into [Java EE](/source/Java_Platform,_Enterprise_Edition) and [Spring](/source/Spring_Framework) web applications and deployed on servlet containers ([Tomcat](/source/Apache_Tomcat), [Jetty](/source/Jetty_(Web_server))) as well as on Java EE application servers ([GlassFish](/source/GlassFish), [JBoss](/source/JBoss_application_server)).[6][7] It was tested on various [JVMs](/source/Java_Virtual_Machine), including [HotSpot](/source/HotSpot_(virtual_machine)), [JRockit](/source/JRockit) and [IBM J9](/source/IBM_J9).[8]

The maximum database size is 128 TB (131,072 GB). The number of objects in a database is unlimited (except by the database size).[8]

All the persistable types of JPA and JDO are supported by ObjectDB, including user defined entity classes, user defined embeddable classes, standard Java collections, basic data types (primitive values, wrapper values, String, Date, Time, Timestamp) and any other serializable classes.[8]

Every object in the database has a unique ID. ObjectDB supports both traditional object database IDs, as well as RDBMS like primary keys, including composite primary keys and auto value generation and assignment,[8] as part of its support of [JPA](/source/Java_Persistence_API), which is mainly an API for RDBMS.

Two query languages are supported. The JDO Query Language ([JDOQL](/source/JDOQL)), which is based on Java syntax, and the JPA Query Language ([JPQL](/source/JPQL)), which is based on [SQL](/source/SQL) syntax. JPA 2 criteria queries are also supported.[8]

ObjectDB automatic [schema evolution](/source/Schema_evolution) handles most changes to classes transparently, including adding and removing of persistent fields, changing types of persistent fields, and modifying class hierarchy. Renaming persistable classes and persistent fields is also supported.[8]

## Tools and utilities

The following tools and utilities are included in the ObjectDB distribution:[9]

- **Database Explorer** - GUI tool for querying, viewing and editing database content.
- **Database Doctor** - Diagnoses and repairs possible database problems.
- **Replication** - Master-Slave replication (clustering) with unlimited number of slave nodes.
- **Online Backup** - Database backup by a simple query on an EntityManager.
- **Class Enhancer** - Boosts performance by preparing classes for persistence.
- **Transaction Replayer** - Recorder and replayer of database transactions.
- **BIRT Reports Driver** - Adds ObjectDB as a [BIRT](/source/BIRT_Project) data source and [JPQL](/source/Java_Persistence_Query_Language) / JDOQL queries as data sets.

## References

1. ["ObjectDB License"](https://www.objectdb.com/database/purchase)

1. ["Home"](https://www.objectdb.com/). *objectdb.com*

1. ["Java - is ObjectDB production ready?"](https://stackoverflow.com/questions/5291950/is-objectdb-production-ready)

1. ["Create applications using ObjectDb and JPA in NetBeans"](https://web.archive.org/web/20120905075427/http://www.javabeat.net/2011/02/create-applications-using-objectdb-and-jpa-in-netbeans/). *www.javabeat.net*. Archived from [the original](https://www.javabeat.net/2011/02/create-applications-using-objectdb-and-jpa-in-netbeans) on 2012-09-05.

1. ["Home"](https://www.jpab.org/). *jpab.org*

1. ["JPA Tutorials"](https://www.objectdb.com/tutorial)

1. ["Integrate ObjectDB into Your JPA-based Java Web App"](https://www.developer.com/java/web/integrate-objectdb-into-your-jpa-based-java-web-app.html). 6 April 2012.

1. ["ObjectDB Object Database Features"](https://www.objectdb.com/object/db/database/features)

1. ["Chapter 5 - Database Tools and Utilities"](https://www.objectdb.com/java/jpa/tool)

---
Adapted from the Wikipedia article [ObjectDB](https://en.wikipedia.org/wiki/ObjectDB) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/ObjectDB?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
