Class JdbcTemplateHelper

  • All Implemented Interfaces:

    
    public class JdbcTemplateHelper
    
                        
    Since:

    2024-01-25

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static String safeWhere(String where)
      where clause of PreparedStatement, must,
      - start with ' WHERE ' case-ignored
      - not empty
      - not contains ';'
      
      static void initSafeTable(JdbcTemplate tmpl)
      static boolean isSafeTable(String table) whether the table is in the safe list
      static String safeName(@NotNull() String name) quote name, e.g.
      static String safeTable(String table) check and quote table
      • Methods inherited from class java.lang.Object

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

      • JdbcTemplateHelper

        JdbcTemplateHelper()