net.ontopia.persistence.rdbms
Class CSVExport
java.lang.Object
net.ontopia.persistence.rdbms.CSVExport
public class CSVExport
- extends Object
INTERNAL: Command line tool for exporting comma- or semicolon
separated files into a database.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
conn
protected Connection conn
separator
protected String separator
CSVExport
public CSVExport(Connection conn)
setSeparator
public void setSeparator(String separator)
escape
protected String escape(String value)
exportCSV
public void exportCSV(Writer writer,
String table,
String[] columns)
throws SQLException,
IOException
- Throws:
SQLException
IOException
main
public static void main(String[] argv)
throws Exception
- Throws:
Exception
usage
protected static void usage()
Copyright © 2000-2012 Ontopia.