Skip to content

Commit fb5358b

Browse files
Update SPI method implementations
1 parent a605033 commit fb5358b

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

src/main/java/oracle/r2dbc/impl/OracleResultImpl.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,8 @@ public <T> Publisher<T> flatMap(
196196
* </p>
197197
*/
198198
@Override
199-
public Publisher<Integer> getRowsUpdated() {
200-
return publishSegments(UpdateCount.class,
201-
updateCount -> Math.toIntExact(updateCount.value()));
199+
public Publisher<Long> getRowsUpdated() {
200+
return publishSegments(UpdateCount.class, UpdateCount::value);
202201
}
203202

204203
/**

src/main/java/oracle/r2dbc/impl/ReadablesMetadata.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -237,22 +237,6 @@ public List<? extends ColumnMetadata> getColumnMetadatas() {
237237
public boolean contains(String columnName) {
238238
return getColumnIndex(columnName) != -1;
239239
}
240-
241-
/**
242-
* {@inheritDoc}
243-
* <p>
244-
* Implements the R2DBC SPI method by returning a view of the column metadata
245-
* objects, with each list entry mapped to {@link ColumnMetadata#getName()}.
246-
* As specified by the SPI method documentation, the returned collection is
247-
* unmodifiable, imposes the same column ordering as the query result, and
248-
* supports case insensitive look ups.
249-
* </p>
250-
*/
251-
@Override
252-
public Collection<String> getColumnNames() {
253-
throw new UnsupportedOperationException(
254-
"This method is deprecated for removal");
255-
}
256240
}
257241

258242
static final class OutParametersMetadataImpl

0 commit comments

Comments
 (0)