Package org.hibernate.community.dialect
Enum Class CommunityDatabase
- All Implemented Interfaces:
Serializable
,Comparable<CommunityDatabase>
,Constable
A list of community maintained 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.-
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 org.hibernate.dialect.Dialect
createDialect
(org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfo info) 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
matchesResolutionInfo
(org.hibernate.engine.jdbc.dialect.spi.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 CommunityDatabase
Returns the enum constant of this class with the specified name.static CommunityDatabase[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SQLITE
-
INGRES
-
INFORMIX
-
FIREBIRD
-
CACHE
-
CUBRID
-
ALTIBASE
-
MIMER
-
MAXDB
-
SYBASE_ANYWHERE
-
TERADATA
-
TIMESTEN
-
DERBY
-
-
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
public boolean matchesResolutionInfo(org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfo info) Does this database match the given metadata? -
productNameMatches
Does this database have the given product name? -
createDialect
public abstract org.hibernate.dialect.Dialect createDialect(org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfo info) 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?
-