HHH-14025 Add method to return the query statements for update queries

This commit is contained in:
Davide D'Alto 2020-05-16 19:29:23 +01:00
parent a862aed36c
commit 3540008903
1 changed files with 12 additions and 0 deletions

View File

@ -458,6 +458,18 @@ public class QueryTranslatorImpl implements FilterTranslator {
return statementExecutor.execute( queryParameters, session );
}
/**
* The SQl statements used for an update query.
* Throws exception if the query is a SELECT.
* @see #getSQLString()
* @throws QueryExecutionRequestException for select queries.
* @return the sql queries used for the update
*/
protected String[] getSqlStatements() {
errorIfSelect();
return statementExecutor.getSqlStatements();
}
/**
* The SQL query string to be called; implemented by all subclasses
*/