Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.table
Class TableConnection

java.lang.Object
  extended by com.citra.pivot.table.TableConnection
All Implemented Interfaces:
Connection

public class TableConnection
extends Object
implements Connection

TableConnection is the implementation of an OLAP connection for the table datasource.


Method Summary
 void close()
          Closes the connection to the underlying datasource.
 Object execute(OlapSelection selection)
          Evaluates the selection passed as argument and returns the result.
 OlapCube getCube()
          Returns the connection's associated cube.
 TableDataSource getDataSource()
          Retrieves the underlying table datasource.
 Locale getLocale()
          Retrieves the java locale currently in use.
 OlapSchema getSchema()
          Retrieves the schema of the connection.
 void setCube(OlapCube cube)
          Assigns the connection's cube.
 void setLocale(Locale locale)
          Assigns the java locale to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

close

public void close()
           throws DataSourceException
Closes the connection to the underlying datasource.

Specified by:
close in interface Connection
Throws:
DataSourceException

execute

public Object execute(OlapSelection selection)
               throws DataSourceException
Evaluates the selection passed as argument and returns the result. The value and the type returned depends on the selection argument.

Specified by:
execute in interface Connection
Parameters:
selection - defines what to select from the datasource
Returns:
the selection's evaluated result
Throws:
DataSourceException

getCube

public OlapCube getCube()
Returns the connection's associated cube.

Specified by:
getCube in interface Connection
Returns:
the cube

getDataSource

public TableDataSource getDataSource()
Retrieves the underlying table datasource.

Returns:
the underlying datasource

getLocale

public Locale getLocale()
Retrieves the java locale currently in use. The locale is applied to members and measure values returned.

Specified by:
getLocale in interface Connection
Returns:
the currently assigned locale

getSchema

public OlapSchema getSchema()
Retrieves the schema of the connection. The schema serves as a starting point for getting members and making queries.

Specified by:
getSchema in interface Connection
Returns:
the datasource's connection

setCube

public void setCube(OlapCube cube)
Assigns the connection's cube.

Specified by:
setCube in interface Connection
Parameters:
cube - the cube to assign

setLocale

public void setLocale(Locale locale)
Assigns the java locale to use. The locale is applied to members and measure values returned.

Specified by:
setLocale in interface Connection
Parameters:
locale - the locale to assign

Copyright © 2011 Citra Technologies. All Rights Reserved.