public abstract class DialectManager extends Object
Dialect
and DialectFactory
objects.Modifier and Type | Method and Description |
---|---|
static Dialect |
createDialect(DataSource dataSource,
Connection connection)
Creates a Dialect from a JDBC connection.
|
static Dialect |
createDialect(DataSource dataSource,
Connection connection,
String dialectClassName)
Creates a Dialect from a JDBC connection, optionally specifying
the name of the dialect class.
|
static void |
register(Class<? extends Dialect> dialectClass)
Registers a Dialect class.
|
static void |
register(DialectFactory factory)
Registers a DialectFactory.
|
public static void register(DialectFactory factory)
factory
- Dialect factorypublic static void register(Class<? extends Dialect> dialectClass)
dialectClass
- Dialect classpublic static Dialect createDialect(DataSource dataSource, Connection connection)
If the dialect cannot handle this connection, throws. Never returns null.
dataSource
- Data sourceconnection
- JDBC connectionRuntimeException
- if underlying systems give an error,
or if cannot create dialectpublic static Dialect createDialect(DataSource dataSource, Connection connection, String dialectClassName)
If the dialect cannot handle this connection, throws. Never returns null.
dataSource
- Data sourceconnection
- JDBC connectiondialectClassName
- Name of class that implements Dialect
,
or nullRuntimeException
- if underlying systems give an error,
or if cannot create dialectCopyright © 2019 Hitachi Vantara. All rights reserved.