@@ -229,6 +229,7 @@ public Sort getMappedSort(Class<?> typeToRead, Sort sort) {
229
229
* (non-Javadoc)
230
230
* @see org.springframework.data.r2dbc.function.ReactiveDataAccessStrategy#getRowMapper(java.lang.Class)
231
231
*/
232
+ @ SuppressWarnings ("unchecked" )
232
233
@ Override
233
234
public <T > BiFunction <Row , RowMetadata , T > getRowMapper (Class <T > typeToRead ) {
234
235
return new EntityRowMapper <T >((RelationalPersistentEntity ) getRequiredPersistentEntity (typeToRead ),
@@ -262,6 +263,7 @@ private RelationalPersistentEntity<?> getPersistentEntity(Class<?> typeToRead) {
262
263
return mappingContext .getPersistentEntity (typeToRead );
263
264
}
264
265
266
+ @ SuppressWarnings ("unchecked" )
265
267
private Object getWriteValue (PersistentPropertyAccessor propertyAccessor , RelationalPersistentProperty property ) {
266
268
267
269
TypeInformation <?> type = property .getTypeInformation ();
@@ -317,20 +319,23 @@ public BindableOperation insertAndReturnGeneratedKeys(String table, Set<String>
317
319
* @see org.springframework.data.r2dbc.function.ReactiveDataAccessStrategy#select(java.lang.String, java.util.Set, org.springframework.data.domain.Sort, org.springframework.data.domain.Pageable)
318
320
*/
319
321
@ Override
320
- public String select (String table , Set <String > columns , Sort sort , Pageable page ) {
322
+ public String select (String tableName , Set <String > columns , Sort sort , Pageable page ) {
321
323
322
- Table tableToUse = Table .create (table );
324
+ Table table = Table .create (tableName );
323
325
324
326
Collection <? extends Expression > selectList ;
325
327
326
328
if (columns .isEmpty ()) {
327
- selectList = Collections .singletonList (tableToUse .asterisk ());
329
+ selectList = Collections .singletonList (table .asterisk ());
328
330
} else {
329
- selectList = tableToUse .columns (columns );
331
+ selectList = table .columns (columns );
330
332
}
331
333
332
- SelectFromAndOrderBy selectBuilder = StatementBuilder .select (selectList ).from (table )
333
- .orderBy (createOrderByFields (tableToUse , sort ));
334
+ SelectFromAndOrderBy selectBuilder = StatementBuilder //
335
+ .select (selectList ) //
336
+ .from (tableName ) //
337
+ .orderBy (createOrderByFields (table , sort ));
338
+
334
339
OptionalLong limit = OptionalLong .empty ();
335
340
OptionalLong offset = OptionalLong .empty ();
336
341
@@ -508,7 +513,7 @@ public void bindId(Statement statement, Object value) {
508
513
* @see org.springframework.data.r2dbc.function.BindIdOperation#bindIds(io.r2dbc.spi.Statement, java.lang.Iterable)
509
514
*/
510
515
@ Override
511
- public void bindIds (Statement statement , Iterable <? extends Object > values ) {
516
+ public void bindIds (Statement statement , Iterable <?> values ) {
512
517
throw new UnsupportedOperationException ();
513
518
}
514
519
@@ -569,7 +574,7 @@ public void bindId(Statement statement, Object value) {
569
574
* @see org.springframework.data.r2dbc.function.BindIdOperation#bindIds(io.r2dbc.spi.Statement, java.lang.Iterable)
570
575
*/
571
576
@ Override
572
- public void bindIds (Statement statement , Iterable <? extends Object > values ) {
577
+ public void bindIds (Statement statement , Iterable <?> values ) {
573
578
throw new UnsupportedOperationException ();
574
579
}
575
580
@@ -636,7 +641,7 @@ public void bindId(Statement statement, Object value) {
636
641
* @see org.springframework.data.r2dbc.function.BindIdOperation#bindIds(io.r2dbc.spi.Statement, java.lang.Iterable)
637
642
*/
638
643
@ Override
639
- public void bindIds (Statement statement , Iterable <? extends Object > values ) {
644
+ public void bindIds (Statement statement , Iterable <?> values ) {
640
645
641
646
for (Object value : values ) {
642
647
bindId (statement , value );
0 commit comments