couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "Getting_started_with_Java" by StefanNeudorfer
Date Mon, 21 Dec 2009 16:40:37 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Getting_started_with_Java" page has been changed by StefanNeudorfer.
http://wiki.apache.org/couchdb/Getting_started_with_Java?action=diff&rev1=8&rev2=9

--------------------------------------------------

  Getting started with Java and the CouchDB API.
  
  = JRelax =
- 
  Relax was born out of necessity of building a scalable and flexible persistence model on
top of CouchDB for a startup company.  The API was build from real usage patterns which were
extracted from real use cases.  I wanted to ensure that the API is consistent and pleasant
to use.
  
  See [[http://wiki.github.com/isterin/jrelax|JRelax project at github]].
  
  === Dependencies ===
-   * Restlet 2.0 ([[http://www.restlet.org/]])
+  * Restlet 2.0 (http://www.restlet.org/)
-   * Jackson (JSON Processor - [[http://jackson.codehaus.org/]])
+  * Jackson (JSON Processor - http://jackson.codehaus.org/)
  
  = jcouchdb =
- 
- jcouchdb is a new java5 CouchDB driver which allows you to choose your favourite style of
combining Java and CouchDB. From totally schema-less, collections-based Documents to a graph
of your own java objects or something in between. 
+ jcouchdb is a new java5 CouchDB driver which allows you to choose your favourite style of
combining Java and CouchDB. From totally schema-less, collections-based Documents to a graph
of your own java objects or something in between.
  
  See the [[http://code.google.com/p/jcouchdb/|jcouchdb project at google code]] for more
details.
  
  = CouchDB4J =
- 
  CouchDB4J is an updated Java library for CouchDB. It handles the REST style calls to the
CouchDB server behind the scenes, and give you a handle on the JSON objects directly. CouchDB4J
uses JSON-lib to handle mapping to/from JSON objects, which makes getting/setting properties
on the objects very easy. You can even map Java objects to JSON objects and back to make the
process easier.
  
  With CouchDB4J, you create a Session object that handles the CouchDB server communication.
From here, you can get a handle on your Database. From the ''Database'' you can run views
or retrieve ''Documents''. A ''!ViewResult'' is a special type of ''Document'' which contains
the id's of the ''Documents'' that matched your view function.
  
  == Dependencies ==
- 
-   * http://code.google.com/p/couchdb4j
+  * http://code.google.com/p/couchdb4j
-   * [[http://commons.apache.org/|Apache commons]]
+  * [[http://commons.apache.org/|Apache commons]]
-     * commons-httpclient
+   * commons-httpclient
-     * commons-beanutils
+   * commons-beanutils
-     * commons-codec
+   * commons-codec
-     * commons-collections
+   * commons-collections
-     * commons-lang
+   * commons-lang
-     * commons-logging
+   * commons-logging
-   * [[http://json-lib.sf.net/|JSON-lib]]
+  * [[http://json-lib.sf.net/|JSON-lib]]
-     * json-lib-2.0
+   * json-lib-2.0
-     * ezmorph
+   * ezmorph
  
  == Sample Usage ==
- 
  {{{
  Session s = new Session("localhost",5984);
  Database db = s.getDatabase("foodb");
@@ -69, +64 @@

  // Ad-Hoc view
  ViewResults resultAdHoc = db.adhoc("function (doc) { if (doc.foo=='bar') { return doc; }}");
  }}}
- 
  == Older Libraries ==
- 
  Older CouchDB Java library (doesn't support newer JSON syntax):
  
-   http://code.google.com/p/couchdb-lib/
+  . http://code.google.com/p/couchdb-lib/
  

Mime
View raw message