Class SQLHelper

java.lang.Object
com.majorana.maj_orm.Utils.SQLHelper

public class SQLHelper extends Object
  • Field Details

    • BLANK_TIMESTAMP

      public static final LocalDateTime BLANK_TIMESTAMP
  • Constructor Details

    • SQLHelper

      public SQLHelper()
  • Method Details

    • safeSQL

      public static String safeSQL(String s)
    • getDelimitedCodesSafeString

      public static String getDelimitedCodesSafeString(Set<String> codes)
    • getTokensForCollection

      public static <T> String getTokensForCollection(Collection<T> items)
      Returns a CSV string of parameter tokens for each value in items
      Type Parameters:
      T - - type of the collection
      Parameters:
      items - - the items to generate tokens for
      Returns:
      - string of ? tokens separated by commas. If items is null, a blank string is returned e.g. list [1,2,3] will return the string "?,?,?"