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
FieldsFields inherited from class mondrian.spi.impl.JdbcDialectImpl
databaseProduct, permitsSelectNotInGroupBy, productVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns 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:DialectConverts an expression to upper case.For example, for MySQL,
toUpper("foo.bar")returns"UPPER(foo.bar)".- Specified by:
toUpperin interfaceDialect- Overrides:
toUpperin classJdbcDialectImpl- Parameters:
expr- SQL expression- Returns:
- SQL syntax that converts
exprinto upper case.
-
supportsGroupingSets
public boolean supportsGroupingSets()Description copied from interface:DialectReturns whether this Dialect allows the GROUPING SETS construct in the GROUP BY clause. Currently Greenplum, IBM DB2, Oracle, and Teradata.- Specified by:
supportsGroupingSetsin interfaceDialect- Overrides:
supportsGroupingSetsin classJdbcDialectImpl- Returns:
- Whether this Dialect allows GROUPING SETS clause
-