Remove ProcedureParameterImplementor NotYetImplementedFor6Exception

This commit is contained in:
Andrea Boriero 2021-10-06 14:47:15 +02:00 committed by Christian Beikov
parent 5b425f39fd
commit 63c119bf89
3 changed files with 26 additions and 5 deletions

View File

@ -7,6 +7,8 @@
package org.hibernate.procedure.internal;
import java.sql.CallableStatement;
import java.sql.SQLException;
import java.sql.Types;
import jakarta.persistence.ParameterMode;
@ -130,4 +132,10 @@ public class FunctionReturnImpl implements FunctionReturnImplementor {
}
};
}
@Override
public void prepare(CallableStatement statement, int startIndex, ProcedureCallImplementor callImplementor)
throws SQLException {
throw new NotYetImplementedFor6Exception( getClass() );
}
}

View File

@ -10,7 +10,6 @@ import java.sql.CallableStatement;
import java.sql.SQLException;
import org.hibernate.Incubating;
import org.hibernate.NotYetImplementedFor6Exception;
import org.hibernate.query.procedure.ProcedureParameter;
import org.hibernate.query.spi.QueryParameterImplementor;
@ -27,10 +26,8 @@ public interface ProcedureParameterImplementor<T> extends ProcedureParameter<T>,
*
* @throws SQLException Indicates a problem with any underlying JDBC calls
*/
default void prepare(
void prepare(
CallableStatement statement,
int startIndex,
ProcedureCallImplementor<?> callImplementor) throws SQLException{
throw new NotYetImplementedFor6Exception( getClass() );
}
ProcedureCallImplementor<?> callImplementor) throws SQLException;
}

View File

@ -90,12 +90,14 @@ import org.hibernate.query.sqm.tree.predicate.SqmOrPredicate;
import org.hibernate.query.sqm.tree.predicate.SqmPredicate;
import org.hibernate.query.sqm.tree.predicate.SqmWhereClause;
import org.hibernate.query.sqm.tree.select.SqmDynamicInstantiation;
import org.hibernate.query.sqm.tree.select.SqmJpaCompoundSelection;
import org.hibernate.query.sqm.tree.select.SqmOrderByClause;
import org.hibernate.query.sqm.tree.select.SqmQueryGroup;
import org.hibernate.query.sqm.tree.select.SqmQueryPart;
import org.hibernate.query.sqm.tree.select.SqmQuerySpec;
import org.hibernate.query.sqm.tree.select.SqmSelectClause;
import org.hibernate.query.sqm.tree.select.SqmSelectStatement;
import org.hibernate.query.sqm.tree.select.SqmSelectableNode;
import org.hibernate.query.sqm.tree.select.SqmSelection;
import org.hibernate.query.sqm.tree.select.SqmSortSpecification;
import org.hibernate.query.sqm.tree.select.SqmSubQuery;
@ -463,6 +465,20 @@ public class SqmTreePrinter implements SemanticQueryWalker<Object> {
return null;
}
@Override
public Object visitJpaCompoundSelection(SqmJpaCompoundSelection<?> selection) {
processStanza(
"JpaCompoundSelection",
() -> {
for ( SqmSelectableNode<?> selectionItem : selection.getSelectionItems() ) {
selectionItem.accept( this );
}
}
);
return null;
}
@Override
public Object visitFromClause(SqmFromClause fromClause) {
processStanza(