isql.predicate
Class LikePredicate

java.lang.Object
  extended by isql.predicate.LikePredicate
All Implemented Interfaces:
IPredicate

public class LikePredicate
extends java.lang.Object
implements IPredicate

exp LIKE exp can be a column or an expression that involves table columns or a constant (which does actually not make so much sense)

Author:
SHZ Oct 11, 2007

Constructor Summary
LikePredicate(IExpression test, java.lang.String like, ColumnValues values, boolean negated)
           
 
Method Summary
 WhereView apply()
          Returns, for each involved column, the indices (possibly repeated) of the table rows that are connected by the predicate.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LikePredicate

public LikePredicate(IExpression test,
                     java.lang.String like,
                     ColumnValues values,
                     boolean negated)
Parameters:
test -
like -
Method Detail

apply

public WhereView apply()
                throws ISQLException
Description copied from interface: IPredicate
Returns, for each involved column, the indices (possibly repeated) of the table rows that are connected by the predicate. In practice it returns a view that consists of the table rows of the involved tables put together depending by the predicate. For example a C1 = C2 operator will put together all the table rows for which the columns C1 and C2 are equal, and discard the others

Specified by:
apply in interface IPredicate
Returns:
map table name -> indices of the rows that the predicate connects (possibly repeated).
Throws:
ISQLException

toString

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