com.fatwire.assetapi.query
Interface Condition

All Known Implementing Classes:
SimpleCondition

public interface Condition

Represents a data condition to be satisfied by returning results when used in a Query. The condition itself could contains a Conditions, which contains a query expression, or a left and a right Condition joined by JoinTypeEnum, which could in turn contains either ConditionExprssion or left/right Conditions. Condition itself will never contains both ConditionExpression and Left/Right Condtions at the same time.


Method Summary
 Condition and(Condition input)
          Joins (Conjunction) a given Condition with this Condition
 ConditionExpression getExpression()
          Returns ConditionExpression this Condition represents
 JoinTypeEnum getJoinType()
          Returns the nesting type associated with the condition
 Condition getLeftCondition()
          Returns the left hand side of joined condition
 Condition getRightCondition()
          Returns the right hand side of joined condition
 Condition or(Condition input)
          Joins (Disjunction) a given Condition with this Condition
 

Method Detail

getJoinType

JoinTypeEnum getJoinType()
Returns the nesting type associated with the condition

Returns:
type of nesting of this condition.

getLeftCondition

Condition getLeftCondition()
Returns the left hand side of joined condition

Returns:
Left hand side of joined condition

getRightCondition

Condition getRightCondition()
Returns the right hand side of joined condition

Returns:
Right hand side of joined condition

getExpression

ConditionExpression getExpression()
Returns ConditionExpression this Condition represents

Returns:
ConditionExpression associated with this condition

and

Condition and(Condition input)
Joins (Conjunction) a given Condition with this Condition

Parameters:
input - Condition to be joined
Returns:
Joined Condition

or

Condition or(Condition input)
Joins (Disjunction) a given Condition with this Condition

Parameters:
input - Condition to be joined
Returns:
Joined Condition