connection.java
来自「数据仓库展示程序」· Java 代码 · 共 97 行
JAVA
97 行
/*
// $Id: //open/mondrian/src/main/mondrian/olap/Connection.java#7 $
// 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 2000-2005 Kana Software, Inc. and others.
// All Rights Reserved.
// You must accept the terms of that agreement to use this software.
//
// jhyde, 29 February, 2000
*/
package mondrian.olap;
import java.util.Locale;
/**
* Connection to a multi-dimensional database.
*
* @see DriverManager
**/
public interface Connection {
/**
* Get the Connect String associated with this Connection.
*
* @return the Connect String (never null).
*/
String getConnectString();
/**
* Get the name of the Catalog associated with this Connection.
*
* @return the Catalog name (never null).
*/
String getCatalogName();
/**
* Get the Schema associated with this Connection.
*
* @return the Schema (never null).
*/
Schema getSchema();
/**
* Closes this <code>Connection</code>. You may not use this
* <code>Connection</code> after closing it.
**/
void close();
/**
* Executes a query.
*/
Result execute(Query query);
/**
* Returns the locale this connection belongs to. Determines, for example,
* the currency string used in formatting cell values.
*
* @see mondrian.util.Format
**/
Locale getLocale();
/**
* Parses an expresion.
**/
Exp parseExpression(String s);
/**
* Parses a query.
**/
Query parseQuery(String s);
/**
* Sets the privileges for the this connection.
*
* @pre role != null
* @pre role.isMutable()
*/
void setRole(Role role);
/**
* Returns the access-control profile for this connection.
* @post role != null
* @post role.isMutable()
*/
Role getRole();
/**
* Returns a schema reader with access control appropriate to the current
* role.
*/
SchemaReader getSchemaReader();
}
// End Connection.java
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?