public abstract class AbstractRdbmsDriver extends Object implements RdbmsDriver
Constructor and Description |
---|
AbstractRdbmsDriver(Connection connection) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkIdentifierName(String identifier) |
void |
close() |
Statement |
createStatement() |
protected void |
finalize() |
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 _).
|
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.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInsertOrIgnoreQuery, getInsertOrIgnoreQuery
public AbstractRdbmsDriver(Connection connection) throws SQLException
SQLException
public Connection getConnection()
getConnection
in interface RdbmsDriver
public DatabaseMetaData getMetaData()
RdbmsDriver
getMetaData
in interface RdbmsDriver
public Statement createStatement() throws SQLException
createStatement
in interface RdbmsDriver
SQLException
public CloseableIterator<DBTable> getTables() throws SQLException
RdbmsDriver
getTables
in interface RdbmsDriver
SQLException
public DBTable getTable(String tableName) throws SQLException
RdbmsDriver
getTable
in interface RdbmsDriver
tableName
- The table name correctly formated (upper or lower case).SQLException
public List<DBColumn> getColumns(String tableName) throws SQLException
RdbmsDriver
getColumns
in interface RdbmsDriver
tableName
- The table name correctly formated (upper or lower case).SQLException
public String formatIdentifier(String identifier) throws SQLException
RdbmsDriver
formatIdentifier
in interface RdbmsDriver
SQLException
public boolean isCaseSensitive() throws SQLException
RdbmsDriver
isCaseSensitive
in interface RdbmsDriver
SQLException
public String getExtraIdentifierCharacters() throws SQLException
RdbmsDriver
getExtraIdentifierCharacters
in interface RdbmsDriver
SQLException
public int getMaxTableNameLength() throws SQLException
RdbmsDriver
getMaxTableNameLength
in interface RdbmsDriver
SQLException
public boolean checkIdentifierName(String identifier) throws SQLException
checkIdentifierName
in interface RdbmsDriver
SQLException
protected void finalize() throws Throwable
public void close()
close
in interface RdbmsDriver
Copyright © 2014–2018 GraphIK (INRIA - LIRMM). All rights reserved.