Package de.hybris.platform.patches.utils
Class DbUtils
- java.lang.Object
-
- de.hybris.platform.patches.utils.DbUtils
-
public final class DbUtils extends java.lang.ObjectSet of utility methods for DB related operations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidexecuteUpdate(java.lang.String query)Executes direct SQL update for specified query.static org.springframework.jdbc.core.JdbcTemplategetJdbcTemplate()Returns instance of JDBC template.
-
-
-
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
-
-