Members
_isPrimaryTable
Properties:
| Type | Description |
|---|---|
| Boolean |
aggregateFunction
Properties:
| Type | Description |
|---|---|
| String |
aliasNames
Properties:
| Type | Description |
|---|---|
| Array.<String> |
calculatedFormula
Properties:
| Type | Description |
|---|---|
| String |
columnName
Properties:
| Type | Description |
|---|---|
| String |
columnTitle
Properties:
| Type | Description |
|---|---|
| String |
derivedTableColumn
Properties:
| Type | Description |
|---|---|
| Number |
distinctSetting
Properties:
| Type | Description |
|---|---|
| String |
fieldName
Properties:
| Type | Description |
|---|---|
| String |
isPrimaryTable
Is this field in the primary table.
originalTable
Properties:
| Type | Description |
|---|---|
| String |
originalTableColumn
Properties:
| Type | Description |
|---|---|
| Number |
selectColumn
Properties:
| Type | Description |
|---|---|
| Number |
subQueryAst
Properties:
| Type | Description |
|---|---|
| Object |
tableColumn
Get field column number.
tableInfo
Properties:
| Type | Description |
|---|---|
| Table |
tempField
Properties:
| Type | Description |
|---|---|
| Boolean |
Methods
addAlias(columnAlias) → {TableField}
Parameters:
| Name | Type | Description |
|---|---|---|
columnAlias |
String | alias name |
Returns:
- Type
- TableField
getData(tableRow) → {any}
Parameters:
| Name | Type | Description |
|---|---|---|
tableRow |
Number | row to read data from |
Returns:
- data
- Type
- any
setAggregateFunction(value) → {TableField}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
String | aggregate function name or '' |
Returns:
- Type
- TableField
setCalculatedFormula(value) → {TableField}
- Description:
Calculated formula for field (e.g. 'CASE WHEN QUANTITY >= 100 THEN 1 ELSE 0 END')
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
value |
String |
Returns:
- Type
- TableField
setColumnName(columnName) → {TableField}
Parameters:
| Name | Type | Description |
|---|---|---|
columnName |
String |
Returns:
- Type
- TableField
setColumnTitle(columnTitle) → {TableField}
- Description:
Set column TITLE. If an alias is available, that is used - otherwise it is column name.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
columnTitle |
String | column title used in output |
Returns:
- Type
- TableField
setDistinctSetting(distinctSetting) → {TableField}
Parameters:
| Name | Type | Description |
|---|---|---|
distinctSetting |
String |
Returns:
- Type
- TableField
setIsPrimaryTable(isPrimary) → {TableField}
- Description:
Set if this field belongs to primary table (i.e. select * from table), rather than a joined tabled.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
isPrimary |
Boolean | true if from primary table. |
Returns:
- Type
- TableField
setIsTempField(value) → {TableField}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
Boolean |
Returns:
- Type
- TableField
setOriginalTable(table) → {TableField}
Parameters:
| Name | Type | Description |
|---|---|---|
table |
String | original table name |
Returns:
- Type
- TableField
setOriginalTableColumn(column) → {TableField}
Parameters:
| Name | Type | Description |
|---|---|---|
column |
Number |
Returns:
- Type
- TableField
setSelectColumn(column) → {TableField}
Parameters:
| Name | Type | Description |
|---|---|---|
column |
Number | column number. |
Returns:
- Type
- TableField
setSubQueryAst(ast) → {TableField}
Parameters:
| Name | Type | Description |
|---|---|---|
ast |
Object | subquery ast. |
Returns:
- Type
- TableField
setTableInfo(tableInfo) → {TableField}
Parameters:
| Name | Type | Description |
|---|---|---|
tableInfo |
Table |
Returns:
- Type
- TableField
(static) getAllExtendedAliasNames(masterFields) → {Array.<String>}
- Description:
Search through list of fields and return a list of those that include the table name (e.g. TABLE.COLUMN vs COLUMN)
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
masterFields |
Array.<TableField> |
Returns:
- Type
- Array.<String>