Statement object that handles providing various search filters around APIs.
Used in conjunction with a Query.
Statement would be formed as ()
E.g.: For, specifying (state = 1), set:
attributeName = "state"
operator = "EQUALS"
attributeValue = 1
E.g.: For, specifiying 'name' begins that 'abc', i.e, name = 'abc*', set:
public void setInnerStatement(Statement innerStatement)
Sets inner statement for this statement. This will allow joining two statements together, using the JoinOperator.
This statement is then treated as : (this innerStatement), where
'this' refers to this Statement object and 'innerStatement' refers to the innerStatement property in this object.
E.g., For specifying ((name = 'abc*') OR name = '*xyz'), i.e., either 'name' begins with 'abc' or ends with 'xyz', set:
this.attributeName = "name"
this.operator = "STARTS_WITH"
this.attributeValue = "abc"
Then create a new Statement object as follows, and set it as the "innerStatement" for this object: