Expresso 5-6

com.jcorporate.expresso.core.db
Interface EscapeHandler

All Known Implementing Classes:
DefaultEscapeHandler, DoubleQuoteEscapeHandler, MySQLEscapeHandler

public interface EscapeHandler

This interface is the base interface by which we escape characters that are to be written to the database. Different databases can perform significantly differetly. For example, both Postgres and MySQL escape single quotes as \' but SapDB escapes it as ''. By running character strings through the escape handler, we have the ability to customize behavior based upon the variou databases.

Most implementations of this interface depend on the com.jcorporate.expresso.core.security.filters mechanism to properly work

Author:
Michael Rimov

Method Summary
 String escapeString(String input)
          Escape a string so that all special characters for that database are properly escaped.
 

Method Detail

escapeString

public String escapeString(String input)
Escape a string so that all special characters for that database are properly escaped.

Parameters:
input - The string to filter
Returns:
a properly constructed string for your particular database.

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.