public interface IDBAdapter
DBAdapter
instead.Modifier and Type | Field and Description |
---|---|
static IRegistry<String,IDBAdapter> |
REGISTRY |
Modifier and Type | Method and Description |
---|---|
DBType |
adaptType(DBType type)
Provide a way for the DBAdapter to override unsupported DB types with replacements.
|
IDBConnectionProvider |
createConnectionProvider(DataSource dataSource) |
DataSource |
createJDBCDataSource()
Deprecated.
As of 4.2 no longer supported because of IP issues for external build dependencies (the vendor driver libs).
|
boolean |
createTable(IDBTable table,
Statement statement) |
Set<IDBTable> |
createTables(Iterable<? extends IDBTable> tables,
Connection connection) |
boolean |
dropTable(IDBTable table,
Statement statement) |
Collection<IDBTable> |
dropTables(Iterable<? extends IDBTable> tables,
Connection connection) |
int |
getFieldLength(DBType type)
Returns the column length for the given database type.
|
Driver |
getJDBCDriver()
Deprecated.
As of 4.2 no longer supported because of IP issues for external build dependencies (the vendor driver libs).
|
int |
getMaxFieldNameLength() |
int |
getMaxTableNameLength() |
String |
getName() |
String[] |
getReservedWords() |
String |
getVersion() |
boolean |
isColumnNotFoundException(SQLException ex) |
boolean |
isDuplicateKeyException(SQLException ex)
Check if an exception indicates a constraint violation (duplicate key)
|
boolean |
isReservedWord(String word) |
boolean |
isTableNotFoundException(SQLException ex) |
boolean |
isTypeIndexable(DBType type) |
boolean |
isValidFirstChar(char ch)
Check if a character is valid as first character.
|
Connection |
modifyConnection(Connection connection) |
void |
readSchema(Connection connection,
IDBSchema schema) |
IDBSchema |
readSchema(Connection connection,
String name) |
String |
sqlModifyField(IDBField field) |
String |
sqlRenameField(IDBField field,
String oldName) |
void |
updateSchema(Connection connection,
IDBSchema schema,
IDBSchemaDelta delta) |
static final IRegistry<String,IDBAdapter> REGISTRY
String getName()
String getVersion()
@Deprecated Driver getJDBCDriver()
@Deprecated DataSource createJDBCDataSource()
IDBConnectionProvider createConnectionProvider(DataSource dataSource)
Connection modifyConnection(Connection connection)
IDBSchema readSchema(Connection connection, String name)
void readSchema(Connection connection, IDBSchema schema)
void updateSchema(Connection connection, IDBSchema schema, IDBSchemaDelta delta) throws DBException
DBException
Set<IDBTable> createTables(Iterable<? extends IDBTable> tables, Connection connection) throws DBException
DBException
boolean createTable(IDBTable table, Statement statement) throws DBException
DBException
Collection<IDBTable> dropTables(Iterable<? extends IDBTable> tables, Connection connection) throws DBException
DBException
String[] getReservedWords()
boolean isReservedWord(String word)
int getMaxTableNameLength()
int getMaxFieldNameLength()
int getFieldLength(DBType type)
type
- the DBType
to check.boolean isTypeIndexable(DBType type)
DBType adaptType(DBType type)
boolean isValidFirstChar(char ch)
boolean isDuplicateKeyException(SQLException ex)
boolean isTableNotFoundException(SQLException ex)
boolean isColumnNotFoundException(SQLException ex)
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html