mondrian.rolap.aggmatcher
Class JdbcSchema.Table

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

public class JdbcSchema.Table
extends java.lang.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(java.lang.String columnName)
          Return true if this table contains a column with the given name.
 JdbcSchema.Table.Column getColumn(java.lang.String columnName)
          Returns a column by its name.
 java.util.Collection<JdbcSchema.Table.Column> getColumns()
          Returns the collection of columns in this Table.
 java.util.Iterator<JdbcSchema.Table.Column.Usage> getColumnUsages(JdbcSchema.UsageType usageType)
          Returns an iterator over all column usages of a given type.
 java.lang.String getName()
          Returns the name of the table.
 int getNumberOfRows()
          Returns the number of rows in the table.
 java.lang.String getTableType()
          Returns the table's type.
 JdbcSchema.TableUsageType getTableUsageType()
          Returns the table's usage type.
 int getTotalColumnSize()
          Returns the total size of a row (sum of the column sizes).
 void load()
           
 void print(java.io.PrintWriter pw, java.lang.String prefix)
           
 void setTableUsageType(JdbcSchema.TableUsageType tableUsageType)
          Sets the table usage (fact, aggregate or other).
 java.lang.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 java.sql.SQLException
Throws:
java.sql.SQLException

getName

public java.lang.String getName()
Returns the name of the table.


getTotalColumnSize

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


getNumberOfRows

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


getColumns

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


getColumnUsages

public java.util.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(java.lang.String columnName)
Returns a column by its name.


constainsColumn

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


setTableUsageType

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

Parameters:
tableUsageType -

getTableUsageType

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


getTableType

public java.lang.String getTableType()
Returns the table's type.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

print

public void print(java.io.PrintWriter pw,
                  java.lang.String prefix)

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads