|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Abstracts all aspects of a database that are vendor-specific.
Field Summary | |
---|---|
static IRegistry<String,IDBAdapter> |
REGISTRY
|
Method Summary | |
---|---|
DBType |
adaptType(DBType type)
Provide a way for the DBAdapter to override unsupported DB types with replacements. |
DataSource |
createJDBCDataSource()
|
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)
|
Driver |
getJDBCDriver()
|
int |
getMaxFieldNameLength()
|
int |
getMaxTableNameLength()
|
String |
getName()
|
String[] |
getReservedWords()
|
String |
getVersion()
|
boolean |
isDuplicateKeyException(SQLException ex)
Check if an exception indicates a constraint violation (duplicate key) |
boolean |
isReservedWord(String word)
|
boolean |
isTypeIndexable(DBType type)
|
boolean |
isValidFirstChar(char ch)
Check if a character is valid as first character. |
Field Detail |
---|
static final IRegistry<String,IDBAdapter> REGISTRY
Method Detail |
---|
String getName()
String getVersion()
Driver getJDBCDriver()
DataSource createJDBCDataSource()
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
boolean dropTable(IDBTable table, Statement statement)
String[] getReservedWords()
boolean isReservedWord(String word)
int getMaxTableNameLength()
int getMaxFieldNameLength()
boolean isTypeIndexable(DBType type)
DBType adaptType(DBType type)
boolean isValidFirstChar(char ch)
boolean isDuplicateKeyException(SQLException ex)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |