HHH-18254 Change `NativeQueryImpl#createCountQueryPlan` scope to protected

So that I can re-use the code when implementing ReactiveSelectQueryPlan#getReactiveResultsCount in Hibernate Reactive
This commit is contained in:
Davide D'Alto 2024-06-11 10:37:05 +02:00 committed by Christian Beikov
parent 721452a05f
commit dbfaa0d4f2
1 changed files with 4 additions and 1 deletions

View File

@ -688,7 +688,10 @@ public class NativeQueryImpl<R>
.createQueryPlan( queryDefinition, getSessionFactory() ); .createQueryPlan( queryDefinition, getSessionFactory() );
} }
private NativeSelectQueryPlan<Long> createCountQueryPlan() { /*
* Used by Hibernate Reactive
*/
protected NativeSelectQueryPlan<Long> createCountQueryPlan() {
final BasicType<Long> longType = getSessionFactory().getTypeConfiguration().getBasicTypeForJavaType(Long.class); final BasicType<Long> longType = getSessionFactory().getTypeConfiguration().getBasicTypeForJavaType(Long.class);
final String sqlString = expandParameterLists(); final String sqlString = expandParameterLists();
final NativeSelectQueryDefinition<Long> queryDefinition = new NativeSelectQueryDefinition<>() { final NativeSelectQueryDefinition<Long> queryDefinition = new NativeSelectQueryDefinition<>() {