Package mondrian.rolap.aggmatcher
Class JdbcSchema.Table
- java.lang.Object
-
- mondrian.rolap.aggmatcher.JdbcSchema.Table
-
- Enclosing class:
- JdbcSchema
public class JdbcSchema.Table extends Object
A table in a database.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classJdbcSchema.Table.ColumnA column in a table.
-
Field Summary
Fields Modifier and Type Field Description MondrianDef.Tabletable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanconstainsColumn(String columnName)Return true if this table contains a column with the given name.voidflushUsages()flushes all star usage referencesJdbcSchema.Table.ColumngetColumn(String columnName)Returns a column by its name.Map<String,JdbcSchema.Table.Column>getColumnMap()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.StringgetName()Returns the name of the table.longgetNumberOfRows()Returns the number of rows in the table.StringgetTableType()Returns the table's type.mondrian.rolap.aggmatcher.JdbcSchema.TableUsageTypegetTableUsageType()Returns the table's usage type.intgetTotalColumnSize()Returns the total size of a row (sum of the column sizes).voidload()voidprint(PrintWriter pw, String prefix)voidsetTableUsageType(mondrian.rolap.aggmatcher.JdbcSchema.TableUsageType tableUsageType)Sets the table usage (fact, aggregate or other).StringtoString()
-
-
-
Field Detail
-
table
public MondrianDef.Table table
-
-
Method Detail
-
load
public void load() throws SQLException- Throws:
SQLException
-
flushUsages
public void flushUsages()
flushes all star usage references
-
getName
public 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 long getNumberOfRows()
Returns 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)
Returns 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(mondrian.rolap.aggmatcher.JdbcSchema.TableUsageType tableUsageType)
Sets the table usage (fact, aggregate or other).- Parameters:
tableUsageType- Usage type
-
getTableUsageType
public mondrian.rolap.aggmatcher.JdbcSchema.TableUsageType getTableUsageType()
Returns the table's usage type.
-
getTableType
public String getTableType()
Returns the table's type.
-
print
public void print(PrintWriter pw, String prefix)
-
getColumnMap
public Map<String,JdbcSchema.Table.Column> getColumnMap()
-
-