org.ektorp.dataload
Class DefaultDataLoader

java.lang.Object
  extended by org.ektorp.dataload.DefaultDataLoader

public class DefaultDataLoader
extends Object

Helper for DataLoaders

Author:
Henrik Lundgren created 7 nov 2009

Field Summary
protected  CouchDbConnector db
           
 
Constructor Summary
DefaultDataLoader(CouchDbConnector db)
           
DefaultDataLoader(CouchDbConnector db, org.codehaus.jackson.map.ObjectMapper objectMapper)
           
 
Method Summary
protected  void createDocument(org.codehaus.jackson.JsonNode n, String id)
          Can be overidden in order to customize document creation.
 void load(Reader in)
          Reads documents from the reader and stores them in the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

db

protected final CouchDbConnector db
Constructor Detail

DefaultDataLoader

public DefaultDataLoader(CouchDbConnector db)

DefaultDataLoader

public DefaultDataLoader(CouchDbConnector db,
                         org.codehaus.jackson.map.ObjectMapper objectMapper)
Method Detail

load

public void load(Reader in)
Reads documents from the reader and stores them in the database.

Parameters:
in -

createDocument

protected void createDocument(org.codehaus.jackson.JsonNode n,
                              String id)
Can be overidden in order to customize document creation.

Parameters:
n -
id -


Copyright © 2011. All Rights Reserved.