Skip to content

Port BeanPropertyRowMapper and DataClassRowMapper for r2dbc #30530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix checkstyle issues
  • Loading branch information
simonbasle committed May 24, 2023
commit 721a07ce47e4fccfc9d1f751e46dfa2d7cc9d335
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,10 @@ protected String underscoreName(String name) {
* case of an {@code OutParameters}.
* <p>Utilizes public setters and derives meta-data from the
* concrete type.
* @see RowMetadata
* @see OutParametersMetadata
* @throws UnsupportedOperationException in case the concrete type
* is neither {@code Row} nor {@code OutParameters}
* @see RowMetadata
* @see OutParametersMetadata
*/
@Override
public T apply(Readable readable) {
Expand Down Expand Up @@ -431,7 +431,7 @@ protected Object getItemValue(Readable readable, int itemIndex, Class<?> paramTy
try {
return readable.get(itemIndex, paramType);
}
catch (Throwable e) {
catch (Throwable ex) {
return readable.get(itemIndex);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

package org.springframework.r2dbc.core;

import io.r2dbc.spi.OutParameters;
import io.r2dbc.spi.OutParametersMetadata;
import io.r2dbc.spi.Readable;
import io.r2dbc.spi.test.MockColumnMetadata;
import io.r2dbc.spi.test.MockOutParameters;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,4 @@ private static MockRow buildMockRow(String birthDateColumnName, boolean balanceO
return builder.build();
}

}
}