|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.fdsapi.arrays.ConditionalCompositeImp
Used for grouping conditionals in the ArraySQL and ArrayFilter classes. This composite can correspond to a paren level/or condition, or an and condition. As this class implements the composite design pattern it can also contain itself. Here are some examples.
select * from array where col0='steve' and col1='souza' - creates 2 composites. One for the root holder of the where clause and the other for the and clause
select * from array where col0='steve' and col1='souza' or col1='jones' - same as above
select * from array where (col0='steve' and col1='souza' or col1='jones') - 3 composites. the root composite, the paren level (an or is created), and the and composite.
*
| Constructor Summary | |
ConditionalCompositeImp(java.lang.String type)
Creates a new instance of ConditionalCompositeImp |
|
| Method Summary | |
void |
addConditional(Conditional conditional)
Add a conditional to the Composite. |
void |
addNot()
Negate the boolean return status of the entire composite. |
java.lang.String |
getType()
Returns the empty string |
boolean |
isTrue(java.lang.Object[] row)
Returns true if the row passed in should be kept |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConditionalCompositeImp(java.lang.String type)
| Method Detail |
public boolean isTrue(java.lang.Object[] row)
ConditionalComposite
isTrue in interface ConditionalCompositepublic void addConditional(Conditional conditional)
addConditional in interface ConditionalCompositepublic void addNot()
addNot in interface ConditionalCompositepublic java.lang.String getType()
getType in interface Conditional
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||