1515import jakarta .persistence .TemporalType ;
1616
1717import org .hibernate .MappingException ;
18+ import org .hibernate .query .BindableType ;
1819import org .hibernate .query .SynchronizeableQuery ;
1920import org .hibernate .query .CommonQueryContract ;
2021import org .hibernate .query .procedure .ProcedureParameter ;
21- import org .hibernate .type .BasicTypeReference ;
2222
2323/**
2424 * Defines support for executing database stored procedures and functions.
@@ -74,7 +74,7 @@ public interface ProcedureCall
7474 boolean isFunctionCall ();
7575
7676 /**
77- * Mark this ProcedureCall as representing a call to a database function,
77+ * Mark this {@code ProcedureCall} as representing a call to a database function,
7878 * rather than a database procedure.
7979 *
8080 * @param sqlType The {@link java.sql.Types} code for the function return
@@ -84,7 +84,7 @@ public interface ProcedureCall
8484 ProcedureCall markAsFunctionCall (int sqlType );
8585
8686 /**
87- * Mark this ProcedureCall as representing a call to a database function,
87+ * Mark this {@code ProcedureCall} as representing a call to a database function,
8888 * rather than a database procedure.
8989 *
9090 * @param resultType The result type for the function return
@@ -95,15 +95,15 @@ public interface ProcedureCall
9595 ProcedureCall markAsFunctionCall (Class <?> resultType );
9696
9797 /**
98- * Mark this ProcedureCall as representing a call to a database function,
98+ * Mark this {@code ProcedureCall} as representing a call to a database function,
9999 * rather than a database procedure.
100100 *
101101 * @param typeReference The result type for the function return
102102 *
103103 * @return {@code this}, for method chaining
104104 * @since 6.2
105105 */
106- ProcedureCall markAsFunctionCall (BasicTypeReference <?> typeReference );
106+ ProcedureCall markAsFunctionCall (BindableType <?> typeReference );
107107
108108 /**
109109 * Basic form for registering a positional parameter.
@@ -127,13 +127,13 @@ public interface ProcedureCall
127127 *
128128 * @return The parameter registration memento
129129 */
130- <T > ProcedureParameter <T > registerParameter (int position , BasicTypeReference <T > type , ParameterMode mode );
130+ <T > ProcedureParameter <T > registerParameter (int position , BindableType <T > type , ParameterMode mode );
131131
132132 /**
133- * Like {@link #registerStoredProcedureParameter(int, Class, ParameterMode)} but a basic type reference is given
133+ * Like {@link #registerStoredProcedureParameter(int, Class, ParameterMode)} but a type reference is given
134134 * instead of a class for the parameter type.
135135 */
136- ProcedureCall registerStoredProcedureParameter (int position , BasicTypeReference <?> type , ParameterMode mode );
136+ ProcedureCall registerStoredProcedureParameter (int position , BindableType <?> type , ParameterMode mode );
137137
138138 /**
139139 * Retrieve a previously registered parameter memento by the position under which it was registered.
@@ -176,14 +176,14 @@ <T> ProcedureParameter<T> registerParameter(String parameterName, Class<T> type,
176176 * @throws NamedParametersNotSupportedException When the underlying database is known to not support
177177 * named procedure parameters.
178178 */
179- <T > ProcedureParameter <T > registerParameter (String parameterName , BasicTypeReference <T > type , ParameterMode mode )
179+ <T > ProcedureParameter <T > registerParameter (String parameterName , BindableType <T > type , ParameterMode mode )
180180 throws NamedParametersNotSupportedException ;
181181
182182 /**
183- * Like {@link #registerStoredProcedureParameter(String, Class, ParameterMode)} but a basic type reference is given
183+ * Like {@link #registerStoredProcedureParameter(String, Class, ParameterMode)} but a type reference is given
184184 * instead of a class for the parameter type.
185185 */
186- ProcedureCall registerStoredProcedureParameter (String parameterName , BasicTypeReference <?> type , ParameterMode mode );
186+ ProcedureCall registerStoredProcedureParameter (String parameterName , BindableType <?> type , ParameterMode mode );
187187
188188 /**
189189 * Retrieve a previously registered parameter memento by the name under which it was registered.
@@ -223,9 +223,7 @@ default void close() {
223223 getOutputs ().release ();
224224 }
225225
226- /*
227- Covariant overrides
228- */
226+ /* Covariant overrides */
229227
230228 @ Override
231229 ProcedureCall addSynchronizedQuerySpace (String querySpace );
0 commit comments