org.intermine.sql.writebatch
Class FlushJobPostgresCopyImpl

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

public class FlushJobPostgresCopyImpl
extends java.lang.Object
implements FlushJob

An implementation of the FlushJob interface that represents a batch created in a Statement.


Constructor Summary
FlushJobPostgresCopyImpl(org.postgresql.copy.CopyManager copyManager, java.lang.String sql, byte[] data, int size)
          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

FlushJobPostgresCopyImpl

public FlushJobPostgresCopyImpl(org.postgresql.copy.CopyManager copyManager,
                                java.lang.String sql,
                                byte[] data,
                                int size)
Constructor for this class

Parameters:
copyManager - the CopyManager to use
sql - the SQL String containing the COPY command
data - a byte array of COPY data
size - the size of data
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