001/* 002// This software is subject to the terms of the Eclipse Public License v1.0 003// Agreement, available at the following URL: 004// http://www.eclipse.org/legal/epl-v10.html. 005// You must accept the terms of that agreement to use this software. 006// 007// Copyright (C) 2008-2009 Pentaho 008// All Rights Reserved. 009*/ 010package mondrian.spi.impl; 011 012import java.sql.Connection; 013import java.sql.SQLException; 014 015/** 016 * Implementation of {@link mondrian.spi.Dialect} for the Firebird database. 017 * 018 * @author jhyde 019 * @since Nov 23, 2008 020 */ 021public class FirebirdDialect extends JdbcDialectImpl { 022 023 public static final JdbcDialectFactory FACTORY = 024 new JdbcDialectFactory( 025 FirebirdDialect.class, 026 DatabaseProduct.FIREBIRD); 027 028 /** 029 * Creates a FirebirdDialect. 030 * 031 * @param connection Connection 032 */ 033 public FirebirdDialect(Connection connection) throws SQLException { 034 super(connection); 035 } 036 037 public boolean allowsAs() { 038 return false; 039 } 040 041 @Override 042 public String generateOrderByNulls( 043 String expr, 044 boolean ascending, 045 boolean collateNullsLast) 046 { 047 return generateOrderByNullsAnsi(expr, ascending, collateNullsLast); 048 } 049} 050 051// End FirebirdDialect.java