code: @Override
     protected String escapeSpecialChars(String pattern)
     {
        char[] chars = pattern.toCharArray();
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < chars.length; i++)
        {
           switch (chars[i])
           {
              case '*' :
                 sb.append('%');
                 break;
              case '_' :
              case '%' :
              case '[' : //Sybase pattern special symbol
              case ']' : //Sybase pattern special symbol
                 sb.append(this.getWildcardEscapeSymbol());
              default :
                 sb.append(chars[i]);
           }
        }
        return sb.toString();
     }
docs: {@inheritDoc}