Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.table
Class TableSchema

java.lang.Object
  extended by com.citra.pivot.table.AbstractTableObject
      extended by com.citra.pivot.table.TableSchema
All Implemented Interfaces:
OlapObject, OlapSchema

public class TableSchema
extends AbstractTableObject
implements OlapSchema

TableSchema is the the concrete OlapSchema implementation for the table datasource.


Field Summary
protected  CubeList cubes
          the schema's cubes
protected  DimensionList dimensions
          the schema's dimensions
 
Fields inherited from class com.citra.pivot.table.AbstractTableObject
caption, description, id, name
 
Constructor Summary
TableSchema(String name)
          Constructs a TableSchema.
 
Method Summary
 void addCube(TableCube cube)
          Adds a cube to the schema.
 void addDimension(TableDimension dimension)
          Adds a dimension to the schema.
 TableCube createCube(String name)
          Creates, adds and returns a cube with a given name.
 TableDimension createDimension(String name)
          Creates, adds and returns a dimension with a given name.
 CubeList getCubes()
          Retrieves the olap cubes the schema contains.
 DimensionList getDimensions()
          Retrieves the shared olap dimensions that the schema contains.
 void removeCube(TableCube cube)
          Removes a cube from the schema.
 void removeDimension(TableDimension dimension)
          Removes a dimension from the schema.
 
Methods inherited from class com.citra.pivot.table.AbstractTableObject
getCaption, getCaption, getDescription, getDescription, getID, getName, setCaption, setCaption, setDescription, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.citra.pivot.olap.metadata.OlapObject
getCaption, getDescription, getID, getName
 

Field Detail

dimensions

protected DimensionList dimensions
the schema's dimensions


cubes

protected CubeList cubes
the schema's cubes

Constructor Detail

TableSchema

public TableSchema(String name)
Constructs a TableSchema.

Method Detail

addCube

public void addCube(TableCube cube)
Adds a cube to the schema.

Parameters:
cube - the cube to add

addDimension

public void addDimension(TableDimension dimension)
Adds a dimension to the schema.

Parameters:
dimension - the dimension to add

createCube

public TableCube createCube(String name)
Creates, adds and returns a cube with a given name.

Parameters:
name - the cube's name

createDimension

public TableDimension createDimension(String name)
Creates, adds and returns a dimension with a given name.

Parameters:
name - the dimension's name

getCubes

public CubeList getCubes()
Retrieves the olap cubes the schema contains.

Specified by:
getCubes in interface OlapSchema
Returns:
the list of cubes

getDimensions

public DimensionList getDimensions()
Retrieves the shared olap dimensions that the schema contains.

Specified by:
getDimensions in interface OlapSchema
Returns:
the list of shared dimensions

removeCube

public void removeCube(TableCube cube)
Removes a cube from the schema.

Parameters:
cube - the cube to remove

removeDimension

public void removeDimension(TableDimension dimension)
Removes a dimension from the schema.

Parameters:
dimension - the dimension to remove

Copyright © 2011 Citra Technologies. All Rights Reserved.