org.wso2.carbon.dataservices.sql.driver.parser
Class Condition
java.lang.Object
org.wso2.carbon.dataservices.sql.driver.parser.Condition
public class Condition
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Condition
public Condition()
process
public Map<Integer,DataRow> process(DataTable dataTable)
throws SQLException
Processes the condition by traversing through the binary tree of conditions that it
creates while parsing the WHERE clause of a conditional SQL statement.
- Parameters:
dataTable - Input data
- Returns:
- Filtered out data after evaluating the input against the provided conditions
- Throws:
SQLException
getColumn
public String getColumn()
setColumn
public void setColumn(String column)
getOperator
public String getOperator()
setOperator
public void setOperator(String operator)
getValue
public String getValue()
setValue
public void setValue(String value)
getLhs
public Condition getLhs()
setLhs
public void setLhs(Condition lhs)
getRhs
public Condition getRhs()
setRhs
public void setRhs(Condition rhs)
Copyright © 2015 WSO2. All rights reserved.