Package org.hibernate.dialect
Enum Class Database
- All Implemented Interfaces:
Serializable
,Comparable<Database>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract Dialect
Create aDialect
for the given metadata.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.Get the JDBC URL prefix used by this database.boolean
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
Returns the enum constant of this class with the specified name.static Database[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DB2
-
ENTERPRISEDB
-
H2
-
HSQL
-
HANA
-
MARIADB
-
MYSQL
-
ORACLE
-
POSTGRESQL
-
SPANNER
-
SQLSERVER
-
SYBASE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
matchesResolutionInfo
Does this database match the given metadata? -
productNameMatches
Does this database have the given product name? -
createDialect
Create aDialect
for the given metadata. -
getDriverClassName
Get the name of the JDBC driver class for this database, or null if we're not too sure what it should be. -
getUrlPrefix
Get the JDBC URL prefix used by this database. -
matchesUrl
Does the given JDBC URL connect to this database?
-