com.fdsapi.arrays
Class ConditionalIn

java.lang.Object
  |
  +--com.fdsapi.arrays.ConditionalIn
All Implemented Interfaces:
Conditional

public class ConditionalIn
extends java.lang.Object
implements Conditional

Similar to the 'in clause' within a SQL select statement. For example: select * from table where lname in ('souza','johnson','jones')

View Code


Constructor Summary
ConditionalIn(int col, java.lang.Object[] compArray)
           
ConditionalIn(int col, java.lang.Object[] compArray, boolean negate)
           
 
Method Summary
 java.lang.String getType()
          This method returns information about what action/type the conditional takes.
 boolean isTrue(java.lang.Object[] row)
          Pass in one row of an Object[][] array and the implementation of isTrue(...) returns true if the row should be kept and false otherwise
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConditionalIn

public ConditionalIn(int col,
                     java.lang.Object[] compArray,
                     boolean negate)

ConditionalIn

public ConditionalIn(int col,
                     java.lang.Object[] compArray)
Method Detail

getType

public java.lang.String getType()
Description copied from interface: Conditional
This method returns information about what action/type the conditional takes. Examples are <,>,=, like and not like

Specified by:
getType in interface Conditional

isTrue

public boolean isTrue(java.lang.Object[] row)
Description copied from interface: Conditional
Pass in one row of an Object[][] array and the implementation of isTrue(...) returns true if the row should be kept and false otherwise

Specified by:
isTrue in interface Conditional

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object