| java.lang.Object org.deegree.io.datastore.sql.wherebuilder.SpecialCharString
SpecialCharString | public class SpecialCharString (Code) | | 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.
author: Markus Schneider author: last edited by: $Author: mschneider $ version: $Revision: 6588 $, $Date: 2007-04-11 17:31:29 +0200 (Mi, 11 Apr 2007) $ |
Method Summary | |
public String | toSQLStyle() Returns an encoding that is suitable for arguments of "IS LIKE"-clauses in SQL. | public String | toSQLStyle(boolean toLowerCase) Returns an encoding that is suitable for arguments of "IS LIKE"-clauses in SQL. | public String | toString() |
SpecialCharString | public SpecialCharString(String encodedString, String wildCard, String singleChar, String escape)(Code) | | Constructs a new SpecialCharString instance from the given parameters.
Parameters: encodedString - Parameters: wildCard - Parameters: singleChar - Parameters: escape - |
toSQLStyle | public String toSQLStyle()(Code) | | Returns an encoding that is suitable for arguments of "IS LIKE"-clauses in SQL.
This means:
- wildCard: encoded as the '%'-character
- singleChar: encoded as the '_'-character
- escape: encoded as the '\'-character
encoded string |
toSQLStyle | public String toSQLStyle(boolean toLowerCase)(Code) | | Returns an encoding that is suitable for arguments of "IS LIKE"-clauses in SQL.
This means:
- wildCard: encoded as the '%'-character
- singleChar: encoded as the '_'-character
- escape: encoded as the '\'-character
Parameters: toLowerCase - true means: convert to lowercase letters encoded string |
|
|