net.sourceforge.squirrel_sql.plugins.oracle.sqlloader.model
Class ControlFileGenerator

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.oracle.sqlloader.model.ControlFileGenerator

public class ControlFileGenerator
extends Object

Class for writing SQL*Loader control files from table information.

Author:
Jos� David Moreno Ju�rez

Constructor Summary
ControlFileGenerator()
           
 
Method Summary
static void writeControlFile(String table, String[] columns, boolean append, String fieldSeparator, String stringDelimitator, String directory)
          Writes a SQL*Loader control file using the specified settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlFileGenerator

public ControlFileGenerator()
Method Detail

writeControlFile

public static void writeControlFile(String table,
                                    String[] columns,
                                    boolean append,
                                    String fieldSeparator,
                                    String stringDelimitator,
                                    String directory)
                             throws IOException
Writes a SQL*Loader control file using the specified settings.

Parameters:
table - table name
columns - column names
append - whether to append or replace
fieldSeparator - field separator used in the data file
stringDelimitator - string delimitator used in the data file
directory - directory to store the control file
Throws:
IOException - thrown when an error occurs while writing the control file


Copyright © 2001-2010. All Rights Reserved.