fr.lri.bd.olap.dto
Class RelationTable

java.lang.Object
  extended by fr.lri.bd.olap.dto.RelationTable

public class RelationTable
extends Object

Relation table class represents one table of RDBMS

Author:
holubec

Constructor Summary
RelationTable(String tableName, String key, String foreignKey, String factTable)
          Default constructor
 
Method Summary
 String getFactTable()
           
 String getForeignKey()
           
 void getJoinClausule(StringBuffer buf)
          Method appends to stringbuffer join part for this table
 String getTableName()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationTable

public RelationTable(String tableName,
                     String key,
                     String foreignKey,
                     String factTable)
Default constructor

Parameters:
tableName - name of the table
key - key of the fact table for join
foreignKey - key of the table for join
factTable - name of fact table
Method Detail

getFactTable

public String getFactTable()
Returns:
name of fact table

getForeignKey

public String getForeignKey()
Returns:
key of the table for join

getTableName

public String getTableName()
Returns:
name of the table

getJoinClausule

public void getJoinClausule(StringBuffer buf)
Method appends to stringbuffer join part for this table

Parameters:
buf - StringBuffer