public class SQLFields extends Object
Constructor and Description |
---|
SQLFields(String tableAlias,
RowMetaInterface serviceFields,
String fieldsClause) |
SQLFields(String tableAlias,
RowMetaInterface serviceFields,
String fieldsClause,
boolean orderClause) |
SQLFields(String tableAlias,
RowMetaInterface serviceFields,
String fieldsClause,
boolean orderClause,
SQLFields selectFields) |
Modifier and Type | Method and Description |
---|---|
SQLField |
findByName(String fieldName)
Find a field by it's field name (not alias)
|
List<SQLField> |
getAggregateFields() |
List<SQLField> |
getConstantFields() |
List<SQLField> |
getFields() |
String |
getFieldsClause() |
List<SQLField> |
getIifFunctionFields() |
List<SQLField> |
getNonAggregateFields() |
List<SQLField> |
getRegularFields() |
SQLFields |
getSelectFields() |
RowMetaInterface |
getServiceFields() |
String |
getTableAlias() |
boolean |
hasAggregates() |
boolean |
isDistinct() |
boolean |
isEmpty() |
void |
setFields(List<SQLField> fields) |
void |
setFieldsClause(String fieldsClause) |
void |
setSelectFields(SQLFields selectFields) |
void |
setServiceFields(RowMetaInterface serviceFields) |
public SQLFields(String tableAlias, RowMetaInterface serviceFields, String fieldsClause) throws KettleSQLException
KettleSQLException
public SQLFields(String tableAlias, RowMetaInterface serviceFields, String fieldsClause, boolean orderClause) throws KettleSQLException
KettleSQLException
public SQLFields(String tableAlias, RowMetaInterface serviceFields, String fieldsClause, boolean orderClause, SQLFields selectFields) throws KettleSQLException
KettleSQLException
public boolean isEmpty()
public SQLField findByName(String fieldName)
fieldName
- the name of the fieldpublic RowMetaInterface getServiceFields()
public void setServiceFields(RowMetaInterface serviceFields)
serviceFields
- the serviceFields to setpublic String getFieldsClause()
public void setFieldsClause(String fieldsClause)
fieldsClause
- the fieldsClause to setpublic SQLFields getSelectFields()
public void setSelectFields(SQLFields selectFields)
selectFields
- the selectFields to setpublic boolean hasAggregates()
public boolean isDistinct()
public String getTableAlias()