Class SqlParameterEncoder


  • public class SqlParameterEncoder
    extends Object
    Provides custom encoding and escaping functions for use by the JDBCQueryBuilder. Proper encoding/escaping reduces the likelihood of SQL penetration that may happen when called via the REST layer.
    • Constructor Detail

      • SqlParameterEncoder

        public SqlParameterEncoder()
      • SqlParameterEncoder

        public SqlParameterEncoder​(String escapeCharacter,
                                   String blackListCharactersRegex)
    • Method Detail

      • encodeParameter

        public String encodeParameter​(String parameter)
      • getEscapeCharacter

        public String getEscapeCharacter()
      • encode

        public static String encode​(String parameter)
      • encode

        public static String encode​(String parameter,
                                    String defaultEscapeCharacter,
                                    String blackListCharactersRegex)