|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.rolap.aggmatcher.AggStar.Table
public abstract class AggStar.Table
Base Table class for the FactTable and DimTable classes. This class parallels the RolapStar.Table class.
Nested Class Summary | |
---|---|
class |
AggStar.Table.Column
Base class for Level and Measure classes |
(package private) class |
AggStar.Table.ForeignKey
This class is used for holding foreign key columns. |
class |
AggStar.Table.JoinCondition
The query join condition between a base table and this table (the table that owns the join condition). |
(package private) class |
AggStar.Table.Level
This class is used for holding dimension level information. |
Field Summary | |
---|---|
protected List<AggStar.DimTable> |
children
|
protected List<AggStar.Table.Level> |
levels
|
Constructor Summary | |
---|---|
AggStar.Table(String name,
MondrianDef.Relation relation)
|
Method Summary | |
---|---|
protected void |
addLevel(AggStar.Table.Level level)
Add a Level column. |
protected void |
addTable(AggStar.DimTable child)
Add a child DimTable table. |
void |
addToFrom(SqlQuery query,
boolean failIfExists,
boolean joinToParent)
This is a copy of the code found in RolapStar used to generate an SQL query. |
protected void |
convertChildren(RolapStar.Table rTable)
Convert the child tables of a RolapStar.Table into child AggStar.DimTable tables. |
protected void |
convertColumns(RolapStar.Table rTable)
Convert a RolapStar.Table table's columns into AggStar.Table.Level columns. |
protected AggStar.DimTable |
convertTable(RolapStar.Table rTable,
String rightJoinConditionColumnName)
Converts a RolapStar.Table into a
AggStar.DimTable as well as converting all columns and
child tables. |
AggStar.Table |
findDescendant(String name)
Find descendant of fact table with given name or return null. |
protected AggStar |
getAggStar()
Get this table's enclosing AggStar. |
List<AggStar.DimTable> |
getChildTables()
Returns a list of child AggStar.Table objects. |
abstract AggStar.Table.JoinCondition |
getJoinCondition()
|
List<AggStar.Table.Level> |
getLevels()
Returns all level columns. |
String |
getName()
Return the name of the table in the database. |
abstract AggStar.Table |
getParent()
Get the parent table (returns null if this table is a FactTable). |
MondrianDef.Relation |
getRelation()
|
protected SqlQuery |
getSqlQuery()
Get a SqlQuery object. |
boolean |
hasChildren()
Return true if this table has one or more child tables. |
abstract boolean |
hasJoinCondition()
Return true if this table has a join condition (only DimTables have join conditions, FactTable instances do not). |
boolean |
hasLevels()
Return true if table has levels. |
abstract boolean |
hasParent()
Return true if this table has a parent table (FactTable instances do not have parent tables, all other do). |
abstract void |
print(PrintWriter pw,
String prefix)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final List<AggStar.Table.Level> levels
protected List<AggStar.DimTable> children
Constructor Detail |
---|
AggStar.Table(String name, MondrianDef.Relation relation)
Method Detail |
---|
public String getName()
public abstract boolean hasParent()
public abstract AggStar.Table getParent()
public abstract boolean hasJoinCondition()
public abstract AggStar.Table.JoinCondition getJoinCondition()
public MondrianDef.Relation getRelation()
protected AggStar getAggStar()
protected SqlQuery getSqlQuery()
protected void addLevel(AggStar.Table.Level level)
level
- public List<AggStar.Table.Level> getLevels()
public boolean hasLevels()
protected void addTable(AggStar.DimTable child)
child
- public List<AggStar.DimTable> getChildTables()
AggStar.Table
objects.
public AggStar.Table findDescendant(String name)
name
- the child table name (alias).
public boolean hasChildren()
protected AggStar.DimTable convertTable(RolapStar.Table rTable, String rightJoinConditionColumnName)
RolapStar.Table
into a
AggStar.DimTable
as well as converting all columns and
child tables. If the rightJoinConditionColumnName parameter
is null, then the table's namd and the rTable parameter's
condition left condition's column name are used to form the
join condition's left expression.
protected void convertColumns(RolapStar.Table rTable)
rTable
- protected void convertChildren(RolapStar.Table rTable)
rTable
- public void addToFrom(SqlQuery query, boolean failIfExists, boolean joinToParent)
query
- failIfExists
- joinToParent
- public String toString()
toString
in class Object
public abstract void print(PrintWriter pw, String prefix)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |