expose some private fields via getters for Hibernate Reactive

needed for https://github.com/hibernate/hibernate-reactive/issues/237
This commit is contained in:
Gavin King 2020-08-20 16:06:37 +02:00 committed by Steve Ebersole
parent fe74ad4270
commit 5ecf45020f
3 changed files with 12 additions and 0 deletions

View File

@ -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
*/

View File

@ -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();

View File

@ -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();
}