mondrian.spi.impl
Class FirebirdDialect
java.lang.Object
mondrian.spi.impl.JdbcDialectImpl
mondrian.spi.impl.FirebirdDialect
- All Implemented Interfaces:
- Dialect
public class FirebirdDialect
- extends JdbcDialectImpl
Implementation of Dialect
for the Firebird database.
- Since:
- Nov 23, 2008
- Version:
- $Id: //open/mondrian/src/main/mondrian/spi/impl/FirebirdDialect.java#4 $
- Author:
- jhyde
Method Summary |
boolean |
allowsAs()
Returns whether the SQL dialect allows "AS" in the FROM clause. |
boolean |
supportsOrderByNullsLast()
Returns whether this dialect supports "ASC NULLS LAST" and "DESC NULLS
LAST" applied to an item in the ORDER BY clause. |
Methods inherited from class mondrian.spi.impl.JdbcDialectImpl |
allowsCompoundCountDistinct, allowsCountDistinct, allowsDdl, allowsDialectSharing, allowsFromQuery, allowsMultipleCountDistinct, allowsMultipleDistinctSqlMeasures, allowsOrderByAlias, allowsSelectNotInGroupBy, appendHintsAfterFromClause, caseWhenElse, deduceIdentifierQuoteString, deduceMaxColumnNameLength, deduceProductName, deduceProductVersion, deduceReadOnly, deduceSupportedResultSetStyles, deduceSupportsSelectNotInGroupBy, generateInline, generateInlineForAnsi, generateInlineGeneric, generateOrderItem, getDatabaseProduct, getMaxColumnNameLength, getNullCollation, getProduct, getQuoteIdentifierString, needsExponent, quote, quoteBooleanLiteral, quoteDateLiteral, quoteDateLiteral, quoteIdentifier, quoteIdentifier, quoteIdentifier, quoteIdentifier, quoteNumericLiteral, quoteStringLiteral, quoteTimeLiteral, quoteTimestampLiteral, requiresAliasForFromQuery, requiresGroupByAlias, requiresOrderByAlias, requiresUnionOrderByExprToBeInSelectClause, requiresUnionOrderByOrdinal, supportsGroupByExpressions, supportsGroupingSets, supportsMultiValueInExpr, supportsResultSetConcurrency, supportsUnlimitedValueList, toString, toUpper |
FACTORY
public static final JdbcDialectFactory FACTORY
FirebirdDialect
public FirebirdDialect(Connection connection)
throws SQLException
- Creates a FirebirdDialect.
- Parameters:
connection
- Connection
- Throws:
SQLException
allowsAs
public boolean allowsAs()
- Description copied from interface:
Dialect
- Returns whether the SQL dialect allows "AS" in the FROM clause.
If so, "SELECT * FROM t AS alias" is a valid query.
- Specified by:
allowsAs
in interface Dialect
- Overrides:
allowsAs
in class JdbcDialectImpl
- Returns:
- whether dialect allows AS in FROM clause
supportsOrderByNullsLast
public boolean supportsOrderByNullsLast()
- Description copied from class:
JdbcDialectImpl
- Returns whether this dialect supports "ASC NULLS LAST" and "DESC NULLS
LAST" applied to an item in the ORDER BY clause.
This feature is in standard SQL but is not supported by many
databases, therefore the default implementation returns false
.
This method is only called from
JdbcDialectImpl.generateOrderItem(String, boolean, boolean)
. Some dialects
override that method and therefore never call this method.
- Overrides:
supportsOrderByNullsLast
in class JdbcDialectImpl
- Returns:
- Whether this dialect supports "ORDER BY ... NULLS LAST".