Package org.hibernate.dialect
Enum Database
- java.lang.Object
-
- java.lang.Enum<Database>
-
- org.hibernate.dialect.Database
-
- All Implemented Interfaces:
Serializable
,Comparable<Database>
public enum Database extends Enum<Database>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Dialect
createDialect(DialectResolutionInfo info)
Create aDialect
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.
-
-
-
Enum Constant Detail
-
DB2
public static final Database DB2
-
DERBY
public static final Database DERBY
-
ENTERPRISEDB
public static final Database ENTERPRISEDB
-
H2
public static final Database H2
-
HSQL
public static final Database HSQL
-
HANA
public static final Database HANA
-
MARIADB
public static final Database MARIADB
-
MYSQL
public static final Database MYSQL
-
ORACLE
public static final Database ORACLE
-
POSTGRESQL
public static final Database POSTGRESQL
-
SPANNER
public static final Database SPANNER
-
SQLSERVER
public static final Database SQLSERVER
-
SYBASE
public static final Database SYBASE
-
-
Method Detail
-
values
public static Database[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Database c : Database.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Database valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
matchesResolutionInfo
public boolean matchesResolutionInfo(DialectResolutionInfo info)
Does this database match the given metadata?
-
productNameMatches
public abstract boolean productNameMatches(String productName)
Does this database have the given product name?
-
createDialect
public abstract Dialect createDialect(DialectResolutionInfo info)
Create aDialect
for the given metadata.
-
getDriverClassName
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.
-
getUrlPrefix
public String getUrlPrefix()
Get the JDBC URL prefix used by this database.
-
matchesUrl
public boolean matchesUrl(String jdbcUrl)
Does the given JDBC URL connect to this database?
-
-