remove deprecated

This commit is contained in:
Looly
2022-04-28 01:51:06 +08:00
parent d78219c60c
commit af1d615ca9
29 changed files with 32 additions and 1436 deletions

View File

@@ -255,26 +255,6 @@ public abstract class AbstractDb implements Serializable {
}
}
/**
* 批量执行非查询语句
*
* @param sql SQL
* @param paramsBatch 批量的参数
* @return 每个SQL执行影响的行数
* @throws SQLException SQL执行异常
* @deprecated 编译器无法区分重载
*/
@Deprecated
public int[] executeBatch(String sql, Object[]... paramsBatch) throws SQLException {
Connection conn = null;
try {
conn = this.getConnection();
return SqlExecutor.executeBatch(conn, sql, paramsBatch);
} finally {
this.closeConnection(conn);
}
}
/**
* 批量执行非查询语句
*

View File

@@ -10,7 +10,7 @@ import java.util.Map;
* 线程相关的数据库连接持有器<br>
* 此对象为单例类用于存储线程相关的Connection对象。<br>
* 在多数据源情况下由于数据源的不同连接对象也不同因此获取连接时需要DataSource关联获取
*
*
* @author looly
*
*/
@@ -21,7 +21,7 @@ public enum ThreadLocalConnection {
/**
* 获取数据源对应的数据库连接
*
*
* @param ds 数据源
* @return Connection
* @throws SQLException SQL异常
@@ -37,7 +37,7 @@ public enum ThreadLocalConnection {
/**
* 关闭数据库,并从线程池中移除
*
*
* @param ds 数据源
* @since 4.1.7
*/
@@ -54,7 +54,7 @@ public enum ThreadLocalConnection {
/**
* 分组连接,根据不同的分组获取对应的连接,用于多数据源情况
*
*
* @author Looly
*/
public static class GroupedConnection {
@@ -64,7 +64,7 @@ public enum ThreadLocalConnection {
/**
* 获取连接,如果获取的连接为空或者已被关闭,重新创建连接
*
*
* @param ds 数据源
* @return Connection
* @throws SQLException SQL异常
@@ -81,7 +81,7 @@ public enum ThreadLocalConnection {
/**
* 关闭并移除Connection<br>
* 如果处于事务中,则不进行任何操作
*
*
* @param ds 数据源
* @return this
*/
@@ -104,7 +104,7 @@ public enum ThreadLocalConnection {
/**
* 持有的连接是否为空
*
*
* @return 持有的连接是否为空
* @since 4.6.4
*/

View File

@@ -283,19 +283,6 @@ public class MetaUtil {
return table;
}
/**
* 获取catalog获取失败返回{@code null}
*
* @param conn {@link Connection} 数据库连接,{@code null}时返回null
* @return catalog获取失败返回{@code null}
* @since 4.6.0
* @deprecated 拼写错误,请使用{@link #getCatalog(Connection)}
*/
@Deprecated
public static String getCataLog(Connection conn) {
return getCatalog(conn);
}
/**
* 获取catalog获取失败返回{@code null}
*

View File

@@ -145,23 +145,6 @@ public class SqlExecutor {
}
}
/**
* 批量执行非查询语句<br>
* 语句包括 插入、更新、删除<br>
* 此方法不会关闭Connection
*
* @param conn 数据库连接对象
* @param sql SQL
* @param paramsBatch 批量的参数
* @return 每个SQL执行影响的行数
* @throws SQLException SQL执行异常
* @deprecated 重载导致编译器无法区分
*/
@Deprecated
public static int[] executeBatch(Connection conn, String sql, Object[]... paramsBatch) throws SQLException {
return executeBatch(conn, sql, new ArrayIter<>(paramsBatch));
}
/**
* 批量执行非查询语句<br>
* 语句包括 插入、更新、删除<br>