public abstract class BulkSQLLoader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BulkSQLLoader.BulkSQLLoader_CSV |
static class |
BulkSQLLoader.BulkSQLLoader_Direct |
Modifier and Type | Field and Description |
---|---|
protected java.sql.Connection |
conn |
protected java.lang.String[] |
fieldNames |
protected java.lang.String |
schema |
protected java.lang.String |
table |
static java.io.File |
temporaryFilesDirectory |
Modifier and Type | Method and Description |
---|---|
abstract void |
addRow(java.lang.Object... values) |
static void |
copyCsvToDatabase(java.sql.Connection conn,
java.lang.String csvPath,
java.lang.String sqlSchema,
java.lang.String sqlTable) |
abstract void |
flush() |
static BulkSQLLoader |
newInstance(java.sql.Connection conn,
java.lang.String schema,
java.lang.String table,
java.lang.String[] fieldNames) |
public static java.io.File temporaryFilesDirectory
protected java.sql.Connection conn
protected java.lang.String schema
protected java.lang.String table
protected java.lang.String[] fieldNames
public static BulkSQLLoader newInstance(java.sql.Connection conn, java.lang.String schema, java.lang.String table, java.lang.String[] fieldNames) throws java.rmi.RemoteException
java.rmi.RemoteException
public abstract void addRow(java.lang.Object... values) throws java.rmi.RemoteException
java.rmi.RemoteException
public abstract void flush() throws java.rmi.RemoteException
java.rmi.RemoteException
public static void copyCsvToDatabase(java.sql.Connection conn, java.lang.String csvPath, java.lang.String sqlSchema, java.lang.String sqlTable) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException