|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ddlutils.PlatformUtils
public class PlatformUtils
Utility functions for dealing with database platforms.
Field Summary | |
---|---|
static java.lang.String |
JDBC_DRIVER_DATADIRECT_DB2
The DataDirect Connect DB2 jdbc driver. |
static java.lang.String |
JDBC_DRIVER_DATADIRECT_ORACLE
The DataDirect Connect Oracle jdbc driver. |
static java.lang.String |
JDBC_DRIVER_DATADIRECT_SQLSERVER
The DataDirect Connect SQLServer jdbc driver. |
static java.lang.String |
JDBC_DRIVER_DATADIRECT_SYBASE
The DataDirect Connect Sybase jdbc driver. |
static java.lang.String |
JDBC_DRIVER_INET_DB2
The i-net DB2 jdbc driver. |
static java.lang.String |
JDBC_DRIVER_INET_ORACLE
The i-net Oracle jdbc driver. |
static java.lang.String |
JDBC_DRIVER_INET_POOLED
The i-net pooled jdbc driver for SQLServer and Sybase. |
static java.lang.String |
JDBC_DRIVER_INET_SQLSERVER
The i-net SQLServer jdbc driver. |
static java.lang.String |
JDBC_DRIVER_INET_SYBASE
The i-net Sybase jdbc driver. |
static java.lang.String |
JDBC_DRIVER_JSQLCONNECT_SQLSERVER
The JNetDirect SQLServer jdbc driver. |
static java.lang.String |
JDBC_DRIVER_JTDS
The jTDS jdbc driver for SQLServer and Sybase. |
static java.lang.String |
JDBC_SUBPROTOCOL_DATADIRECT_DB2
The subprotocol used by the DataDirect DB2 driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_DATADIRECT_ORACLE
The subprotocol used by the DataDirect Oracle driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_DATADIRECT_SQLSERVER
The subprotocol used by the DataDirect SQLServer driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_DATADIRECT_SYBASE
The subprotocol used by the DataDirect Sybase driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_INET_DB2
The subprotocol used by the i-net DB2 driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_INET_ORACLE
The subprotocol used by the i-net Oracle driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_INET_SQLSERVER
A subprotocol used by the i-net SQLServer driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_INET_SQLSERVER_POOLED_1
A subprotocol used by the pooled i-net SQLServer driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_INET_SQLSERVER_POOLED_2
A subprotocol used by the pooled i-net SQLServer driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_INET_SQLSERVER6
A subprotocol used by the i-net SQLServer driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_INET_SQLSERVER6_POOLED_1
A subprotocol used by the pooled i-net SQLServer driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_INET_SQLSERVER6_POOLED_2
A subprotocol used by the pooled i-net SQLServer driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_INET_SQLSERVER7
A subprotocol used by the i-net SQLServer driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_INET_SQLSERVER7_POOLED_1
A subprotocol used by the pooled i-net SQLServer driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_INET_SQLSERVER7_POOLED_2
A subprotocol used by the pooled i-net SQLServer driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_INET_SQLSERVER7A
A subprotocol used by the i-net SQLServer driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_INET_SQLSERVER7A_POOLED_1
A subprotocol used by the pooled i-net SQLServer driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_INET_SQLSERVER7A_POOLED_2
A subprotocol used by the pooled i-net SQLServer driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_INET_SYBASE
The subprotocol used by the i-net Sybase driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_INET_SYBASE_POOLED_1
The subprotocol used by the pooled i-net Sybase driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_INET_SYBASE_POOLED_2
The subprotocol used by the pooled i-net Sybase driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_JSQLCONNECT_SQLSERVER
The subprotocol used by the JNetDirect SQLServer driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_JTDS_SQLSERVER
The subprotocol used by the jTDS SQLServer driver. |
static java.lang.String |
JDBC_SUBPROTOCOL_JTDS_SYBASE
The subprotocol used by the jTDS Sybase driver. |
Constructor Summary | |
---|---|
PlatformUtils()
Creates a new instance. |
Method Summary | |
---|---|
java.lang.String |
determineDatabaseType(javax.sql.DataSource dataSource)
Tries to determine the database type for the given data source. |
java.lang.String |
determineDatabaseType(javax.sql.DataSource dataSource,
java.lang.String username,
java.lang.String password)
Tries to determine the database type for the given data source. |
java.lang.String |
determineDatabaseType(java.lang.String driverName,
java.lang.String jdbcConnectionUrl)
Tries to determine the database type for the given jdbc driver and connection url. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String JDBC_DRIVER_DATADIRECT_DB2
public static final java.lang.String JDBC_DRIVER_DATADIRECT_SQLSERVER
public static final java.lang.String JDBC_DRIVER_DATADIRECT_ORACLE
public static final java.lang.String JDBC_DRIVER_DATADIRECT_SYBASE
public static final java.lang.String JDBC_DRIVER_INET_DB2
public static final java.lang.String JDBC_DRIVER_INET_ORACLE
public static final java.lang.String JDBC_DRIVER_INET_SQLSERVER
public static final java.lang.String JDBC_DRIVER_INET_SYBASE
public static final java.lang.String JDBC_DRIVER_INET_POOLED
public static final java.lang.String JDBC_DRIVER_JSQLCONNECT_SQLSERVER
public static final java.lang.String JDBC_DRIVER_JTDS
public static final java.lang.String JDBC_SUBPROTOCOL_DATADIRECT_DB2
public static final java.lang.String JDBC_SUBPROTOCOL_DATADIRECT_SQLSERVER
public static final java.lang.String JDBC_SUBPROTOCOL_DATADIRECT_ORACLE
public static final java.lang.String JDBC_SUBPROTOCOL_DATADIRECT_SYBASE
public static final java.lang.String JDBC_SUBPROTOCOL_INET_DB2
public static final java.lang.String JDBC_SUBPROTOCOL_INET_ORACLE
public static final java.lang.String JDBC_SUBPROTOCOL_INET_SQLSERVER
public static final java.lang.String JDBC_SUBPROTOCOL_INET_SQLSERVER6
public static final java.lang.String JDBC_SUBPROTOCOL_INET_SQLSERVER7
public static final java.lang.String JDBC_SUBPROTOCOL_INET_SQLSERVER7A
public static final java.lang.String JDBC_SUBPROTOCOL_INET_SQLSERVER_POOLED_1
public static final java.lang.String JDBC_SUBPROTOCOL_INET_SQLSERVER6_POOLED_1
public static final java.lang.String JDBC_SUBPROTOCOL_INET_SQLSERVER7_POOLED_1
public static final java.lang.String JDBC_SUBPROTOCOL_INET_SQLSERVER7A_POOLED_1
public static final java.lang.String JDBC_SUBPROTOCOL_INET_SQLSERVER_POOLED_2
public static final java.lang.String JDBC_SUBPROTOCOL_INET_SQLSERVER6_POOLED_2
public static final java.lang.String JDBC_SUBPROTOCOL_INET_SQLSERVER7_POOLED_2
public static final java.lang.String JDBC_SUBPROTOCOL_INET_SQLSERVER7A_POOLED_2
public static final java.lang.String JDBC_SUBPROTOCOL_INET_SYBASE
public static final java.lang.String JDBC_SUBPROTOCOL_INET_SYBASE_POOLED_1
public static final java.lang.String JDBC_SUBPROTOCOL_INET_SYBASE_POOLED_2
public static final java.lang.String JDBC_SUBPROTOCOL_JSQLCONNECT_SQLSERVER
public static final java.lang.String JDBC_SUBPROTOCOL_JTDS_SQLSERVER
public static final java.lang.String JDBC_SUBPROTOCOL_JTDS_SYBASE
Constructor Detail |
---|
public PlatformUtils()
Method Detail |
---|
public java.lang.String determineDatabaseType(javax.sql.DataSource dataSource) throws DatabaseOperationException
dataSource
- The data source
null
if the database type couldn't be determined
DatabaseOperationException
public java.lang.String determineDatabaseType(javax.sql.DataSource dataSource, java.lang.String username, java.lang.String password) throws DatabaseOperationException
dataSource
- The data sourceusername
- The user name to use for connecting to the databasepassword
- The password to use for connecting to the database
null
if the database type couldn't be determined
DatabaseOperationException
public java.lang.String determineDatabaseType(java.lang.String driverName, java.lang.String jdbcConnectionUrl)
driverName
- The fully qualified name of the JDBC driverjdbcConnectionUrl
- The connection url
null
if the database type couldn't be determined
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |