public enum Database extends Enum<Database>
Enum Constant and Description |
---|
DB2 |
DERBY |
ENTERPRISEDB |
H2 |
HANA |
HSQL |
MARIADB |
MYSQL |
ORACLE |
POSTGRESQL |
SPANNER |
SQLSERVER |
SYBASE |
Modifier and Type | Method and Description |
---|---|
abstract Dialect |
createDialect(DialectResolutionInfo info)
Create a
Dialect for the given metadata. |
String |
getDriverClassName(String jdbcUrl)
Get the name of the JDBC driver class for this database,
or null if we're not too sure what it should be.
|
String |
getUrlPrefix()
Get the JDBC URL prefix used by this database.
|
boolean |
matchesResolutionInfo(DialectResolutionInfo info)
Does this database match the given metadata?
|
boolean |
matchesUrl(String jdbcUrl)
Does the given JDBC URL connect to this database?
|
abstract boolean |
productNameMatches(String productName)
Does this database have the given product name?
|
static Database |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Database[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Database DB2
public static final Database DERBY
public static final Database ENTERPRISEDB
public static final Database H2
public static final Database HSQL
public static final Database HANA
public static final Database MARIADB
public static final Database MYSQL
public static final Database ORACLE
public static final Database POSTGRESQL
public static final Database SPANNER
public static final Database SQLSERVER
public static final Database SYBASE
public static Database[] values()
for (Database c : Database.values()) System.out.println(c);
public static Database 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 boolean matchesResolutionInfo(DialectResolutionInfo info)
public abstract boolean productNameMatches(String productName)
public abstract Dialect createDialect(DialectResolutionInfo info)
Dialect
for the given metadata.public String getDriverClassName(String jdbcUrl)
public String getUrlPrefix()
public boolean matchesUrl(String jdbcUrl)
Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.