public enum DatabaseDriver extends java.lang.Enum
Enumeration of common database drivers. Forked from Spring Boot logic to avoid hard dependency on Boot.
Enum constant | 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. |
Type Params | Return Type | Name and description |
---|---|---|
|
public static DatabaseDriver |
fromJdbcUrl(java.lang.String url) Find a DatabaseDriver for the given URL. |
|
public static DatabaseDriver |
fromProductName(java.lang.String productName) Find a DatabaseDriver for the given product name. |
|
public java.lang.String |
getDriverClassName() Return the driver class name. |
|
public java.lang.String |
getValidationQuery() Return the validation query. |
|
public java.lang.String |
getXaDataSourceClassName() Return the XA driver source class name. |
|
protected boolean |
matchProductName(java.lang.String productName) |
|
protected boolean |
matchProductName(java.lang.String productName) |
|
protected boolean |
matchProductName(java.lang.String productName) |
|
protected boolean |
matchProductName(java.lang.String productName) |
Methods inherited from class | Name |
---|---|
class java.lang.Enum |
java.lang.Enum#name(), java.lang.Enum#equals(java.lang.Object), java.lang.Enum#toString(), java.lang.Enum#hashCode(), java.lang.Enum#compareTo(java.lang.Object), java.lang.Enum#compareTo(java.lang.Enum), java.lang.Enum#valueOf(java.lang.Class, java.lang.String), java.lang.Enum#getDeclaringClass(), java.lang.Enum#ordinal(), java.lang.Enum#wait(long), java.lang.Enum#wait(long, int), java.lang.Enum#wait(), java.lang.Enum#getClass(), java.lang.Enum#notify(), java.lang.Enum#notifyAll() |
DB2 Server.
DB2 AS400 Server.
Apache Derby.
Firebird.
Google App Engine.
H2.
HyperSQL DataBase.
Informix.
jTDS. As it can be used for several databases, there isn't a single product name we could rely on.
Maria DB.
MySQL.
Oracle.
Postgres.
SQL Lite.
SQL Server.
Teradata.
Unknown type.
Find a DatabaseDriver for the given URL.
url
- JDBC URLFind a DatabaseDriver for the given product name.
productName
- product nameReturn the driver class name.
null
Return the validation query.
null
Return the XA driver source class name.
null
Groovy Documentation