deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.io.datastore.sql.wherebuilder
Class SpecialCharString

java.lang.Object
  extended by org.deegree.io.datastore.sql.wherebuilder.SpecialCharString

public class SpecialCharString
extends java.lang.Object

Represents a String that may contain special symbols (wildCard, singleChar, escape) as a list of its parts (SpecialCharStringPart).

The internal representation needs no escape symbols.

Version:
$Revision: 6588 $, $Date: 2007-04-11 17:31:29 +0200 (Mi, 11 Apr 2007) $
Author:
Markus Schneider , last edited by: $Author: mschneider $

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

Constructor Detail

SpecialCharString

public SpecialCharString(java.lang.String encodedString,
                         java.lang.String wildCard,
                         java.lang.String singleChar,
                         java.lang.String escape)
Constructs a new SpecialCharString instance from the given parameters.

Parameters:
encodedString -
wildCard -
singleChar -
escape -
Method Detail

toSQLStyle

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

This means:

Returns:
encoded string

toSQLStyle

public java.lang.String toSQLStyle(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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

deegree 2.5 (2011/06/29 09:44 build-8-official)

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