Package mondrian.spi.impl
Class Db2Dialect
java.lang.Object
mondrian.spi.impl.JdbcDialectImpl
mondrian.spi.impl.Db2Dialect
- All Implemented Interfaces:
Dialect
- Direct Known Subclasses:
Db2OldAs400Dialect
Implementation of
Dialect
for the IBM DB2 database.- Since:
- Nov 23, 2008
- Author:
- jhyde
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface mondrian.spi.Dialect
Dialect.DatabaseProduct, Dialect.Datatype
-
Field Summary
Fields inherited from class mondrian.spi.impl.JdbcDialectImpl
databaseProduct, permitsSelectNotInGroupBy, productVersion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether this Dialect allows the GROUPING SETS construct in the GROUP BY clause.Converts an expression to upper case.Methods inherited from class mondrian.spi.impl.JdbcDialectImpl
allowsAs, allowsCompoundCountDistinct, allowsCountDistinct, allowsCountDistinctWithOtherAggs, allowsDdl, allowsDialectSharing, allowsFromQuery, allowsJoinOn, allowsMultipleCountDistinct, allowsMultipleDistinctSqlMeasures, allowsOrderByAlias, allowsRegularExpressionInWhereClause, allowsSelectNotInGroupBy, appendHintsAfterFromClause, caseWhenElse, computeStatisticsProviders, deduceIdentifierQuoteString, deduceMaxColumnNameLength, deduceProductName, deduceProductVersion, deduceReadOnly, deduceSupportedResultSetStyles, deduceSupportsSelectNotInGroupBy, extractEmbeddedFlags, generateCountExpression, generateInline, generateInlineForAnsi, generateInlineGeneric, generateOrderByNulls, generateOrderByNullsAnsi, generateOrderItem, generateRegularExpression, getDatabaseProduct, getMaxColumnNameLength, getProduct, getQuoteIdentifierString, getStatisticsProviders, getType, isDatabase, needsExponent, quote, quoteBooleanLiteral, quoteDateLiteral, quoteDateLiteral, quoteIdentifier, quoteIdentifier, quoteIdentifier, quoteIdentifier, quoteNumericLiteral, quoteStringLiteral, quoteTimeLiteral, quoteTimestampLiteral, quoteTimestampLiteral, requiresAliasForFromQuery, requiresGroupByAlias, requiresHavingAlias, requiresOrderByAlias, requiresUnionOrderByExprToBeInSelectClause, requiresUnionOrderByOrdinal, supportsGroupByExpressions, supportsMultiValueInExpr, supportsResultSetConcurrency, supportsUnlimitedValueList, toString
-
Field Details
-
FACTORY
-
-
Constructor Details
-
Db2Dialect
Creates a Db2Dialect.- Parameters:
connection
- Connection- Throws:
SQLException
-
-
Method Details
-
toUpper
Description copied from interface:Dialect
Converts an expression to upper case.For example, for MySQL,
toUpper("foo.bar")
returns"UPPER(foo.bar)"
.- Specified by:
toUpper
in interfaceDialect
- Overrides:
toUpper
in classJdbcDialectImpl
- Parameters:
expr
- SQL expression- Returns:
- SQL syntax that converts
expr
into upper case.
-
supportsGroupingSets
public boolean supportsGroupingSets()Description copied from interface:Dialect
Returns whether this Dialect allows the GROUPING SETS construct in the GROUP BY clause. Currently Greenplum, IBM DB2, Oracle, and Teradata.- Specified by:
supportsGroupingSets
in interfaceDialect
- Overrides:
supportsGroupingSets
in classJdbcDialectImpl
- Returns:
- Whether this Dialect allows GROUPING SETS clause
-