|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enableit.db.AbstractDBUtility | +--org.enableit.db.DataLoader
A class to read CSV files and load data into a database.
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 |
public static final java.lang.String ABOUT
Constructor Detail |
public DataLoader()
public DataLoader(java.lang.String file)
Method Detail |
public void setFile(java.io.File file)
public void setFile(java.lang.String file)
public void setTable(java.lang.String table)
public void setColumnNames(java.lang.String columns)
columns
- as a comma separated list.public void setColumnDatatypes(java.lang.String datatypes) throws DBException
DBException
public void setDataSourceName(java.lang.String dataSourceName)
public void execute() throws DBException
DBException
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |