Package net.pricefx.formulaengine
Interface DatamartContext.Table
- All Known Implementing Classes:
Table
- Enclosing interface:
DatamartContext
public static interface DatamartContext.Table
-
Method Summary
Modifier and TypeMethodDescriptiongetColumn
(int index) Convenience method for retrieving a column by its name.getColumnByLabel
(String columnLabel) Convenience method for retrieving a column by its label.The underlying FC's source name.
-
Method Details
-
getColumn
Convenience 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
- Parameters:
columnName
- the name of the column to retrieve- Returns:
- the column with the given name. Returns null if no such column is found.
-
getColumnByLabel
Convenience method for retrieving a column by its label.- Parameters:
columnLabel
- the label of the column to retrieve- Returns:
- the column with the given label. Returns null if no such column is found.
-
getColumn
-
getSourceName
String getSourceName()The underlying FC's source name.It can be useful when the source name is required by other APIs.
- Returns:
- The source name
-