Package de.hybris.platform.patches.utils
Class DbUtils
java.lang.Object
de.hybris.platform.patches.utils.DbUtils
Set of utility methods for DB related operations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidexecuteUpdate(String query) Executes direct SQL update for specified query.static org.springframework.jdbc.core.JdbcTemplateReturns instance of JDBC template.
-
Method Details
-
executeUpdate
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
-