fr.lri.bd.olap.dto
Class Datamart

java.lang.Object
  extended by fr.lri.bd.olap.dto.OlapTree
      extended by fr.lri.bd.olap.dto.Datamart
All Implemented Interfaces:
Externalizable, Serializable

public class Datamart
extends OlapTree
implements Externalizable

Correlation class is DTO class for correlation class which describes transformation from one schema to other one.

Author:
holubec
See Also:
Serialized Form

Constructor Summary
Datamart(OlapTree originalTree)
          Constructor used for serialization
Datamart(String name, edu.uci.ics.jung.graph.Vertex root, List<edu.uci.ics.jung.graph.Vertex> vertexes, OlapTree originalTree)
          Default constructor
 
Method Summary
 edu.uci.ics.jung.graph.Vertex getDatamartVertex(edu.uci.ics.jung.graph.Vertex v)
           
 DBPool getDBPool()
           
 OlapTree getOriginalTree()
           
 edu.uci.ics.jung.graph.Vertex getOriginalVertex(edu.uci.ics.jung.graph.Vertex v)
           
 GraphPath getPath2NewRoot()
           
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class fr.lri.bd.olap.dto.OlapTree
getGraph, getLayout, getName, getRoot
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Datamart

public Datamart(OlapTree originalTree)
Constructor used for serialization

Parameters:
originalTree - original OlapTree of datamart

Datamart

public Datamart(String name,
                edu.uci.ics.jung.graph.Vertex root,
                List<edu.uci.ics.jung.graph.Vertex> vertexes,
                OlapTree originalTree)
Default constructor

Parameters:
name - name of the datamart
root - root of the datamart
vertexes - vertexes used in datamart from original tree
originalTree - original Olap tree
Method Detail

getOriginalVertex

public edu.uci.ics.jung.graph.Vertex getOriginalVertex(edu.uci.ics.jung.graph.Vertex v)
Parameters:
v - vertex of datamart
Returns:
vertex from original Olap tree

getDatamartVertex

public edu.uci.ics.jung.graph.Vertex getDatamartVertex(edu.uci.ics.jung.graph.Vertex v)
Parameters:
v - vertex of original Olap tree
Returns:
vertex of datamart

getOriginalTree

public OlapTree getOriginalTree()
Returns:
original OLAP tree

getPath2NewRoot

public GraphPath getPath2NewRoot()
Returns:
path of the original tree from it's root vertex to the root vertex of datamart

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

getDBPool

public DBPool getDBPool()
Overrides:
getDBPool in class OlapTree
Returns:
pool of database connections