blob: e1b2e69451e72d1c249168eb3fa6787b7238b342 [file] [log] [blame]
////////////////////////////////////////////////////////////////////////////////
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////////
package mx.olap
{
/**
* @private
*/
public interface IOLAPCubeImpl
{
//--------------------------------------------------------------------------
//
// Properties
//
//--------------------------------------------------------------------------
//----------------------------------
// cube
//----------------------------------
/**
* Provide the cube on which the implementation would act upon.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function set cube(value:IOLAPCube):void;
//----------------------------------
// queryProgress
//----------------------------------
/**
* Returns the progress of cell computation in the query.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function get queryProgress():int;
//----------------------------------
// queryTotal
//----------------------------------
/**
* Returns the total number of cells in the query.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function get queryTotal():int;
//--------------------------------------------------------------------------
//
// Methods
//
//--------------------------------------------------------------------------
/**
* Function to be called to build the cube.
* Returns false to indicate that it needs to be called again to
* complete the cube. Returns true when cube is complete.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function buildCubeIteratively():Boolean;
/**
* Aborts execution of the query.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function cancelQuery(q:IOLAPQuery):void;
/**
* Aborts creation of the cube.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function cancelRefresh():void;
/**
* Populates the 'result' object with the 'query' results.
* Returns true when the result has been fully computed.
* Returns false to indicate that execute needs to be called again.
* query and result arguments should be changed only after execute returns true
* or after calling cancelQuery.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function execute(query:IOLAPQuery, result:OLAPResult):Boolean;
/**
* refresh called from cube
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function refresh():void;
}
}