com.jcorporate.expresso.core.db
Class DoubleQuoteEscapeHandler
java.lang.Object
com.jcorporate.expresso.core.db.DoubleQuoteEscapeHandler
- All Implemented Interfaces:
- EscapeHandler
- public class DoubleQuoteEscapeHandler
- extends Object
- implements EscapeHandler
This class provides escape handling mechanism for SapDB. Sap is a little
different from many other databases, probably because a lot of it is Pascal
based. Either way, it handles backslashes just fine, but it will choke on
single quotes unless they are made ''. Double quotes for now are still
gobbled up.
- Author:
- Michael Rimov
|
Method Summary |
String |
escapeString(String input)
Escape a string so that all special characters for that database are properly
escaped. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoubleQuoteEscapeHandler
public DoubleQuoteEscapeHandler()
escapeString
public String escapeString(String input)
- Description copied from interface:
EscapeHandler
- Escape a string so that all special characters for that database are properly
escaped.
- Specified by:
escapeString in interface EscapeHandler
- Parameters:
input - The string to filter
- Returns:
- a properly constructed string for your particular database.
Please see www.jcorporate.com for information about new Expresso releases.