org.enableit.db
Class DataLoader

java.lang.Object
  |
  +--org.enableit.db.AbstractDBUtility
        |
        +--org.enableit.db.DataLoader

Deprecated. Functionality consolidated into org.enableit.db.darrt.DataHandler

public class DataLoader
extends AbstractDBUtility

A class to read CSV files and load data into a database.

Version:
v1.3
Author:
__AUTHOR__

Field Summary
static java.lang.String ABOUT
          Deprecated. CVS info about this class and its current version
 
Fields inherited from class org.enableit.db.AbstractDBUtility
driver, password, url, userid
 
Constructor Summary
DataLoader()
          Deprecated. Default Constructor
DataLoader(java.lang.String file)
          Deprecated. Constructor setting mandatory properties.
 
Method Summary
 void execute()
          Deprecated. Do the load.
static void main(java.lang.String[] args)
          Deprecated. Used as a simple test of the class.
 void setColumnDatatypes(java.lang.String datatypes)
          Deprecated. Set the datatypes of the columns to be inserted into.
 void setColumnNames(java.lang.String columns)
          Deprecated. Set the names of columns to be inserted into.
 void setDataSourceName(java.lang.String dataSourceName)
          Deprecated. Set the datasource name to get connections from.
 void setFile(java.io.File file)
          Deprecated. Set the file to be loaded.
 void setFile(java.lang.String file)
          Deprecated. Set the file to be loaded.
 void setTable(java.lang.String table)
          Deprecated. Set the file to be loaded.
 
Methods inherited from class org.enableit.db.AbstractDBUtility
setConnectionProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ABOUT

public static final java.lang.String ABOUT
Deprecated. 
CVS info about this class and its current version

See Also:
Constant Field Values
Constructor Detail

DataLoader

public DataLoader()
Deprecated. 
Default Constructor


DataLoader

public DataLoader(java.lang.String file)
Deprecated. 
Constructor setting mandatory properties.

Method Detail

setFile

public void setFile(java.io.File file)
Deprecated. 
Set the file to be loaded.


setFile

public void setFile(java.lang.String file)
Deprecated. 
Set the file to be loaded.


setTable

public void setTable(java.lang.String table)
Deprecated. 
Set the file to be loaded.
This field is not mandatory if metadat is supplied at the top of the CSV file.


setColumnNames

public void setColumnNames(java.lang.String columns)
Deprecated. 
Set the names of columns to be inserted into.

Parameters:
columns - as a comma separated list.

setColumnDatatypes

public void setColumnDatatypes(java.lang.String datatypes)
                        throws DBException
Deprecated. 
Set the datatypes of the columns to be inserted into.

DBException

setDataSourceName

public void setDataSourceName(java.lang.String dataSourceName)
Deprecated. 
Set the datasource name to get connections from.


execute

public void execute()
             throws DBException
Deprecated. 
Do the load.

DBException

main

public static void main(java.lang.String[] args)
Deprecated. 
Used as a simple test of the class.



Copyright © 1999-2004 enableIT.org. All Rights Reserved.