HHH-14025 Add method to return the query statements for update queries
This commit is contained in:
parent
a862aed36c
commit
3540008903
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue