public enum DatabaseDriver extends Enum<DatabaseDriver>
Enum Constant and Description |
---|
DB2
DB2 Server.
|
DB2_AS400
DB2 AS400 Server.
|
DERBY
Apache Derby.
|
FIREBIRD
Firebird.
|
GAE
Google App Engine.
|
H2
H2.
|
HSQLDB
HyperSQL DataBase.
|
INFORMIX
Informix.
|
JTDS
jTDS.
|
MARIADB
Maria DB.
|
MYSQL
MySQL.
|
ORACLE
Oracle.
|
POSTGRESQL
Postgres.
|
SQLITE
SQL Lite.
|
SQLSERVER
SQL Server.
|
TERADATA
Teradata.
|
UNKNOWN
Unknown type.
|
Modifier and Type | Method and Description |
---|---|
static DatabaseDriver |
fromJdbcUrl(String url)
Find a
DatabaseDriver for the given URL. |
static DatabaseDriver |
fromProductName(String productName)
Find a
DatabaseDriver for the given product name. |
String |
getDriverClassName()
Return the driver class name.
|
String |
getId()
Return the identifier of this driver.
|
protected Collection<String> |
getUrlPrefixes() |
String |
getValidationQuery()
Return the validation query.
|
String |
getXaDataSourceClassName()
Return the XA driver source class name.
|
protected boolean |
matchProductName(String productName) |
static DatabaseDriver |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatabaseDriver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatabaseDriver UNKNOWN
public static final DatabaseDriver DERBY
public static final DatabaseDriver H2
public static final DatabaseDriver HSQLDB
public static final DatabaseDriver SQLITE
public static final DatabaseDriver MYSQL
public static final DatabaseDriver MARIADB
public static final DatabaseDriver GAE
public static final DatabaseDriver ORACLE
public static final DatabaseDriver POSTGRESQL
public static final DatabaseDriver JTDS
public static final DatabaseDriver SQLSERVER
public static final DatabaseDriver FIREBIRD
public static final DatabaseDriver DB2
public static final DatabaseDriver DB2_AS400
public static final DatabaseDriver TERADATA
public static final DatabaseDriver INFORMIX
public static DatabaseDriver[] values()
for (DatabaseDriver c : DatabaseDriver.values()) System.out.println(c);
public static DatabaseDriver valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getId()
protected boolean matchProductName(String productName)
protected Collection<String> getUrlPrefixes()
public String getDriverClassName()
null
public String getXaDataSourceClassName()
null
public String getValidationQuery()
null
public static DatabaseDriver fromJdbcUrl(String url)
DatabaseDriver
for the given URL.url
- JDBC URLUNKNOWN
if not foundpublic static DatabaseDriver fromProductName(String productName)
DatabaseDriver
for the given product name.productName
- product nameUNKNOWN
if not foundCopyright © 2018 Pivotal Software, Inc.. All rights reserved.