org.ektorp.dataload
Class DefaultDataLoader
java.lang.Object
org.ektorp.dataload.DefaultDataLoader
public class DefaultDataLoader
- extends java.lang.Object
Helper for DataLoaders
- Author:
- Henrik Lundgren created 7 nov 2009
|
Method Summary |
protected void |
createDocument(org.codehaus.jackson.JsonNode n,
java.lang.String id)
Can be overidden in order to customize document creation. |
void |
load(java.io.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(java.io.Reader in)
- Reads documents from the reader and stores them in the database.
- Parameters:
in -
createDocument
protected void createDocument(org.codehaus.jackson.JsonNode n,
java.lang.String id)
- Can be overidden in order to customize document creation.
- Parameters:
n - id -
Copyright © 2011. All Rights Reserved.