|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.h2gis.drivers.file_table.FileEngine<Driver>
public abstract class FileEngine<Driver extends FileDriver>
Implement theses abstract methods in order to define a file engine.
| Constructor Summary | |
|---|---|
FileEngine()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileEngine()
| Method Detail |
|---|
public org.h2.table.Table createTable(org.h2.command.ddl.CreateTableData data)
createTable in interface org.h2.api.TableEngine
public static String getUniqueColumnName(String base,
List<org.h2.table.Column> columns)
base - Returned name if there is no duplicatecolumns - Other existing columns
protected abstract Driver createDriver(File filePath,
List<String> args)
throws IOException
filePath - First argument, file nameargs - Additional argument, contains the file name as first argument
IOException
protected abstract void feedCreateTableData(Driver driver,
org.h2.command.ddl.CreateTableData data)
throws IOException
data - Data to initialise
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||