Enumeration of common database drivers. Forked from Spring Boot logic to avoid hard dependency on Boot.
Type Params | Return Type | Name and description |
---|---|---|
|
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 |
getValidationQuery() Return the validation query. |
|
java.lang.String |
getXaDataSourceClassName() Return the XA driver source class name. |
|
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, int), java.lang.Enum#wait(long), java.lang.Enum#wait(), java.lang.Enum#getClass(), java.lang.Enum#notify(), java.lang.Enum#notifyAll() |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
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