| java.lang.Object velosurf.sql.DriverInfo
DriverInfo | public class DriverInfo (Code) | | Contains specific description and behaviour of jdbc drivers.
Main sources:
- http://www.schemaresearch.com/products/srtransport/doc/modules/jdbcconf.html
- http://db.apache.org/torque/ and org.apache.torque.adapter classes
author: Claude Brisson |
addDriver | public static void addDriver(String name, String jdbcTag, String drivers, String pingQuery, String caseSensivity, String schemaQuery, String IDGenerationMethod, String lastInsertIDQuery, String ignorePrefix)(Code) | | Add a new driver.
Parameters: name - name Parameters: jdbcTag - jdbc tag Parameters: drivers - array of driver class names Parameters: pingQuery - ping query (e.g. "select 1") Parameters: caseSensivity - default case sensivity policy Parameters: schemaQuery - query to change schema Parameters: IDGenerationMethod - preferred ID generation method Parameters: lastInsertIDQuery - query to get last inserted ID value Parameters: ignorePrefix - ignore tables whose name matches this pattern |
getCaseSensivity | public String getCaseSensivity()(Code) | | Get case sensivity default policy.
case sensivity default policy |
getDriverInfo | public static DriverInfo getDriverInfo(String url, String driverClass)(Code) | | Get a driver info by url and driver class.
Parameters: url - database url Parameters: driverClass - driver class driver infos |
getDrivers | public String[] getDrivers()(Code) | | Get the list of driver class names.
array of driver class names |
getJdbcTag | public String getJdbcTag()(Code) | | Get the jdbc tag.
jdbc tag |
getLastInsertId | public long getLastInsertId(Statement statement) throws SQLException(Code) | | Get the last inserted id.
Parameters: statement - source statement last inserted id (or -1) throws: SQLException - |
getPingQuery | public String getPingQuery()(Code) | | Get the ping query.
ping query |
getSchemaQuery | public String getSchemaQuery()(Code) | | Get the schema setter query.
schema setter query |
ignoreTable | public boolean ignoreTable(String name)(Code) | | Check whether to ignore or not this table.
Parameters: name - table name whether to ignore this table |
|
|