deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.filter.sql.islike
Class PlainText

java.lang.Object
  extended by org.deegree.filter.sql.islike.PlainText
All Implemented Interfaces:
IsLikeStringPart

final class PlainText
extends Object
implements IsLikeStringPart

Part of a IsLikeString that contains standard characters only.

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
PlainText(String text)
          Creates a new instance of PlainText.
 
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

PlainText

PlainText(String text)
Creates a new instance of PlainText.

Parameters:
text -
Method Detail

toSQL

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

This means:

Specified by:
toSQL in interface IsLikeStringPart
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:

Specified by:
toSQL in interface IsLikeStringPart
Parameters:
toLowerCase - true means: convert to lowercase letters
Returns:
encoded string

toString

public String toString()
Overrides:
toString in class Object

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>