Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.jcorporate.expresso.core.db
Class DoubleQuoteEscapeHandler  view DoubleQuoteEscapeHandler download DoubleQuoteEscapeHandler.java

java.lang.Object
  extended bycom.jcorporate.expresso.core.db.DoubleQuoteEscapeHandler
All Implemented Interfaces:
EscapeHandler

public class DoubleQuoteEscapeHandler
extends java.lang.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.


Field Summary
private static com.jcorporate.expresso.core.security.filters.Filter fieldFilter
           
 
Constructor Summary
DoubleQuoteEscapeHandler()
           
 
Method Summary
 java.lang.String escapeString(java.lang.String input)
          Escape a string so that all special characters for that database are properly escaped.
private  void init()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldFilter

private static transient com.jcorporate.expresso.core.security.filters.Filter fieldFilter
Constructor Detail

DoubleQuoteEscapeHandler

public DoubleQuoteEscapeHandler()
Method Detail

init

private void init()

escapeString

public java.lang.String escapeString(java.lang.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