public interface RdbmsDriver
Modifier and Type | Method and Description |
---|---|
boolean |
checkIdentifierName(String identifier) |
void |
close() |
Statement |
createStatement() |
String |
formatIdentifier(String identifier)
Formats identifier (table and column name) to fulfill database storage
format (upper or lower case).
|
List<DBColumn> |
getColumns(String tableName)
Return columns informations for the specified table name.
|
Connection |
getConnection() |
String |
getExtraIdentifierCharacters()
Return a String containing extra characters available for table and
column name (those beyond a-z, A-Z, 0-9 and _).
|
String |
getInsertOrIgnoreQuery(DBTable tableName,
Map<String,String> data)
Generates an INSERT OR IGNORE SQL statement.
|
String |
getInsertOrIgnoreQuery(DBTable tableName,
String selectQuery) |
int |
getMaxTableNameLength()
Returns the maximum number of characters that this database allows in a
table name.
|
DatabaseMetaData |
getMetaData()
Returns database metadata
|
DBTable |
getTable(String tableName)
Returns the table information for the specified table name or null if
there is no table with this name.
|
CloseableIterator<DBTable> |
getTables()
Returns an iterator over the database tables.
|
boolean |
isCaseSensitive()
Return true if this database instance is case sensitive, false otherwise.
|
Connection getConnection()
Statement createStatement() throws SQLException
SQLException
void close()
DatabaseMetaData getMetaData() throws SQLException
SQLException
String getInsertOrIgnoreQuery(DBTable tableName, Map<String,String> data) throws SQLException
tableName
- data
- SQLException
String getInsertOrIgnoreQuery(DBTable tableName, String selectQuery) throws SQLException
tableName
- selectQuery
- SQLException
String formatIdentifier(String identifier) throws SQLException
identifier
- SQLException
CloseableIterator<DBTable> getTables() throws SQLException
SQLException
DBTable getTable(String tableName) throws SQLException
tableName
- The table name correctly formated (upper or lower case).SQLException
List<DBColumn> getColumns(String tableName) throws SQLException
tableName
- The table name correctly formated (upper or lower case).SQLException
boolean isCaseSensitive() throws SQLException
SQLException
String getExtraIdentifierCharacters() throws SQLException
SQLException
int getMaxTableNameLength() throws SQLException
SQLException
boolean checkIdentifierName(String identifier) throws SQLException
SQLException
Copyright © 2014–2018 GraphIK (INRIA - LIRMM). All rights reserved.