JSON Datastores

DataNucleus supports persisting/retrieving objects to/from JSON datastores (using the datanucleus-json plugin). Support for JSON is in its early stages and will be enhanced in future releases. If you wish to help out in this effort either by contributing or by sponsoring particular functionality please contact us via the DataNucleus Forum.

Datastore Connection

The following persistence properties will connect to JSON at a URL

datanucleus.ConnectionURL=json:http://www.mydomain.com/somepath/
datanucleus.ConnectionUserName=
datanucleus.ConnectionPassword=


So you create your PersistenceManagerFactory or EntityManagerFactory with these properties. Thereafter you have the full power of the JDO or JPA APIs at your disposal, for your JSON datastore.

Queries

Access Platform allows you to query the objects in the datastore using the following

  • JDOQL - language based around the objects that are persisted and using Java-type syntax
  • JPQL - language based around the objects that are persisted and using SQL-like syntax