net.sourceforge.squirrel_sql.plugins.dataimport
Class ImportDataIntoTableExecutor

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.dataimport.ImportDataIntoTableExecutor

public class ImportDataIntoTableExecutor
extends Object

This class does the main work for importing the file into the database.

Author:
Thorsten Mürell

Constructor Summary
ImportDataIntoTableExecutor(ISession session, ITableInfo table, TableColumnInfo[] columns, List<String> importerColumns, ColumnMappingTableModel mapping, IFileImporter importer)
          The standard constructor
 
Method Summary
 void execute()
          Starts the thread that executes the insert operation.
 void setSkipHeader(boolean skip)
          If the header should be skipped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportDataIntoTableExecutor

public ImportDataIntoTableExecutor(ISession session,
                                   ITableInfo table,
                                   TableColumnInfo[] columns,
                                   List<String> importerColumns,
                                   ColumnMappingTableModel mapping,
                                   IFileImporter importer)
The standard constructor

Parameters:
session - The session
table - The table to import into
columns - The columns of the destination table
importerColumns - The columns of the importer
mapping - The mapping of the columns
importer - The file importer
Method Detail

setSkipHeader

public void setSkipHeader(boolean skip)
If the header should be skipped

Parameters:
skip -

execute

public void execute()
Starts the thread that executes the insert operation.



Copyright © 2001-2011. All Rights Reserved.