public interface DialectKeyed<T extends Enum<T> & DialectKeyed<T>>
An enum whose constants each stand for the databases of some Hibernate dialects, so that one of them is chosen for the dialect a session factory connects with. A constant lists the dialect classes it is for; the one listing org.hibernate.dialect.Dialect itself is the default, chosen for a dialect no other constant lists; a constant listing none is never chosen for a dialect. The constants are tried in their declared order, so a constant for a dialect subclass is declared before the constant for its superclass.
T - the enum| Type Params | Return Type | Name and description |
|---|---|---|
|
public java.lang.Class<? extends org.hibernate.dialect.Dialect>[] |
dialectClasses()The dialect classes the constant is for: the database of any of their instances. |
<T extends Enum<T> & DialectKeyed<T>> |
public static T |
forDialect(java.lang.Class<T> type, org.hibernate.dialect.Dialect dialect)Returns the constant of the enum for the dialect: the first whose dialect classes the dialect is an instance of, or else the first listing org.hibernate.dialect.Dialect itself. |
The dialect classes the constant is for: the database of any of their instances.
Returns the constant of the enum for the dialect: the first whose dialect classes the dialect is an instance of, or else the first listing org.hibernate.dialect.Dialect itself.