You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/05/15 11:55:27 UTC
[GitHub] [shardingsphere] boyjoy1127 commented on a diff in pull request #17434: 15827
boyjoy1127 commented on code in PR #17434:
URL: https://github.com/apache/shardingsphere/pull/17434#discussion_r873157386
##########
shardingsphere-infra/shardingsphere-infra-federation/shardingsphere-infra-federation-executor/src/main/java/org/apache/shardingsphere/infra/federation/executor/customized/AbstractUnsupportedUpdateOperationResultSet.java:
##########
@@ -0,0 +1,451 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.shardingsphere.infra.federation.executor.customized;
+
+import java.io.InputStream;
+import java.io.Reader;
+import java.math.BigDecimal;
+import java.sql.Array;
+import java.sql.Blob;
+import java.sql.Clob;
+import java.sql.Date;
+import java.sql.NClob;
+import java.sql.Ref;
+import java.sql.ResultSet;
+import java.sql.RowId;
+import java.sql.SQLException;
+import java.sql.SQLFeatureNotSupportedException;
+import java.sql.SQLXML;
+import java.sql.Time;
+import java.sql.Timestamp;
+
+/**
+ * Unsupported {@code ResultSet} methods.
+ */
+public abstract class AbstractUnsupportedUpdateOperationResultSet extends WrapperAdapter implements ResultSet {
+
+ @Override
+ public final void updateNull(final int columnIndex) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateNull(final String columnLabel) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateBoolean(final int columnIndex, final boolean x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateBoolean(final String columnLabel, final boolean x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateByte(final int columnIndex, final byte x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateByte(final String columnLabel, final byte x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateShort(final int columnIndex, final short x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateShort(final String columnLabel, final short x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateInt(final int columnIndex, final int x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateInt(final String columnLabel, final int x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateLong(final int columnIndex, final long x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateLong(final String columnLabel, final long x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateFloat(final int columnIndex, final float x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateFloat(final String columnLabel, final float x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateDouble(final int columnIndex, final double x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateDouble(final String columnLabel, final double x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateBigDecimal(final int columnIndex, final BigDecimal x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateBigDecimal(final String columnLabel, final BigDecimal x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateString(final int columnIndex, final String x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateString(final String columnLabel, final String x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateNString(final int columnIndex, final String nString) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateNString(final String columnLabel, final String nString) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
+
+ @Override
+ public final void updateBytes(final int columnIndex, final byte[] x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("updateXXX");
+ }
Review Comment:
I'm afraid we can't. Because update***() are defined in java.sql.ResultSet.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org