/* // $Id: //guest/paul_dymecki/mondrian/src/main/mondrian/olap/ConnectionBase.java#1 $ // This software is subject to the terms of the Common Public License // Agreement, available at the following URL: // http://www.opensource.org/licenses/cpl.html. // (C) Copyright 2001-2002 Kana Software, Inc. and others. // All Rights Reserved. // You must accept the terms of that agreement to use this software. // // jhyde, 6 August, 2001 */ package mondrian.olap; /** * todo: * * @author jhyde * @since 6 August, 2001 * @version $Id: //guest/paul_dymecki/mondrian/src/main/mondrian/olap/ConnectionBase.java#1 $ **/ public abstract class ConnectionBase implements Connection { public String getFullConnectString() { String s = getConnectString(), catalogName = getCatalogName(); if (catalogName != null) { if (!s.endsWith(";")) { s += ";"; } s += "Initial Catalog=" + catalogName + ";"; } return s; } public Cube lookupCube(String cube,boolean failIfNotFound) { Cube mdxCube = lookupCube(cube); if (mdxCube == null && failIfNotFound) throw Util.getRes().newMdxCubeNotFound(cube); return mdxCube; } /** * Finds a cube called 'cube' in the current catalog, or return null if no * cube exists. */ protected abstract Cube lookupCube(String cube); public Query parseQuery(String s) { boolean debug = false; Parser parser = new Parser(); Query q = (Query) parser.parseInternal(this, s, debug); return q; } public Exp parseExpression(String s) { Util.assertTrue( s.startsWith("'") && s.endsWith("'"), "only string literals are supported right now"); boolean symbol = false; String s2 = s.substring(1, s.length() - 1); return Literal.createString(s2); } } // End ConnectionBase.java
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 1820 | Paul Robert Dymecki | mondrian: Integrate latest from //guest/julian_hyde | ||
//guest/julian_hyde/mondrian/src/main/mondrian/olap/ConnectionBase.java | |||||
#3 | 1603 | Julian Hyde |
mondrian: Add Andreas' taglib; Rename 'mondrian.rolap.Util.assert' to 'assertTrue', because 'assert' is a keyword in jdk 1.4; Fix 'NON EMPTY'; JUnit framework for tests; Add Oracle dataset. |
||
#2 | 1576 | Julian Hyde |
mondrian: fix dataset (add column customer.ordinal); create dataset for oracle; get queries working on oracle; get format strings working; refactor out new packages mondrian.rolap.agg and mondrian.rolap.sql. |
||
#1 | 1453 | Julian Hyde | mondrian: first source check-in |