public enum DatabaseDriver extends java.lang.Enum<DatabaseDriver>
Enum Constant and Description |
---|
DB2
DB2 Server.
|
DB2_AS400
DB2 AS400 Server.
|
DERBY
Apache Derby.
|
FIREBIRD
Firebird.
|
GAE
Deprecated.
since 2.7.0 for removal in 3.0.0 without replacement following the
removal of AppEngineDriver from version 2.0 of the AppEngine API SDK.
|
H2
H2.
|
HANA
HANA - SAP HANA Database - HDB.
|
HSQLDB
HyperSQL DataBase.
|
INFORMIX
Informix.
|
JTDS
jTDS.
|
MARIADB
Maria DB.
|
MYSQL
MySQL.
|
ORACLE
Oracle.
|
PHOENIX
Apache Phoenix.
|
POSTGRESQL
Postgres.
|
REDSHIFT
Amazon Redshift.
|
SQLITE
SQL Lite.
|
SQLSERVER
SQL Server.
|
TERADATA
Teradata.
|
TESTCONTAINERS
Testcontainers.
|
UNKNOWN
Unknown type.
|
Modifier and Type | Method and Description |
---|---|
static DatabaseDriver |
fromDataSource(javax.sql.DataSource dataSource)
Find a
DatabaseDriver for the given DataSource . |
static DatabaseDriver |
fromJdbcUrl(java.lang.String url)
Find a
DatabaseDriver for the given URL. |
static DatabaseDriver |
fromProductName(java.lang.String productName)
Find a
DatabaseDriver for the given product name. |
java.lang.String |
getDriverClassName()
Return the driver class name.
|
java.lang.String |
getId()
Return the identifier of this driver.
|
protected java.util.Collection<java.lang.String> |
getUrlPrefixes() |
java.lang.String |
getValidationQuery()
Return the validation query.
|
java.lang.String |
getXaDataSourceClassName()
Return the XA driver source class name.
|
protected boolean |
matchProductName(java.lang.String productName) |
static DatabaseDriver |
valueOf(java.lang.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
@Deprecated public static final DatabaseDriver GAE
public static final DatabaseDriver ORACLE
public static final DatabaseDriver POSTGRESQL
public static final DatabaseDriver REDSHIFT
public static final DatabaseDriver HANA
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 final DatabaseDriver PHOENIX
public static final DatabaseDriver TESTCONTAINERS
public static DatabaseDriver[] values()
for (DatabaseDriver c : DatabaseDriver.values()) System.out.println(c);
public static DatabaseDriver valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getId()
protected boolean matchProductName(java.lang.String productName)
protected java.util.Collection<java.lang.String> getUrlPrefixes()
public java.lang.String getDriverClassName()
null
public java.lang.String getXaDataSourceClassName()
null
public java.lang.String getValidationQuery()
null
public static DatabaseDriver fromJdbcUrl(java.lang.String url)
DatabaseDriver
for the given URL.url
- the JDBC URLUNKNOWN
if not foundpublic static DatabaseDriver fromProductName(java.lang.String productName)
DatabaseDriver
for the given product name.productName
- product nameUNKNOWN
if not foundpublic static DatabaseDriver fromDataSource(javax.sql.DataSource dataSource)
DatabaseDriver
for the given DataSource
.dataSource
- data source to inspectUNKNOWN
if not found