public class PlatformUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JDBC_DRIVER_DATADIRECT_DB2
The DataDirect Connect DB2 jdbc driver.
|
static String |
JDBC_DRIVER_DATADIRECT_ORACLE
The DataDirect Connect Oracle jdbc driver.
|
static String |
JDBC_DRIVER_DATADIRECT_SQLSERVER
The DataDirect Connect SQLServer jdbc driver.
|
static String |
JDBC_DRIVER_DATADIRECT_SYBASE
The DataDirect Connect Sybase jdbc driver.
|
static String |
JDBC_DRIVER_INET_DB2
The i-net DB2 jdbc driver.
|
static String |
JDBC_DRIVER_INET_ORACLE
The i-net Oracle jdbc driver.
|
static String |
JDBC_DRIVER_INET_POOLED
The i-net pooled jdbc driver for SQLServer and Sybase.
|
static String |
JDBC_DRIVER_INET_SQLSERVER
The i-net SQLServer jdbc driver.
|
static String |
JDBC_DRIVER_INET_SYBASE
The i-net Sybase jdbc driver.
|
static String |
JDBC_DRIVER_JSQLCONNECT_SQLSERVER
The JNetDirect SQLServer jdbc driver.
|
static String |
JDBC_DRIVER_JTDS
The jTDS jdbc driver for SQLServer and Sybase.
|
static String |
JDBC_SUBPROTOCOL_DATADIRECT_DB2
The subprotocol used by the DataDirect DB2 driver.
|
static String |
JDBC_SUBPROTOCOL_DATADIRECT_ORACLE
The subprotocol used by the DataDirect Oracle driver.
|
static String |
JDBC_SUBPROTOCOL_DATADIRECT_SQLSERVER
The subprotocol used by the DataDirect SQLServer driver.
|
static String |
JDBC_SUBPROTOCOL_DATADIRECT_SYBASE
The subprotocol used by the DataDirect Sybase driver.
|
static String |
JDBC_SUBPROTOCOL_INET_DB2
The subprotocol used by the i-net DB2 driver.
|
static String |
JDBC_SUBPROTOCOL_INET_ORACLE
The subprotocol used by the i-net Oracle driver.
|
static String |
JDBC_SUBPROTOCOL_INET_SQLSERVER
A subprotocol used by the i-net SQLServer driver.
|
static String |
JDBC_SUBPROTOCOL_INET_SQLSERVER_POOLED_1
A subprotocol used by the pooled i-net SQLServer driver.
|
static String |
JDBC_SUBPROTOCOL_INET_SQLSERVER_POOLED_2
A subprotocol used by the pooled i-net SQLServer driver.
|
static String |
JDBC_SUBPROTOCOL_INET_SQLSERVER6
A subprotocol used by the i-net SQLServer driver.
|
static String |
JDBC_SUBPROTOCOL_INET_SQLSERVER6_POOLED_1
A subprotocol used by the pooled i-net SQLServer driver.
|
static String |
JDBC_SUBPROTOCOL_INET_SQLSERVER6_POOLED_2
A subprotocol used by the pooled i-net SQLServer driver.
|
static String |
JDBC_SUBPROTOCOL_INET_SQLSERVER7
A subprotocol used by the i-net SQLServer driver.
|
static String |
JDBC_SUBPROTOCOL_INET_SQLSERVER7_POOLED_1
A subprotocol used by the pooled i-net SQLServer driver.
|
static String |
JDBC_SUBPROTOCOL_INET_SQLSERVER7_POOLED_2
A subprotocol used by the pooled i-net SQLServer driver.
|
static String |
JDBC_SUBPROTOCOL_INET_SQLSERVER7A
A subprotocol used by the i-net SQLServer driver.
|
static String |
JDBC_SUBPROTOCOL_INET_SQLSERVER7A_POOLED_1
A subprotocol used by the pooled i-net SQLServer driver.
|
static String |
JDBC_SUBPROTOCOL_INET_SQLSERVER7A_POOLED_2
A subprotocol used by the pooled i-net SQLServer driver.
|
static String |
JDBC_SUBPROTOCOL_INET_SYBASE
The subprotocol used by the i-net Sybase driver.
|
static String |
JDBC_SUBPROTOCOL_INET_SYBASE_POOLED_1
The subprotocol used by the pooled i-net Sybase driver.
|
static String |
JDBC_SUBPROTOCOL_INET_SYBASE_POOLED_2
The subprotocol used by the pooled i-net Sybase driver.
|
static String |
JDBC_SUBPROTOCOL_JSQLCONNECT_SQLSERVER
The subprotocol used by the JNetDirect SQLServer driver.
|
static String |
JDBC_SUBPROTOCOL_JTDS_SQLSERVER
The subprotocol used by the jTDS SQLServer driver.
|
static String |
JDBC_SUBPROTOCOL_JTDS_SYBASE
The subprotocol used by the jTDS Sybase driver.
|
| Constructor and Description |
|---|
PlatformUtils()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
determineDatabaseType(DataSource dataSource)
Tries to determine the database type for the given data source.
|
String |
determineDatabaseType(DataSource dataSource,
String username,
String password)
Tries to determine the database type for the given data source.
|
String |
determineDatabaseType(String driverName,
String jdbcConnectionUrl)
Tries to determine the database type for the given jdbc driver and connection url.
|
public static final String JDBC_DRIVER_DATADIRECT_DB2
public static final String JDBC_DRIVER_DATADIRECT_SQLSERVER
public static final String JDBC_DRIVER_DATADIRECT_ORACLE
public static final String JDBC_DRIVER_DATADIRECT_SYBASE
public static final String JDBC_DRIVER_INET_DB2
public static final String JDBC_DRIVER_INET_ORACLE
public static final String JDBC_DRIVER_INET_SQLSERVER
public static final String JDBC_DRIVER_INET_SYBASE
public static final String JDBC_DRIVER_INET_POOLED
public static final String JDBC_DRIVER_JSQLCONNECT_SQLSERVER
public static final String JDBC_DRIVER_JTDS
public static final String JDBC_SUBPROTOCOL_DATADIRECT_DB2
public static final String JDBC_SUBPROTOCOL_DATADIRECT_SQLSERVER
public static final String JDBC_SUBPROTOCOL_DATADIRECT_ORACLE
public static final String JDBC_SUBPROTOCOL_DATADIRECT_SYBASE
public static final String JDBC_SUBPROTOCOL_INET_DB2
public static final String JDBC_SUBPROTOCOL_INET_ORACLE
public static final String JDBC_SUBPROTOCOL_INET_SQLSERVER
public static final String JDBC_SUBPROTOCOL_INET_SQLSERVER6
public static final String JDBC_SUBPROTOCOL_INET_SQLSERVER7
public static final String JDBC_SUBPROTOCOL_INET_SQLSERVER7A
public static final String JDBC_SUBPROTOCOL_INET_SQLSERVER_POOLED_1
public static final String JDBC_SUBPROTOCOL_INET_SQLSERVER6_POOLED_1
public static final String JDBC_SUBPROTOCOL_INET_SQLSERVER7_POOLED_1
public static final String JDBC_SUBPROTOCOL_INET_SQLSERVER7A_POOLED_1
public static final String JDBC_SUBPROTOCOL_INET_SQLSERVER_POOLED_2
public static final String JDBC_SUBPROTOCOL_INET_SQLSERVER6_POOLED_2
public static final String JDBC_SUBPROTOCOL_INET_SQLSERVER7_POOLED_2
public static final String JDBC_SUBPROTOCOL_INET_SQLSERVER7A_POOLED_2
public static final String JDBC_SUBPROTOCOL_INET_SYBASE
public static final String JDBC_SUBPROTOCOL_INET_SYBASE_POOLED_1
public static final String JDBC_SUBPROTOCOL_INET_SYBASE_POOLED_2
public static final String JDBC_SUBPROTOCOL_JSQLCONNECT_SQLSERVER
public static final String JDBC_SUBPROTOCOL_JTDS_SQLSERVER
public static final String JDBC_SUBPROTOCOL_JTDS_SYBASE
public String determineDatabaseType(DataSource dataSource) throws DatabaseOperationException
dataSource - The data sourcenull if the database type couldn't be determinedDatabaseOperationExceptionpublic String determineDatabaseType(DataSource dataSource, String username, 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 databasenull if the database type couldn't be determinedDatabaseOperationExceptionpublic String determineDatabaseType(String driverName, String jdbcConnectionUrl)
driverName - The fully qualified name of the JDBC driverjdbcConnectionUrl - The connection urlnull if the database type couldn't be determinedCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.