Compoze Software, Inc.

com.compoze.exchange.webdav.sql
Class ContainsPredicate


java.lang.Object

  |

  +--com.compoze.exchange.webdav.sql.AbstractSqlFragment

        |

        +--com.compoze.exchange.webdav.sql.AbstractPredicate

              |

              +--com.compoze.exchange.webdav.sql.ContainsPredicate

All Implemented Interfaces:
IPredicate, ISqlFragment, java.io.Serializable

public final class ContainsPredicate
extends AbstractPredicate
implements java.io.Serializable

This class creates a functionn filter rule using a CONTAINS predicate. The CONTAINS function searches certain field contains for a given substring. The CONTAINS predicate can only function if Full-Text Indexing is applied to the store being searched.

See Also:
Serialized Form

Fields inherited from class com.compoze.exchange.webdav.sql.AbstractPredicate
m_sPropName, m_values
 
Constructor Summary
ContainsPredicate(java.lang.String sPropName, java.lang.String sValue)
          Constructor.
ContainsPredicate(java.lang.String sPropName, java.lang.String[] values)
          Constructor.
 
Method Summary
static void main(java.lang.String[] args)
           
 java.lang.String toSQL()
          Returns a string representation of the clause.
 
Methods inherited from class com.compoze.exchange.webdav.sql.AbstractPredicate
getName, getValue, getValues
 
Methods inherited from class com.compoze.exchange.webdav.sql.AbstractSqlFragment
escape, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainsPredicate


public ContainsPredicate(java.lang.String sPropName,
                         java.lang.String sValue)
Constructor.
Parameters:
sPropName - the property name.
sValue - the value of the property.

ContainsPredicate


public ContainsPredicate(java.lang.String sPropName,
                         java.lang.String[] values)
Constructor.
Parameters:
sPropName - the property name.
values - array of values of the property.
Method Detail

toSQL


public java.lang.String toSQL()
Returns a string representation of the clause.
Overrides:
toSQL in class AbstractPredicate
Returns:
the string representation of the clause.

main


public static void main(java.lang.String[] args)

Compoze Software, Inc.

Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.