NextDB Java API
Overview
In addition to our pure client side JavaScript API. We also offer a server side API.
This API is designed for Java programmers who are looking to hook their application to a hosted cloud database service. This API is ideal for JSP developers to easily data enable their pages. Used in conjunction with the NextDB.net JavaScript API, certain elements of the page can be rendered on the server, while other more dynamic elements can be rendered on the client using AJAX techniques with our JavaScript API. This API also works on Android and with a few minor tweaks it can work on J2ME.
The general design of this API is similar to the NextDB JavaScript API. There is a Callback interface that you need to implement to handle the JSON responses from the server. Or you can use the BasicCallback implementation class. The JSON data that is returned is parsed into the JSON.org Java libraries.
The Connection class allows for both synchronous and asynchronous communication styles. If you are using JSP, you must make the call synchronously. If you are building a mobile app or a desktop app, you must keep the network calls out of the UI thread so that the UI does not block, for this, we offer an asynchronous mode that spawns new threads.
Documentation The Java API documentation is available at
Our Java API is open source. You can get the source at:
http://code.google.com/p/nextdb/source/browse/trunk/java-client