mondrian.rolap.aggmatcher
Class JdbcSchema.Table

java.lang.Object
  extended by mondrian.rolap.aggmatcher.JdbcSchema.Table
Enclosing class:
JdbcSchema

public class JdbcSchema.Table
extends Object

A table in a database.

 

Nested Class Summary
 class JdbcSchema.Table.Column
          A column in a table.
 
Field Summary
 MondrianDef.Table table
           
 
Method Summary
 boolean constainsColumn(String columnName)
          Return true if this table contains a column with the given name.
 JdbcSchema.Table.Column getColumn(String columnName)
          Get a column by its name.
 Collection<JdbcSchema.Table.Column> getColumns()
          Returns the collection of columns in this Table.
 Iterator<JdbcSchema.Table.Column.Usage> getColumnUsages(JdbcSchema.UsageType usageType)
          Returns an iterator over all column usages of a given type.
 String getName()
          Get the name of the table.
 int getNumberOfRows()
          Get the number of rows in the table.
 String getTableType()
          Get the table's type.
 JdbcSchema.TableUsageType getTableUsageType()
          Get the table's usage type.
 int getTotalColumnSize()
          Get the total size of a row (sum of the column sizes).
 void load()
           
 void print(PrintWriter pw, String prefix)
           
 void setTableUsageType(JdbcSchema.TableUsageType tableUsageType)
          Set the table usage (fact, aggregate or other).
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

table

public MondrianDef.Table table
Method Detail

load

public void load()
          throws SQLException
Throws:
SQLException

getName

public String getName()
Get the name of the table.


getTotalColumnSize

public int getTotalColumnSize()
Get the total size of a row (sum of the column sizes).


getNumberOfRows

public int getNumberOfRows()
Get the number of rows in the table.


getColumns

public Collection<JdbcSchema.Table.Column> getColumns()
Returns the collection of columns in this Table.


getColumnUsages

public Iterator<JdbcSchema.Table.Column.Usage> getColumnUsages(JdbcSchema.UsageType usageType)
Returns an iterator over all column usages of a given type.


getColumn

public JdbcSchema.Table.Column getColumn(String columnName)
Get a column by its name.


constainsColumn

public boolean constainsColumn(String columnName)
Return true if this table contains a column with the given name.


setTableUsageType

public void setTableUsageType(JdbcSchema.TableUsageType tableUsageType)
Set the table usage (fact, aggregate or other).

Parameters:
tableUsageType -

getTableUsageType

public JdbcSchema.TableUsageType getTableUsageType()
Get the table's usage type.


getTableType

public String getTableType()
Get the table's type.


toString

public String toString()
Overrides:
toString in class Object

print

public void print(PrintWriter pw,
                  String prefix)

SourceForge.net_Logo