Update SQLExecutor.java

This commit is contained in:
TommyLemon 2022-10-17 21:31:56 +08:00 committed by GitHub
parent 9c73e745c7
commit 7e75671ca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,8 +65,8 @@ public interface SQLExecutor {
* @throws SQLException
*/
default ResultSet executeQuery(@NotNull SQLConfig config) throws Exception {
return executeQuery(config, null);
}
return executeQuery(config, null);
}
ResultSet executeQuery(@NotNull SQLConfig config, String sql) throws Exception;
/**执行增
@ -74,26 +74,26 @@ public interface SQLExecutor {
* @return
* @throws SQLException
*/
default int executeUpdate(@NotNull SQLConfig config) throws Exception {
return executeUpdate(config, null);
}
default int executeUpdate(@NotNull SQLConfig config) throws Exception {
return executeUpdate(config, null);
}
int executeUpdate(@NotNull SQLConfig config, String sql) throws Exception;
/**判断是否为JSON类型
* @param config
* @param rsmd
* @param position
* @param lable
* @return
*/
* @param config
* @param rsmd
* @param position
* @param lable
* @return
*/
boolean isJSONType(@NotNull SQLConfig config, ResultSetMetaData rsmd, int position, String lable);
Connection getConnection(@NotNull SQLConfig config) throws Exception;
default Statement getStatement(@NotNull SQLConfig config) throws Exception {
return getStatement(config, null);
}
return getStatement(config, null);
}
Statement getStatement(@NotNull SQLConfig config, String sql) throws Exception;
int getTransactionIsolation();