RowDataReceiver.java :  » Database-Client » SQL-Workbench » workbench » db » importer » Java Open Source

Java Open Source » Database Client » SQL Workbench 
SQL Workbench » workbench » db » importer » RowDataReceiver.java
/*
 * RowDataReceiver.java
 *
 * This file is part of SQL Workbench/J, http://www.sql-workbench.net
 *
 * Copyright 2002-2008, Thomas Kellerer
 * No part of this code maybe reused without the permission of the author
 *
 * To contact the author please send an email to: support@sql-workbench.net
 *
 */
package workbench.db.importer;

import java.sql.SQLException;
import workbench.db.ColumnIdentifier;
import workbench.db.TableIdentifier;

/**
 *
 * @author support@sql-workbench.net
 */
public interface RowDataReceiver
{
  boolean shouldProcessNextRow(); 
  void nextRowSkipped();
  
  void processRow(Object[] row) throws SQLException;
  void setTableCount(int total);
  void setCurrentTable(int current);
  void setTargetTable(TableIdentifier table, ColumnIdentifier[] columns)  throws SQLException;
  void importFinished();
  void importCancelled();
  void tableImportError();
  
  /**
   * Log an error with the receiver that might have occurred
   * during parsing of the source data. 
   */
  void recordRejected(String record);
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.