持久层接口方法save

save

// 插入一条记录(选择字段,策略插入)
boolean save(T entity);
// 插入(批量)
boolean saveBatch(Collection<T> entityList);
// 插入(批量)
boolean saveBatch(Collection<T> entityList, int batchSize);

功能描述: 插入记录,根据实体对象的字段进行策略性插入。
返回值: boolean,表示插入操作是否成功。
参数说明:

类型 参数名 描述
T entity 实体对象
Collection entityList entityList
int batchSize 插入批次数量
posted @ 2025-04-15 12:38  kuki'  阅读(12)  评论(0)    收藏  举报