This is an automated email from the ASF dual-hosted git repository. zhangliang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push: new 09b3a0d802d Remove unused column type check methods (#35311) 09b3a0d802d is described below commit 09b3a0d802d1d284e4abe8018580f0b1e6ba7027 Author: Liang Zhang <zhangli...@apache.org> AuthorDate: Sat May 3 00:24:42 2025 +0800 Remove unused column type check methods (#35311) - Remove isIntegerColumn, isStringColumn, and isBinaryColumn methods - These methods were not being used in the codebase - Simplifies the PipelineJdbcUtils class --- .../data/pipeline/core/util/PipelineJdbcUtils.java | 57 ---------------------- 1 file changed, 57 deletions(-) diff --git a/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/util/PipelineJdbcUtils.java b/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/util/PipelineJdbcUtils.java index 2beb3dc62f0..8b656268eb8 100644 --- a/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/util/PipelineJdbcUtils.java +++ b/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/util/PipelineJdbcUtils.java @@ -22,7 +22,6 @@ import lombok.NoArgsConstructor; import java.sql.SQLException; import java.sql.Statement; -import java.sql.Types; /** * Pipeline JDBC utility class. @@ -30,62 +29,6 @@ import java.sql.Types; @NoArgsConstructor(access = AccessLevel.PRIVATE) public final class PipelineJdbcUtils { - /** - * Whether column is integer type. - * - * @param columnType column type, value of java.sql.Types - * @return true or false - */ - public static boolean isIntegerColumn(final int columnType) { - switch (columnType) { - case Types.INTEGER: - case Types.BIGINT: - case Types.SMALLINT: - case Types.TINYINT: - return true; - default: - return false; - } - } - - /** - * Whether column is string column. - * - * @param columnType column type, value of java.sql.Types - * @return true or false - */ - public static boolean isStringColumn(final int columnType) { - switch (columnType) { - case Types.CHAR: - case Types.VARCHAR: - case Types.LONGVARCHAR: - case Types.NCHAR: - case Types.NVARCHAR: - case Types.LONGNVARCHAR: - return true; - default: - return false; - } - } - - /** - * Whether column is binary column. - * <p>it doesn't include BLOB etc.</p> - * - * @param columnType column type, value of java.sql.Types - * @return true or false - */ - public static boolean isBinaryColumn(final int columnType) { - switch (columnType) { - case Types.BINARY: - case Types.VARBINARY: - case Types.LONGVARBINARY: - return true; - default: - return false; - } - } - /** * Cancel statement. *