Class Table
Object
AbstractTable
Table
Table
- All Implemented Interfaces:
Serializable,Comparable<Table>,DatamartContext.Table,NamedStructure,Table,HasName
Represents a table and its metadata description.
- See Also:
-
Field Summary
FieldsFields inherited from class Table
columns, name, remarks, schema, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDMFieldCollectionfc()getColumn(int index) Convenience method for retrieving a column by its name.getColumnByLabel(String columnLabel) Convenience method for retrieving a column by its label.DMFieldCollectionThe underlying FC's source name.booleanisView()voidsetIsView(boolean view) voidsetUseRefreshData(Boolean useRefreshData) Methods inherited from class Table
getColumns, getName, getQuote, getRelationships, getRemarks, getSchema, getTypeMethods inherited from class AbstractTable
compareTo, equals, getBooleanColumns, getColumnByName, getColumnCount, getColumnNames, getColumnsOfSuperType, getColumnsOfType, getForeignKeyRelationships, getForeignKeys, getIndexedColumns, getLiteralColumns, getNumberColumns, getPrimaryKeyRelationships, getPrimaryKeys, getQualifiedLabel, getQuotedName, getRelationshipCount, getRelationships, getTimeBasedColumns, hashCode, toString
-
Field Details
-
fc
protected transient DMFieldCollection fc
-
-
Constructor Details
-
Table
protected Table(DMFieldCollection fc, Schema schema)
-
-
Method Details
-
isView
public boolean isView() -
setIsView
public void setIsView(boolean view) -
getUseRefreshData
-
setUseRefreshData
-
getColumn
Description copied from interface:DatamartContext.TableConvenience method for retrieving a column by its name.Example:
def ctx = api.getDatamartContext() def dm = ctx.getDatamart("Transactions_DM") def ccDim = dm.getColumn("CC") def cc = ctx.dimFilterEntry("CC", ccDim) if (cc!=null) return cc.value- Specified by:
getColumnin interfaceDatamartContext.Table- Overrides:
getColumnin classTable- Parameters:
columnName- the name of the column to retrieve- Returns:
- the column with the given name. Returns null if no such column is found.
-
getColumn
- Specified by:
getColumnin interfaceDatamartContext.Table- Specified by:
getColumnin interfaceTable- Overrides:
getColumnin classAbstractTable
-
getColumnByLabel
Description copied from interface:DatamartContext.TableConvenience method for retrieving a column by its label.- Specified by:
getColumnByLabelin interfaceDatamartContext.Table- Parameters:
columnLabel- the label of the column to retrieve- Returns:
- the column with the given label. Returns null if no such column is found.
-
fc
public DMFieldCollection fc() -
getFieldCollection
public DMFieldCollection getFieldCollection() -
getSourceName
Description copied from interface:DatamartContext.TableThe underlying FC's source name.It can be useful when the source name is required by other APIs.
- Specified by:
getSourceNamein interfaceDatamartContext.Table- Returns:
- The source name
-