public final class DialectRegistry extends Object
EDbVendor to its DialectStrategy. Vendors with a
dedicated strategy (Oracle, MSSQL, MySQL, DB2, Snowflake) get it; every other
vendor gets a GenericDialect for that vendor. Results are memoised per
vendor so forVendor is cheap and the returned strategy is stable.
This is the single place pp2 branches on vendor: the layout rules consult
the strategy rather than switching on EDbVendor themselves.
Plan reference: §7.3/S30, §7.4/S30.
| Modifier and Type | Method and Description |
|---|---|
static DialectStrategy |
forVendor(EDbVendor vendor)
The strategy for
vendor; never null. |
public static DialectStrategy forVendor(EDbVendor vendor)
vendor; never null. Dedicated strategies exist
for Oracle/MSSQL/MySQL/DB2/Snowflake; all other vendors get a
GenericDialect.NullPointerException - if vendor is null