|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DriverFunction
This function can import/export a file into/from a table. Connection may be on a remote H2/Postgre database
| Nested Class Summary | |
|---|---|
static class |
DriverFunction.IMPORT_DRIVER_TYPE
A linked table is created instantly but work only if the DataBase is local. |
| Method Summary | |
|---|---|
void |
exportTable(Connection connection,
String tableReference,
File fileName,
ProgressVisitor progress)
|
String[] |
getExportFormats()
Get the file extensions that can be saved by this driver |
String |
getFormatDescription(String format)
|
DriverFunction.IMPORT_DRIVER_TYPE |
getImportDriverType()
|
String[] |
getImportFormats()
Get the file extensions that can be loaded by this driver |
void |
importFile(Connection connection,
String tableReference,
File fileName,
ProgressVisitor progress)
|
| Method Detail |
|---|
DriverFunction.IMPORT_DRIVER_TYPE getImportDriverType()
String[] getImportFormats()
String[] getExportFormats()
String getFormatDescription(String format)
format - Format given through getImportFormats and/or getExportFormats
void exportTable(Connection connection,
String tableReference,
File fileName,
ProgressVisitor progress)
throws SQLException,
IOException
connection - Active connection, do not close this connection.tableReference - [[catalog.]schema.]table referencefileName - File path to write, if exists it may be replaced
SQLException - Table read error
IOException - File write error
void importFile(Connection connection,
String tableReference,
File fileName,
ProgressVisitor progress)
throws SQLException,
IOException
connection - Active connection, do not close this connection.tableReference - [[catalog.]schema.]table referencefileName - File path to read
SQLException - Table write error
IOException - File read error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||