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 Sanne Grinovero
parent 0e5cb4d705
commit 354fc08a5e
3 changed files with 12 additions and 0 deletions

View File

@ -470,6 +470,10 @@ public class QueryTranslatorImpl implements FilterTranslator {
return statementExecutor.getSqlStatements(); return statementExecutor.getSqlStatements();
} }
protected StatementExecutor getStatementExecutor() {
return statementExecutor;
}
/** /**
* The SQL query string to be called; implemented by all subclasses * 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 ); this.deleteHandler = strategy.buildDeleteHandler( walker.getSessionFactoryHelper().getFactory(), walker );
} }
public MultiTableBulkIdStrategy.DeleteHandler getDeleteHandler() {
return deleteHandler;
}
@Override @Override
public String[] getSqlStatements() { public String[] getSqlStatements() {
return deleteHandler.getSqlStatements(); return deleteHandler.getSqlStatements();

View File

@ -30,6 +30,10 @@ public class MultiTableUpdateExecutor implements StatementExecutor {
this.updateHandler = strategy.buildUpdateHandler( walker.getSessionFactoryHelper().getFactory(), walker ); this.updateHandler = strategy.buildUpdateHandler( walker.getSessionFactoryHelper().getFactory(), walker );
} }
public MultiTableBulkIdStrategy.UpdateHandler getUpdateHandler() {
return updateHandler;
}
public String[] getSqlStatements() { public String[] getSqlStatements() {
return updateHandler.getSqlStatements(); return updateHandler.getSqlStatements();
} }