|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object velosurf.sql.DriverInfo
public class DriverInfo
Contains specific description and behaviour of jdbc drivers.
Main sources:
Field Summary | |
---|---|
private java.lang.String |
caseSensivity
case-sensivity |
private static java.util.Map<java.lang.String,DriverInfo> |
driverByClass
map driver class -> driver infos. |
private static java.util.Map<java.lang.String,DriverInfo> |
driverByVendor
map jdbctag -> driver infos. |
private java.lang.String[] |
drivers
list of driver classes |
private java.lang.String |
IDGenerationMethod
ID generation method |
private java.util.regex.Pattern |
ignorePattern
ignore tables matchoing this pattern |
private java.lang.String |
jdbcTag
jdbc tag of the database vendor |
private java.lang.String |
lastInsertIDQuery
query used to retrieve the last inserted id |
private java.lang.String |
name
name of the database vendor |
private java.lang.String |
pingQuery
ping SQL query |
private java.lang.String |
schemaQuery
SQL query to set the current schema |
Constructor Summary | |
---|---|
private |
DriverInfo(java.lang.String name,
java.lang.String jdbcTag,
java.lang.String[] drivers,
java.lang.String pingQuery,
java.lang.String caseSensivity,
java.lang.String schemaQuery,
java.lang.String IDGenerationMethod,
java.lang.String lastInsertIDQuery,
java.lang.String ignorePattern)
Driver info constructor. |
Method Summary | |
---|---|
static void |
addDriver(java.lang.String name,
java.lang.String jdbcTag,
java.lang.String[] drivers,
java.lang.String pingQuery,
java.lang.String caseSensivity,
java.lang.String schemaQuery,
java.lang.String IDGenerationMethod,
java.lang.String lastInsertIDQuery,
java.lang.String ignorePrefix)
Add a new driver. |
java.lang.Object |
filterValue(java.lang.Object value)
Driver-specofic value filtering |
java.lang.String |
getCaseSensivity()
Get case sensivity default policy. |
static DriverInfo |
getDriverInfo(java.lang.String url,
java.lang.String driverClass)
Get a driver info by url and driver class. |
java.lang.String[] |
getDrivers()
Get the list of driver class names. |
java.lang.String |
getJdbcTag()
Get the jdbc tag. |
long |
getLastInsertId(java.sql.Statement statement)
Get the last inserted id. |
java.lang.String |
getPingQuery()
Get the ping query. |
java.lang.String |
getSchemaQuery()
Get the schema setter query. |
boolean |
ignoreTable(java.lang.String name)
Check whether to ignore or not this table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String name
private java.lang.String jdbcTag
private java.lang.String[] drivers
private java.lang.String pingQuery
private java.lang.String caseSensivity
private java.lang.String schemaQuery
private java.lang.String IDGenerationMethod
private java.lang.String lastInsertIDQuery
private java.util.regex.Pattern ignorePattern
private static java.util.Map<java.lang.String,DriverInfo> driverByVendor
private static java.util.Map<java.lang.String,DriverInfo> driverByClass
Constructor Detail |
---|
private DriverInfo(java.lang.String name, java.lang.String jdbcTag, java.lang.String[] drivers, java.lang.String pingQuery, java.lang.String caseSensivity, java.lang.String schemaQuery, java.lang.String IDGenerationMethod, java.lang.String lastInsertIDQuery, java.lang.String ignorePattern)
name
- namejdbcTag
- jdbc tagdrivers
- array of driver class namespingQuery
- ping query (e.g. "select 1")caseSensivity
- default case sensivity policyschemaQuery
- query to change schemaIDGenerationMethod
- preferred ID generation methodlastInsertIDQuery
- query to get last inserted ID valueignorePattern
- ignore tables whose name matches this patternMethod Detail |
---|
public static DriverInfo getDriverInfo(java.lang.String url, java.lang.String driverClass)
url
- database urldriverClass
- driver class
public static void addDriver(java.lang.String name, java.lang.String jdbcTag, java.lang.String[] drivers, java.lang.String pingQuery, java.lang.String caseSensivity, java.lang.String schemaQuery, java.lang.String IDGenerationMethod, java.lang.String lastInsertIDQuery, java.lang.String ignorePrefix)
name
- namejdbcTag
- jdbc tagdrivers
- array of driver class namespingQuery
- ping query (e.g. "select 1")caseSensivity
- default case sensivity policyschemaQuery
- query to change schemaIDGenerationMethod
- preferred ID generation methodlastInsertIDQuery
- query to get last inserted ID valueignorePrefix
- ignore tables whose name matches this patternpublic java.lang.String getJdbcTag()
public java.lang.String[] getDrivers()
public java.lang.String getPingQuery()
public java.lang.String getCaseSensivity()
public java.lang.String getSchemaQuery()
public long getLastInsertId(java.sql.Statement statement) throws java.sql.SQLException
statement
- source statement
java.sql.SQLException
public boolean ignoreTable(java.lang.String name)
name
- table name
public java.lang.Object filterValue(java.lang.Object value)
value
- value to be filtered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |