public class Db2Dialect extends JdbcDialectImpl
Dialect for the IBM DB2 database.Db2OldAs400DialectDialect.DatabaseProduct, Dialect.Datatype| Modifier and Type | Field and Description | 
|---|---|
static JdbcDialectFactory | 
FACTORY  | 
databaseProduct, permitsSelectNotInGroupBy, productVersion| Constructor and Description | 
|---|
Db2Dialect(Connection connection)
Creates a Db2Dialect. 
 | 
| Modifier and Type | Method and 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. 
 | 
allowsAs, allowsCompoundCountDistinct, allowsCountDistinct, allowsCountDistinctWithOtherAggs, allowsDdl, allowsDialectSharing, allowsFromQuery, allowsJoinOn, allowsMultipleCountDistinct, allowsMultipleDistinctSqlMeasures, allowsOrderByAlias, allowsRegularExpressionInWhereClause, allowsSelectNotInGroupBy, appendHintsAfterFromClause, caseWhenElse, computeStatisticsProviders, deduceIdentifierQuoteString, deduceMaxColumnNameLength, deduceProductName, deduceProductVersion, deduceReadOnly, deduceSupportedResultSetStyles, deduceSupportsSelectNotInGroupBy, 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, requiresAliasForFromQuery, requiresGroupByAlias, requiresHavingAlias, requiresOrderByAlias, requiresUnionOrderByExprToBeInSelectClause, requiresUnionOrderByOrdinal, supportsGroupByExpressions, supportsMultiValueInExpr, supportsResultSetConcurrency, supportsUnlimitedValueList, toStringpublic static final JdbcDialectFactory FACTORY
public Db2Dialect(Connection connection) throws SQLException
connection - ConnectionSQLExceptionpublic String toUpper(String expr)
DialectFor example, for MySQL, toUpper("foo.bar") returns
 "UPPER(foo.bar)".
toUpper in interface DialecttoUpper in class JdbcDialectImplexpr - SQL expressionexpr
 into upper case.public boolean supportsGroupingSets()
DialectsupportsGroupingSets in interface DialectsupportsGroupingSets in class JdbcDialectImplCopyright © 2017 Hitachi Vantara. All rights reserved.