Class EscapeSqlReference

    • Field Summary

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String escape​(java.lang.Object text)
      Escapes the characters in a String to be suitable to pass to an SQL query.
      protected java.lang.String getMatchAttribute()
      Specify the configuration attribute that specifies the regular expression.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EscapeSqlReference

        public EscapeSqlReference()
    • Method Detail

      • escape

        protected java.lang.String escape​(java.lang.Object text)
        Escapes the characters in a String to be suitable to pass to an SQL query.
        Specified by:
        escape in class EscapeReference
        Parameters:
        text -
        Returns:
        An escaped string.
      • getMatchAttribute

        protected java.lang.String getMatchAttribute()
        Description copied from class: EscapeReference
        Specify the configuration attribute that specifies the regular expression. Ideally should be in a form
        eventhandler.escape.XYZ.match

        where XYZ is the type of escaping being done.

        Specified by:
        getMatchAttribute in class EscapeReference
        Returns:
        attribute "eventhandler.escape.sql.match"