|
|||||||||
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.
DBAdapter
instead.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()
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. |
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)
|
Field Detail |
---|
static final IRegistry<String,IDBAdapter> REGISTRY
Method Detail |
---|
String getName()
String getVersion()
@Deprecated Driver getJDBCDriver()
@Deprecated DataSource createJDBCDataSource()
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
boolean dropTable(IDBTable table, Statement statement)
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)
String sqlRenameField(IDBField field, String oldName)
String sqlModifyField(IDBField field)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |