public class SQL extends Object
| Constructor and Description |
|---|
SQL(String sqlString)
Create a new SQL object by parsing the supplied SQL string.
|
public SQL(String sqlString) throws KettleSQLException
sqlString - the SQL string to parseserviceName - the name of the service this SQL referencesrowMeta - the row layout of the serviceKettleSQLException - in case there is a SQL parsing errorpublic void parse(RowMetaInterface rowMeta) throws KettleSQLException
KettleSQLExceptionpublic String getSqlString()
public RowMetaInterface getRowMeta()
public String getServiceName()
public String getSelectClause()
public void setSelectClause(String selectClause)
selectClause - the selectClause to setpublic String getWhereClause()
public void setWhereClause(String whereClause)
whereClause - the whereClause to setpublic String getGroupClause()
public void setGroupClause(String groupClause)
groupClause - the groupClause to setpublic String getHavingClause()
public void setHavingClause(String havingClause)
havingClause - the havingClause to setpublic String getOrderClause()
public void setOrderClause(String orderClause)
orderClause - the orderClause to setpublic String getLimitClause()
public void setLimitClause(String limitClause)
limitClause - the orderClause to setpublic SQLLimit getLimitValues()
public void setLimitValues(SQLLimit limitValues)
limitValues - the limitValues to setpublic void setSqlString(String sqlString)
sqlString - the sql string to setpublic SQLFields getSelectFields()
public void setSelectFields(SQLFields selectFields)
selectFields - the selectFields to setpublic SQLFields getGroupFields()
public void setGroupFields(SQLFields groupFields)
groupFields - the groupFields to setpublic SQLFields getOrderFields()
public void setOrderFields(SQLFields orderFields)
orderFields - the orderFields to setpublic SQLCondition getWhereCondition()
public void setWhereCondition(SQLCondition whereCondition)
whereCondition - the whereCondition to setpublic void setRowMeta(RowMetaInterface rowMeta)
rowMeta - the rowMeta to setpublic void setServiceName(String serviceName)
serviceName - the serviceName to setpublic SQLCondition getHavingCondition()
public void setHavingCondition(SQLCondition havingCondition)
havingCondition - the havingCondition to setpublic String getNamespace()