com.jcorporate.expresso.core.db
Class DefaultEscapeHandler
java.lang.Object
com.jcorporate.expresso.core.db.DefaultEscapeHandler
- All Implemented Interfaces:
- EscapeHandler
- public class DefaultEscapeHandler
- extends Object
- implements EscapeHandler
This class character field filtering that is known to be compliant with
the Firebird, MySQL and PostgreSQL databases. It replaces single backslashes
with double backslashes. so that those characters are escaped. Currently
"e; 's are simply removed as I haven't found a way to get the databases
to accept them nicely.
- 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 |
DefaultEscapeHandler
public DefaultEscapeHandler()
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.