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 class
JdbcSchema.Table.Column
A column in a table.
-
Field Summary
Fields Modifier and Type Field Description MondrianDef.Table
table
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
constainsColumn(String columnName)
Return true if this table contains a column with the given name.void
flushUsages()
flushes all star usage referencesJdbcSchema.Table.Column
getColumn(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.String
getName()
Returns the name of the table.int
getNumberOfRows()
Returns the number of rows in the table.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(PrintWriter pw, String prefix)
void
setTableUsageType(JdbcSchema.TableUsageType tableUsageType)
Sets the table usage (fact, aggregate or other).String
toString()
-
-
-
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 int 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(JdbcSchema.TableUsageType tableUsageType)
Sets the table usage (fact, aggregate or other).- Parameters:
tableUsageType
- Usage type
-
getTableUsageType
public 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()
-
-