com.softtech.jdbc
Class DatabaseType
java.lang.Object
com.softtech.jdbc.DatabaseType
public class DatabaseType
- extends java.lang.Object
Constants define the different database types
- Author:
- Jeff S Smith, Paolo Orru (paolo.orru@gmail.com), added PostgreSQL constants
|
Method Summary |
(package private) static int |
getDbType(java.sql.Connection con)
Parses the connection info to determine the database type |
(package private) static int |
getDbType(java.lang.String driverName)
Parses the driver name to determine the database type |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNKNOWN
public static final int UNKNOWN
- See Also:
- Constant Field Values
ORACLE
public static final int ORACLE
- See Also:
- Constant Field Values
MYSQL
public static final int MYSQL
- See Also:
- Constant Field Values
POSTGRESQL
public static final int POSTGRESQL
- See Also:
- Constant Field Values
HSQL
public static final int HSQL
- See Also:
- Constant Field Values
ORACLE_NAME
public static final java.lang.String ORACLE_NAME
- See Also:
- Constant Field Values
MYSQL_NAME
public static final java.lang.String MYSQL_NAME
- See Also:
- Constant Field Values
POSTGRESQL_NAME
public static final java.lang.String POSTGRESQL_NAME
- See Also:
- Constant Field Values
HSQL_NAME
public static final java.lang.String HSQL_NAME
- See Also:
- Constant Field Values
DatabaseType
public DatabaseType()
getDbType
static int getDbType(java.sql.Connection con)
- Parses the connection info to determine the database type
- Parameters:
con - Connection
- Returns:
- int type of database (e.g. ORACLE)
getDbType
static int getDbType(java.lang.String driverName)
- Parses the driver name to determine the database type
- Parameters:
driverName - String
- Returns:
- int type of database (e.g. ORACLE)