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
public class Db2Dialect extends JdbcDialectImpl
Implementation ofDialect
for the IBM DB2 database.- Since:
- Nov 23, 2008
- Author:
- jhyde
- See Also:
Db2OldAs400Dialect
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface mondrian.spi.Dialect
Dialect.DatabaseProduct, Dialect.Datatype
-
-
Field Summary
Fields Modifier and Type Field Description static JdbcDialectFactory
FACTORY
-
Fields inherited from class mondrian.spi.impl.JdbcDialectImpl
databaseProduct, permitsSelectNotInGroupBy, productVersion
-
-
Constructor Summary
Constructors Constructor Description Db2Dialect(Connection connection)
Creates a Db2Dialect.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
supportsGroupingSets()
Returns whether this Dialect allows the GROUPING SETS construct in the GROUP BY clause.String
toUpper(String expr)
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 Detail
-
FACTORY
public static final JdbcDialectFactory FACTORY
-
-
Constructor Detail
-
Db2Dialect
public Db2Dialect(Connection connection) throws SQLException
Creates a Db2Dialect.- Parameters:
connection
- Connection- Throws:
SQLException
-
-
Method Detail
-
toUpper
public String toUpper(String expr)
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
-
-