|
39 | 39 | import org.springframework.data.jdbc.core.convert.JdbcConverter;
|
40 | 40 | import org.springframework.data.jdbc.core.mapping.JdbcValue;
|
41 | 41 | import org.springframework.data.jdbc.support.JdbcUtil;
|
| 42 | +import org.springframework.data.relational.core.dialect.SqlTypeResolver; |
42 | 43 | import org.springframework.data.relational.core.mapping.RelationalMappingContext;
|
43 | 44 | import org.springframework.data.relational.repository.query.RelationalParameterAccessor;
|
44 | 45 | import org.springframework.data.relational.repository.query.RelationalParametersParameterAccessor;
|
@@ -91,43 +92,6 @@ public class StringBasedJdbcQuery extends AbstractJdbcQuery {
|
91 | 92 | private final CachedResultSetExtractorFactory cachedResultSetExtractorFactory;
|
92 | 93 | private final ValueExpressionDelegate delegate;
|
93 | 94 |
|
94 |
| - /** |
95 |
| - * Creates a new {@link StringBasedJdbcQuery} for the given {@link JdbcQueryMethod}, {@link RelationalMappingContext} |
96 |
| - * and {@link RowMapper}. |
97 |
| - * |
98 |
| - * @param queryMethod must not be {@literal null}. |
99 |
| - * @param operations must not be {@literal null}. |
100 |
| - * @param defaultRowMapper can be {@literal null} (only in case of a modifying query). |
101 |
| - * @deprecated since 3.4, use the constructors accepting {@link ValueExpressionDelegate} instead. |
102 |
| - */ |
103 |
| - @Deprecated(since = "3.4") |
104 |
| - public StringBasedJdbcQuery(JdbcQueryMethod queryMethod, NamedParameterJdbcOperations operations, |
105 |
| - @Nullable RowMapper<?> defaultRowMapper, JdbcConverter converter, |
106 |
| - QueryMethodEvaluationContextProvider evaluationContextProvider) { |
107 |
| - this(queryMethod.getRequiredQuery(), queryMethod, operations, result -> (RowMapper<Object>) defaultRowMapper, |
108 |
| - converter, evaluationContextProvider); |
109 |
| - } |
110 |
| - |
111 |
| - /** |
112 |
| - * Creates a new {@link StringBasedJdbcQuery} for the given {@link JdbcQueryMethod}, {@link RelationalMappingContext} |
113 |
| - * and {@link RowMapperFactory}. |
114 |
| - * |
115 |
| - * @param queryMethod must not be {@literal null}. |
116 |
| - * @param operations must not be {@literal null}. |
117 |
| - * @param rowMapperFactory must not be {@literal null}. |
118 |
| - * @param converter must not be {@literal null}. |
119 |
| - * @param evaluationContextProvider must not be {@literal null}. |
120 |
| - * @since 2.3 |
121 |
| - * @deprecated use alternative constructor |
122 |
| - */ |
123 |
| - @Deprecated(since = "3.4") |
124 |
| - public StringBasedJdbcQuery(JdbcQueryMethod queryMethod, NamedParameterJdbcOperations operations, |
125 |
| - RowMapperFactory rowMapperFactory, JdbcConverter converter, |
126 |
| - QueryMethodEvaluationContextProvider evaluationContextProvider) { |
127 |
| - this(queryMethod.getRequiredQuery(), queryMethod, operations, rowMapperFactory, converter, |
128 |
| - evaluationContextProvider); |
129 |
| - } |
130 |
| - |
131 | 95 | /**
|
132 | 96 | * Creates a new {@link StringBasedJdbcQuery} for the given {@link JdbcQueryMethod}, {@link RelationalMappingContext}
|
133 | 97 | * and {@link RowMapperFactory}.
|
@@ -197,28 +161,6 @@ public StringBasedJdbcQuery(String query, JdbcQueryMethod queryMethod, NamedPara
|
197 | 161 | this.delegate = delegate;
|
198 | 162 | }
|
199 | 163 |
|
200 |
| - /** |
201 |
| - * Creates a new {@link StringBasedJdbcQuery} for the given {@link JdbcQueryMethod}, {@link RelationalMappingContext} |
202 |
| - * and {@link RowMapperFactory}. |
203 |
| - * |
204 |
| - * @param query must not be {@literal null} or empty. |
205 |
| - * @param queryMethod must not be {@literal null}. |
206 |
| - * @param operations must not be {@literal null}. |
207 |
| - * @param rowMapperFactory must not be {@literal null}. |
208 |
| - * @param converter must not be {@literal null}. |
209 |
| - * @param evaluationContextProvider must not be {@literal null}. |
210 |
| - * @since 3.4 |
211 |
| - * @deprecated since 3.4, use the constructors accepting {@link ValueExpressionDelegate} instead. |
212 |
| - */ |
213 |
| - @Deprecated(since = "3.4") |
214 |
| - public StringBasedJdbcQuery(String query, JdbcQueryMethod queryMethod, NamedParameterJdbcOperations operations, |
215 |
| - RowMapperFactory rowMapperFactory, JdbcConverter converter, |
216 |
| - QueryMethodEvaluationContextProvider evaluationContextProvider) { |
217 |
| - this(query, queryMethod, operations, rowMapperFactory, converter, new CachingValueExpressionDelegate( |
218 |
| - new QueryMethodValueEvaluationContextAccessor(new StandardEnvironment(), rootObject -> evaluationContextProvider |
219 |
| - .getEvaluationContext(queryMethod.getParameters(), new Object[] { rootObject })), |
220 |
| - ValueExpressionParser.create())); |
221 |
| - } |
222 | 164 |
|
223 | 165 | @Override
|
224 | 166 | public Object execute(Object[] objects) {
|
|
0 commit comments