Driver - file driverpublic abstract class FileEngine<Driver extends org.h2gis.api.FileDriver> extends Object implements org.h2.api.TableEngine
| Constructor and Description |
|---|
FileEngine() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Driver |
createDriver(File filePath,
List<String> args)
Create the driver instance using the file name and additional arguments provided in SQL create table request.
|
org.h2.table.Table |
createTable(org.h2.command.ddl.CreateTableData data) |
protected abstract void |
feedCreateTableData(Driver driver,
org.h2.command.ddl.CreateTableData data)
Add columns definition of the file into the CreateTableData instance.
|
static String |
getUniqueColumnName(String base,
List<org.h2.table.Column> columns)
Compute unique column name among the other columns
|
public org.h2.table.Table createTable(org.h2.command.ddl.CreateTableData data)
createTable in interface org.h2.api.TableEnginepublic static String getUniqueColumnName(String base, List<org.h2.table.Column> columns)
base - Returned name if there is no duplicatecolumns - Other existing columnsprotected abstract Driver createDriver(File filePath, List<String> args) throws IOException
filePath - First argument, file nameargs - Additional argument, contains the file name as first argumentIOExceptionprotected abstract void feedCreateTableData(Driver driver, org.h2.command.ddl.CreateTableData data) throws IOException
driver - driver objectdata - Data to initialiseIOExceptionCopyright © 2019 CNRS. All rights reserved.