Class DbUtils


  • public final class DbUtils
    extends java.lang.Object
    Set of utility methods for DB related operations.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void executeUpdate​(java.lang.String query)
      Executes direct SQL update for specified query.
      static org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
      Returns instance of JDBC template.
      • Methods inherited from class java.lang.Object

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

      • executeUpdate

        public static void executeUpdate​(java.lang.String query)
        Executes direct SQL update for specified query.
        Parameters:
        query - to be executed on DB (directly, not through hybris ORM)
      • getJdbcTemplate

        public static org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
        Returns instance of JDBC template.
        Returns:
        JDBC template