public interface DriverFunction
| Modifier and Type | Interface and Description |
|---|---|
static class |
DriverFunction.IMPORT_DRIVER_TYPE
A linked table is created instantly but work only if the DataBase is local.
|
| Modifier and Type | Method and Description |
|---|---|
void |
exportTable(Connection connection,
String tableReference,
File fileName,
ProgressVisitor progress)
Export the specified table from the specified connection into the specified file.
|
void |
exportTable(Connection connection,
String tableReference,
File fileName,
ProgressVisitor progress,
String options)
Export the specified table from the specified connection into the specified file.
|
String[] |
getExportFormats()
Return the file extensions that can be saved by this driver
|
String |
getFormatDescription(String format)
Return the description of the specified format.
|
DriverFunction.IMPORT_DRIVER_TYPE |
getImportDriverType()
Return the driver import type.
|
String[] |
getImportFormats()
Return the file extensions that can be loaded by this driver
|
void |
importFile(Connection connection,
String tableReference,
File fileName,
ProgressVisitor progress)
Import the specified file into the specified table in the specified connection.
|
void |
importFile(Connection connection,
String tableReference,
File fileName,
ProgressVisitor progress,
boolean deleteTables)
Import the specified file into the specified table in the specified connection.
|
void |
importFile(Connection connection,
String tableReference,
File fileName,
ProgressVisitor progress,
String options)
Import the specified file into the specified table in the specified connection.
|
boolean |
isSpatialFormat(String extension)
Returns true if the file extension is from a spatial file, false otherwise or if the driver does not recognize
it.
|
DriverFunction.IMPORT_DRIVER_TYPE getImportDriverType()
String[] getImportFormats()
String[] getExportFormats()
String getFormatDescription(String format)
format - Format given through getImportFormats and/or getExportFormatsboolean isSpatialFormat(String extension)
extension - Extension to check.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 reference.fileName - File path to write, if exists it may be replaced.progress - Progress visitor following the execution.SQLException - Table read errorIOException - File write errorvoid exportTable(Connection connection, String tableReference, File fileName, ProgressVisitor progress, String options) 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 replacedprogress - options - Options to use for the export like encoding, separator ...
The options are different from a format to another.SQLException - Table read errorIOException - File write errorvoid importFile(Connection connection, String tableReference, File fileName, ProgressVisitor progress) throws SQLException, IOException
connection - Active connection, do not close this connection.tableReference - [[catalog.]schema.]table reference.fileName - File path to read.progress - Progress visitor following the execution.SQLException - Table write errorIOException - File read errorvoid importFile(Connection connection, String tableReference, File fileName, ProgressVisitor progress, String options) throws SQLException, IOException
connection - Active connection, do not close this connection.tableReference - [[catalog.]schema.]table referencefileName - File path to readprogress - options - Options to use for the export like encoding, separator ...
The options are different from a format to another.SQLException - Table write errorIOException - File read errorvoid importFile(Connection connection, String tableReference, File fileName, ProgressVisitor progress, boolean deleteTables) throws SQLException, IOException
connection - Active connection, do not close this connection.tableReference - [[catalog.]schema.]table referencefileName - File path to readprogress - deleteTables - True if the existing table used for the import should be deleted, false otherwise.SQLException - Table write errorIOException - File read errorCopyright © 2019 CNRS. All rights reserved.