org.intermine.sql.writebatch
Class FlushJobUpdateStatistics

java.lang.Object
  extended by org.intermine.sql.writebatch.FlushJobUpdateStatistics
All Implemented Interfaces:
FlushJob

public class FlushJobUpdateStatistics
extends java.lang.Object
implements FlushJob

An interface representing a job to be performed when actually flushing data to a database.


Constructor Summary
FlushJobUpdateStatistics(java.util.Map<java.lang.String,java.lang.Integer> activity, BatchWriter batchWriter, java.sql.Connection con)
          Constructor for this class
 
Method Summary
 void flush()
          Performs the flush of all data represented by this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlushJobUpdateStatistics

public FlushJobUpdateStatistics(java.util.Map<java.lang.String,java.lang.Integer> activity,
                                BatchWriter batchWriter,
                                java.sql.Connection con)
Constructor for this class

Parameters:
activity - a Map from table name to amount of activity in this batch write
batchWriter - a BatchWriter to use to update the statistics
con - a Connection with which to perform the updates
Method Detail

flush

public void flush()
           throws java.sql.SQLException
Performs the flush of all data represented by this object.

Specified by:
flush in interface FlushJob
Throws:
java.sql.SQLException - if there is a problem performing the flush