Top Description Fields Constructors Methods
org.hibernate.dialect

public sealed Enum Database

extends Enum<Database>
Class Inheritance
Imports
java.sql.DatabaseMetaData, .ResultSet, .SQLException, .Statement, org.hibernate.engine.jdbc.dialect.spi.BasicSQLExceptionConverter, .DialectResolutionInfo, org.hibernate.internal.util.config.ConfigurationHelper

A list of relational database systems for which Hibernate can resolve a Dialect. However, Hibernate can work with other database systems that are not listed by the Database enumeration, as long as a Dialect implementation class is provided via the hibernate.dialect configuration property.
Author
Vlad Mihalcea

Field Summary

Modifier and TypeField and Description
public static final Database
public static final Database
public static final Database
public static final Database
public static final Database
public static final Database
public static final Database
public static final Database
public static final Database
public static final Database
public static final Database
public static final Database
public static final Database

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public abstract Dialect
createDialect(DialectResolutionInfo info)

Create a Dialect for the given metadata.

public 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.

public String
getUrlPrefix()

Get the JDBC URL prefix used by this database.

public boolean
matchesResolutionInfo(DialectResolutionInfo info)

Does this database match the given metadata?

public boolean
matchesUrl(String jdbcUrl)

Does the given JDBC URL connect to this database?

public abstract boolean
productNameMatches(String productName)

Does this database have the given product name?

public static Database
public static Database[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DB2back to summary
public static final Database DB2
DERBYback to summary
public static final Database DERBY
ENTERPRISEDBback to summary
public static final Database ENTERPRISEDB
H2back to summary
public static final Database H2
HANAback to summary
public static final Database HANA
HSQLback to summary
public static final Database HSQL
MARIADBback to summary
public static final Database MARIADB
MYSQLback to summary
public static final Database MYSQL
ORACLEback to summary
public static final Database ORACLE
POSTGRESQLback to summary
public static final Database POSTGRESQL
SPANNERback to summary
public static final Database SPANNER
SQLSERVERback to summary
public static final Database SQLSERVER
SYBASEback to summary
public static final Database SYBASE

Constructor Detail

Databaseback to summary
private Database()

Method Detail

createDialectback to summary
public abstract Dialect createDialect(DialectResolutionInfo info)

Create a Dialect for the given metadata.

getDriverClassNameback to summary
public 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.

getUrlPrefixback to summary
public String getUrlPrefix()

Get the JDBC URL prefix used by this database.

matchesResolutionInfoback to summary
public boolean matchesResolutionInfo(DialectResolutionInfo info)

Does this database match the given metadata?

matchesUrlback to summary
public boolean matchesUrl(String jdbcUrl)

Does the given JDBC URL connect to this database?

productNameMatchesback to summary
public abstract boolean productNameMatches(String productName)

Does this database have the given product name?

valueOfback to summary
public static Database valueOf(String name)
valuesback to summary
public static Database[] values()