@@ -101,6 +101,14 @@ public interface SimpleJdbcCallOperations {
101
101
SimpleJdbcCallOperations withoutProcedureColumnMetaDataAccess ();
102
102
103
103
104
+ /**
105
+ * Execute the stored function and return the results obtained as an Object of the specified return type.
106
+ * @param returnType the type of the value to return
107
+ * @param args optional array containing the in parameter values to be used in the call. Parameter values must
108
+ * be provided in the same order as the parameters are defined for the stored procedure.
109
+ */
110
+ <T > T executeFunction (Class <T > returnType , Object ... args );
111
+
104
112
/**
105
113
* Execute the stored function and return the results obtained as an Object of the specified return type.
106
114
* @param returnType the type of the value to return
@@ -115,6 +123,16 @@ public interface SimpleJdbcCallOperations {
115
123
*/
116
124
<T > T executeFunction (Class <T > returnType , SqlParameterSource args );
117
125
126
+ /**
127
+ * Execute the stored procedure and return the single out parameter as an Object of the specified return type.
128
+ * In the case where there are multiple out parameters, the first one is returned and additional out parameters
129
+ * are ignored.
130
+ * @param returnType the type of the value to return
131
+ * @param args optional array containing the in parameter values to be used in the call. Parameter values must
132
+ * be provided in the same order as the parameters are defined for the stored procedure.
133
+ */
134
+ <T > T executeObject (Class <T > returnType , Object ... args );
135
+
118
136
/**
119
137
* Execute the stored procedure and return the single out parameter as an Object of the specified return type.
120
138
* In the case where there are multiple out parameters, the first one is returned and additional out parameters
@@ -134,10 +152,12 @@ public interface SimpleJdbcCallOperations {
134
152
<T > T executeObject (Class <T > returnType , SqlParameterSource args );
135
153
136
154
/**
137
- * Execute the stored procedure and return a map of output params, keyed by name as in parameter declarations..
155
+ * Execute the stored procedure and return a map of output params, keyed by name as in parameter declarations.
156
+ * @param args optional array containing the in parameter values to be used in the call. Parameter values must
157
+ * be provided in the same order as the parameters are defined for the stored procedure.
138
158
* @return map of output params.
139
159
*/
140
- Map <String , Object > execute ();
160
+ Map <String , Object > execute (Object ... args );
141
161
142
162
/**
143
163
* Execute the stored procedure and return a map of output params, keyed by name as in parameter declarations..
0 commit comments