org.deegree.sqldialect.filter.islike
Class IsLikeString

java.lang.Object
  extended by org.deegree.sqldialect.filter.islike.IsLikeString

public class IsLikeString
extends Object

Used for an escape-free representation of a literal from a PropertyIsLike operation.

May contain special symbols (wildCard, singleChar, escape) as a list of its parts (IsLikeStringPart).

Version:
$Revision: 22060 $, $Date: 2010-01-20 17:59:52 +0100 (Mi, 20. Jan 2010) $
Author:
Markus Schneider , last edited by: $Author: mschneider $

Constructor Summary
IsLikeString(String encodedString, String wildCard, String singleChar, String escape)
          Constructs a new SpecialCharString instance from the given parameters.
 
Method Summary
 String toSQL()
          Returns an encoding that is suitable for arguments of "IS LIKE"-clauses in SQL.
 String toSQL(boolean toLowerCase)
          Returns an encoding that is suitable for arguments of "IS LIKE"-clauses in SQL.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IsLikeString

public IsLikeString(String encodedString,
                    String wildCard,
                    String singleChar,
                    String escape)
             throws FilterEvaluationException
Constructs a new SpecialCharString instance from the given parameters.

Parameters:
encodedString -
wildCard - must be exacly one character
singleChar - must be exacly one character
escape - must be exacly one character
Throws:
FilterEvaluationException - if wildCard, singleChar or escapeChar are not exactly one character
Method Detail

toSQL

public String toSQL()
Returns an encoding that is suitable for arguments of "IS LIKE"-clauses in SQL.

This means:

Returns:
encoded string

toSQL

public String toSQL(boolean toLowerCase)
Returns an encoding that is suitable for arguments of "IS LIKE"-clauses in SQL.

This means:

Parameters:
toLowerCase - true means: convert to lowercase letters
Returns:
encoded string

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.