package org.slc.sli.ingestion;

/**
 * Generic interface for writing resources.
 *
 * @author dduran
 *
 */
public interface ResourceWriter<T> {

    void writeResource(T t, String jobId);

    void insertResource(T t, String jobId);
}

@@ -25,16 +25,40 @@
 stion;%0A%0A
+import java.util.List;%0A%0A
 /**%0A * G
@@ -171,75 +171,736 @@
     
-void writeResource(T t, String jobId);%0A%0A    void insertResource(T t
+/**%0A     * Write an entity to the data store (using 'upsert').%0A     * %0A     * @param t Entity to be written.%0A     * @param jobId Current batch job id.%0A     */%0A    void writeResource(T t, String jobId);%0A%0A    /**%0A     * Inserts an entity to the data store (using 'insert').%0A     * %0A     * @param t Entity to be written.%0A     * @param jobId Current batch job id.%0A     */%0A    void insertResource(T t, String jobId);%0A%0A    /**%0A     * Inserts multiple entities to the data store (using 'insert').%0A     * %0A     * @param t Entities to be written.%0A     * @param collectionName Name of collection to write entities to.%0A     * @param jobId Current batch job id.%0A     */%0A    void insertResources(List%3CT%3E neutralRecords, String collectionName
 , St

add insertResources() method for batch insert functionality to data store