mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix doc
This commit is contained in:
@@ -19,6 +19,12 @@ import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
|
||||
/**
|
||||
* 提供基于方言的原始增删改查执行封装
|
||||
*
|
||||
* @author looly
|
||||
* @since 5.5.3
|
||||
*/
|
||||
public class DialectRunner implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@@ -47,6 +53,7 @@ public class DialectRunner implements Serializable {
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------- CRUD start
|
||||
|
||||
/**
|
||||
* 批量插入数据<br>
|
||||
* 批量插入必须严格保持Entity的结构一致,不一致会导致插入数据出现不可预知的结果<br>
|
||||
@@ -83,6 +90,7 @@ public class DialectRunner implements Serializable {
|
||||
* 插入数据<br>
|
||||
* 此方法不会关闭Connection
|
||||
*
|
||||
* @param <T> 主键类型,可能为数字或对象列表
|
||||
* @param conn 数据库连接
|
||||
* @param record 记录
|
||||
* @param generatedKeysHandler 自增主键处理器,用于定义返回自增主键的范围和类型
|
||||
|
@@ -379,6 +379,7 @@ public class SqlConnRunner extends DialectRunner {
|
||||
* 分页查询<br>
|
||||
* 此方法不会关闭Connection
|
||||
*
|
||||
* @param <T> 结果类型,取决于 {@link RsHandler} 的处理逻辑
|
||||
* @param conn 数据库连接对象
|
||||
* @param fields 返回的字段列表,null则返回所有字段
|
||||
* @param where 条件实体类(包含表名)
|
||||
|
@@ -98,6 +98,7 @@ public class WordTree extends HashMap<Character, WordTree> {
|
||||
* 添加单词,使用默认类型
|
||||
*
|
||||
* @param word 单词
|
||||
* @return this
|
||||
*/
|
||||
public WordTree addWord(String word) {
|
||||
final Filter<Character> charFilter = this.charFilter;
|
||||
|
@@ -70,6 +70,7 @@ public class GanymedUtil {
|
||||
* @param cmd 命令
|
||||
* @param charset 发送和读取内容的编码
|
||||
* @param errStream 错误信息输出到的位置
|
||||
* @return 执行返回结果
|
||||
*/
|
||||
public static String exec(Session session, String cmd, Charset charset, OutputStream errStream) {
|
||||
final String result;
|
||||
@@ -97,6 +98,7 @@ public class GanymedUtil {
|
||||
* @param cmd 命令
|
||||
* @param charset 发送和读取内容的编码
|
||||
* @param errStream 错误信息输出到的位置
|
||||
* @return 执行返回结果
|
||||
*/
|
||||
public static String execByShell(Session session, String cmd, Charset charset, OutputStream errStream) {
|
||||
final String result;
|
||||
|
@@ -113,7 +113,7 @@ public class OfdWriter implements Serializable, Closeable {
|
||||
}
|
||||
|
||||
/**
|
||||
* 增加节点,
|
||||
* 增加节点
|
||||
*
|
||||
* @param div 节点,可以是段落、Canvas、Img或者填充
|
||||
* @return this
|
||||
@@ -124,8 +124,9 @@ public class OfdWriter implements Serializable, Closeable {
|
||||
}
|
||||
|
||||
/**
|
||||
* 增加节点,
|
||||
* 增加注释,比如水印等
|
||||
*
|
||||
* @param page 页码
|
||||
* @param annotation 节点,可以是段落、Canvas、Img或者填充
|
||||
* @return this
|
||||
*/
|
||||
|
Reference in New Issue
Block a user