diff --git a/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/QueryTranslatorImpl.java b/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/QueryTranslatorImpl.java index d8707c6b89..21d94d1e64 100644 --- a/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/QueryTranslatorImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/QueryTranslatorImpl.java @@ -470,6 +470,10 @@ public class QueryTranslatorImpl implements FilterTranslator { return statementExecutor.getSqlStatements(); } + protected StatementExecutor getStatementExecutor() { + return statementExecutor; + } + /** * The SQL query string to be called; implemented by all subclasses */ diff --git a/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/exec/MultiTableDeleteExecutor.java b/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/exec/MultiTableDeleteExecutor.java index f0539a574e..0472f35ff3 100644 --- a/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/exec/MultiTableDeleteExecutor.java +++ b/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/exec/MultiTableDeleteExecutor.java @@ -28,6 +28,10 @@ public class MultiTableDeleteExecutor implements StatementExecutor { this.deleteHandler = strategy.buildDeleteHandler( walker.getSessionFactoryHelper().getFactory(), walker ); } + public MultiTableBulkIdStrategy.DeleteHandler getDeleteHandler() { + return deleteHandler; + } + @Override public String[] getSqlStatements() { return deleteHandler.getSqlStatements(); diff --git a/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/exec/MultiTableUpdateExecutor.java b/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/exec/MultiTableUpdateExecutor.java index 60da74824a..d2957697ea 100644 --- a/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/exec/MultiTableUpdateExecutor.java +++ b/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/exec/MultiTableUpdateExecutor.java @@ -30,6 +30,10 @@ public class MultiTableUpdateExecutor implements StatementExecutor { this.updateHandler = strategy.buildUpdateHandler( walker.getSessionFactoryHelper().getFactory(), walker ); } + public MultiTableBulkIdStrategy.UpdateHandler getUpdateHandler() { + return updateHandler; + } + public String[] getSqlStatements() { return updateHandler.getSqlStatements(); }