org.ektorp.dataload
Class DefaultDataLoader
java.lang.Object
org.ektorp.dataload.DefaultDataLoader
public class DefaultDataLoader
- extends Object
Helper for DataLoaders
- Author:
- Henrik Lundgren created 7 nov 2009
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 |
db
protected final CouchDbConnector db
DefaultDataLoader
public DefaultDataLoader(CouchDbConnector db)
DefaultDataLoader
public DefaultDataLoader(CouchDbConnector db,
org.codehaus.jackson.map.ObjectMapper objectMapper)
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.