mondrian.spi
Class DialectManager.CachingDialectFactory
java.lang.Object
mondrian.spi.DialectManager.CachingDialectFactory
- All Implemented Interfaces:
- DialectFactory
- Enclosing class:
- DialectManager
static class DialectManager.CachingDialectFactory
- extends Object
- implements DialectFactory
Implementation of DialectFactory
that caches
dialects based on data source.
- See Also:
Dialect.allowsDialectSharing()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DialectManager.CachingDialectFactory
DialectManager.CachingDialectFactory(DialectFactory factory)
- Creates a CachingDialectFactory.
- Parameters:
factory
- Underlying factory
createDialect
public Dialect createDialect(DataSource dataSource,
Connection connection)
- Description copied from interface:
DialectFactory
- Creates a Dialect.
If the dialect cannot handle this connection, returns null.
- Specified by:
createDialect
in interface DialectFactory
- Parameters:
dataSource
- JDBC data sourceconnection
- JDBC connection
- Returns:
- dialect for this connection, or null if this factory's dialect
is not appropriate for the connection