T - ID - public interface Dao<T,ID>
| 限定符和类型 | 方法和说明 |
|---|---|
int |
delete(Collection<T> list)
实体类删除
|
int |
delete(T entity)
实体类删除
|
int |
deleteById(ID id)
根据ID删除
|
int |
deleteByIds(Collection<ID> ids)
根据ID删除
|
int |
deleteByIds(ID... ids)
根据ID删除
|
T |
getById(ID id)
根据ID查询
|
T |
getById(ID id,
Getter<T>... selectFields)
根据ID查询
|
Class<T> |
getEntityType()
获取ID的类型
|
Class<ID> |
getIdType()
获取ID的类型
|
Map<ID,T> |
map(Collection<ID> ids)
实体类结果转成Map
|
Map<ID,T> |
map(ID... ids)
实体类结果转成Map
|
int |
save(Collection<T> list)
实体类保存
|
int |
save(Collection<T> list,
boolean allFieldForce)
实体类保存
|
int |
save(Collection<T> list,
Consumer<SaveStrategy<T>> saveStrategy)
实体类保存
|
int |
save(Collection<T> list,
Getter<T>... forceFields)
实体类保存
|
<M extends Model<T>> |
save(M model)
实体类Model保存
|
<M extends Model<T>> |
save(M model,
boolean allFieldForce)
实体类Model保存
|
<M extends Model<T>> |
save(M model,
Consumer<SaveStrategy<M>> saveStrategy)
实体类Model保存
|
<M extends Model<T>> |
save(M model,
Getter<M>... forceFields)
实体类Model保存
|
int |
save(T entity)
实体类保存
|
int |
save(T entity,
boolean allFieldForce)
实体类保存
|
int |
save(T entity,
Consumer<SaveStrategy<T>> saveStrategy)
实体类保存
|
int |
save(T entity,
Getter<T>... forceFields)
实体类保存
|
int |
saveBatch(Collection<T> list)
原生批量插入
|
int |
saveBatch(Collection<T> list,
Consumer<SaveBatchStrategy<T>> saveBatchStrategy)
原生批量插入
|
<M extends Model<T>> |
saveModel(Collection<M> list)
实体类Model保存
|
<M extends Model<T>> |
saveModel(Collection<M> list,
boolean allFieldForce)
实体类Model保存
|
<M extends Model<T>> |
saveModel(Collection<M> list,
Consumer<SaveStrategy<M>> saveStrategy)
实体类Model保存
|
<M extends Model<T>> |
saveModel(Collection<M> list,
Getter<M>... forceFields)
实体类Model保存
|
<M extends Model<T>> |
saveModelBatch(Collection<M> list)
原生批量插入 实体类Model保存
|
<M extends Model<T>> |
saveModelBatch(Collection<M> list,
Consumer<SaveBatchStrategy<M>> saveBatchStrategy)
原生批量插入 实体类Model保存
|
int |
saveOrUpdate(Collection<T> list)
实体类保存或修改
|
int |
saveOrUpdate(Collection<T> list,
boolean allFieldForce)
实体类保存或修改
|
int |
saveOrUpdate(Collection<T> list,
Consumer<SaveOrUpdateStrategy<T>> saveOrUpdateStrategy)
实体类保存或修改
|
int |
saveOrUpdate(Collection<T> list,
Getter<T>... forceFields)
实体类保存或修改
|
<M extends Model<T>> |
saveOrUpdate(M model)
实体类Model保存或修改
|
<M extends Model<T>> |
saveOrUpdate(M model,
boolean allFieldForce)
实体类Model保存或修改
|
<M extends Model<T>> |
saveOrUpdate(M model,
Consumer<SaveOrUpdateStrategy<M>> saveOrUpdateStrategy)
实体类Model保存或修改
|
<M extends Model<T>> |
saveOrUpdate(M model,
Getter<M>... forceFields)
实体类Model保存或修改
|
int |
saveOrUpdate(T entity)
实体类保存或修改
|
int |
saveOrUpdate(T entity,
boolean allFieldForce)
实体类保存或修改
|
int |
saveOrUpdate(T entity,
Consumer<SaveOrUpdateStrategy<T>> saveOrUpdateStrategy)
实体类保存或修改
|
int |
saveOrUpdate(T entity,
Getter<T>... forceFields)
实体类保存或修改
|
<M extends Model<T>> |
saveOrUpdateModel(Collection<M> list)
实体类Model保存或修改
|
<M extends Model<T>> |
saveOrUpdateModel(Collection<M> list,
boolean allFieldForce)
实体类Model保存或修改
|
<M extends Model<T>> |
saveOrUpdateModel(Collection<M> list,
Consumer<SaveOrUpdateStrategy<M>> saveOrUpdateStrategy)
实体类Model保存或修改
|
<M extends Model<T>> |
saveOrUpdateModel(Collection<M> list,
Getter<M>... forceFields)
实体类Model保存或修改
|
int |
update(Collection<T> list)
实体类修改
|
int |
update(Collection<T> list,
boolean allFieldForce)
实体类修改
|
int |
update(Collection<T> list,
Getter<T>... forceFields)
实体类修改
|
int |
update(Collection<T> list,
UpdateStrategy<T> updateStrategy)
实体类保存
|
<M extends Model<T>> |
update(M model)
实体类Model修改
|
<M extends Model<T>> |
update(M model,
boolean allFieldForce)
实体类Model修改
|
<M extends Model<T>> |
update(M model,
Getter<M>... forceFields)
实体类Model修改
|
<M extends Model<T>> |
update(M model,
UpdateStrategy<M> updateStrategy)
修改策略
|
int |
update(T entity)
实体类修改
|
int |
update(T entity,
boolean allFieldForce)
实体类修改
|
int |
update(T entity,
Getter<T>... forceFields)
实体类修改
|
int |
update(T entity,
UpdateStrategy<T> updateStrategy)
实体类修改
|
<M extends Model<T>> |
updateModel(Collection<M> list)
实体类Model修改
|
<M extends Model<T>> |
updateModel(Collection<M> list,
boolean allFieldForce)
实体类Model修改
|
<M extends Model<T>> |
updateModel(Collection<M> list,
Consumer<UpdateStrategy<M>> updateStrategy)
实体类Model修改
|
<M extends Model<T>> |
updateModel(Collection<M> list,
Getter<M>... forceFields)
实体类Model修改
|
T getById(ID id, Getter<T>... selectFields)
id - IDselectFields - 指定查询的列int save(T entity)
entity - 实体类对象int save(T entity, Getter<T>... forceFields)
entity - 实体类对象forceFields - 强制字段,如果是null值,则变成NULLint save(T entity, boolean allFieldForce)
entity - 实体类对象allFieldForce - 是否所有字段都插入,如果是null值,则变成NULLint save(T entity, Consumer<SaveStrategy<T>> saveStrategy)
entity - 实体类对象saveStrategy - 保存策略int save(Collection<T> list)
list - 实体类对象Listint save(Collection<T> list, boolean allFieldForce)
list - 实体类对象ListallFieldForce - 是否所有字段都插入,如果是null值,则变成NULLint save(Collection<T> list, Getter<T>... forceFields)
list - 实体类对象ListforceFields - 强制字段,如果是null值,则变成NULLint save(Collection<T> list, Consumer<SaveStrategy<T>> saveStrategy)
list - 实体类对象ListsaveStrategy - 保存策略<M extends Model<T>> int save(M model, Consumer<SaveStrategy<M>> saveStrategy)
model - 实体类Model对象saveStrategy - 保存策略<M extends Model<T>> int save(M model, Getter<M>... forceFields)
model - 实体类Model对象forceFields - 强制字段,如果是null值,则变成NULL<M extends Model<T>> int save(M model, boolean allFieldForce)
model - 实体类Model对象allFieldForce - 是否所有字段都插入,如果是null值,则变成NULL<M extends Model<T>> int saveModel(Collection<M> list)
list - 实体类Model对象List<M extends Model<T>> int saveModel(Collection<M> list, boolean allFieldForce)
list - 实体类Model对象ListallFieldForce - 是否所有字段都插入,如果是null值,则变成NULL<M extends Model<T>> int saveModel(Collection<M> list, Getter<M>... forceFields)
list - 实体类Model对象ListforceFields - 强制字段,如果是null值,则变成NULL<M extends Model<T>> int saveModel(Collection<M> list, Consumer<SaveStrategy<M>> saveStrategy)
list - 实体类Model对象ListsaveStrategy - 保存策略<M extends Model<T>> int saveModelBatch(Collection<M> list)
list - 实体类Model对象List<M extends Model<T>> int saveModelBatch(Collection<M> list, Consumer<SaveBatchStrategy<M>> saveBatchStrategy)
list - 实体类Model对象ListsaveBatchStrategy - 保存策略int saveBatch(Collection<T> list)
list - 实体类对象Listint saveBatch(Collection<T> list, Consumer<SaveBatchStrategy<T>> saveBatchStrategy)
list - 实体类对象ListsaveBatchStrategy - 策略int update(T entity, UpdateStrategy<T> updateStrategy)
entity - 实体类对象updateStrategy - 策略int update(T entity)
entity - 实体类对象int update(T entity, boolean allFieldForce)
entity - 实体类对象allFieldForce - 强制字段,如果是null值,则变成NULLint update(T entity, Getter<T>... forceFields)
entity - 实体类对象forceFields - 强制字段,如果是null值,则变成NULLint update(Collection<T> list, UpdateStrategy<T> updateStrategy)
list - 实体类对象ListupdateStrategy - 策略int update(Collection<T> list)
list - 实体类对象Listint update(Collection<T> list, boolean allFieldForce)
list - 实体类对象ListallFieldForce - 强制字段,如果是null值,则变成NULLint update(Collection<T> list, Getter<T>... forceFields)
list - 实体类对象ListforceFields - 强制修改的字段,如果是null值,则变成NULL<M extends Model<T>> int update(M model, UpdateStrategy<M> updateStrategy)
M - model - updateStrategy - <M extends Model<T>> int update(M model, Getter<M>... forceFields)
model - 实体类Model对象forceFields - 强制字段,如果是null值,则变成NULL<M extends Model<T>> int update(M model, boolean allFieldForce)
model - 实体类Model对象allFieldForce - 是否所有字段都插入,如果是null值,则变成NULL<M extends Model<T>> int updateModel(Collection<M> list, Consumer<UpdateStrategy<M>> updateStrategy)
list - 实体类Model对象ListupdateStrategy - 策略<M extends Model<T>> int updateModel(Collection<M> list)
list - 实体类Model对象List<M extends Model<T>> int updateModel(Collection<M> list, Getter<M>... forceFields)
list - 实体类Model对象ListforceFields - 强制字段,如果是null值,则变成NULL<M extends Model<T>> int updateModel(Collection<M> list, boolean allFieldForce)
list - 实体类Model对象ListallFieldForce - 是否所有字段都插入,如果是null值,则变成NULLint saveOrUpdate(T entity, Consumer<SaveOrUpdateStrategy<T>> saveOrUpdateStrategy)
entity - 实体类对象saveOrUpdateStrategy - 策略int saveOrUpdate(T entity)
entity - 实体类对象int saveOrUpdate(T entity, boolean allFieldForce)
entity - 实体类对象allFieldForce - 是否所有字段都保存或修改,如果是null值,则变成NULLint saveOrUpdate(T entity, Getter<T>... forceFields)
entity - 实体类对象forceFields - 是否所有字段都保存或修改,如果是null值,则变成NULLint saveOrUpdate(Collection<T> list, Consumer<SaveOrUpdateStrategy<T>> saveOrUpdateStrategy)
list - 实体类对象ListsaveOrUpdateStrategy - int saveOrUpdate(Collection<T> list)
list - 实体类对象Listint saveOrUpdate(Collection<T> list, boolean allFieldForce)
list - 实体类对象ListallFieldForce - 是否所有字段都保存或修改,如果是null值,则变成NULLint saveOrUpdate(Collection<T> list, Getter<T>... forceFields)
list - 实体类对象ListforceFields - 是否所有字段都保存或修改,如果是null值,则变成NULL<M extends Model<T>> int saveOrUpdate(M model, Consumer<SaveOrUpdateStrategy<M>> saveOrUpdateStrategy)
model - 实体类Model对象saveOrUpdateStrategy - 策略<M extends Model<T>> int saveOrUpdate(M model)
model - 实体类Model对象<M extends Model<T>> int saveOrUpdate(M model, boolean allFieldForce)
model - 实体类Model对象allFieldForce - 是否所有字段都保存或修改,如果是null值,则变成NULL<M extends Model<T>> int saveOrUpdate(M model, Getter<M>... forceFields)
model - 实体类Model对象forceFields - 是否所有字段都保存或修改,如果是null值,则变成NULL<M extends Model<T>> int saveOrUpdateModel(Collection<M> list, Consumer<SaveOrUpdateStrategy<M>> saveOrUpdateStrategy)
list - 实体类Model对象ListsaveOrUpdateStrategy - 策略<M extends Model<T>> int saveOrUpdateModel(Collection<M> list)
list - 实体类Model对象List<M extends Model<T>> int saveOrUpdateModel(Collection<M> list, boolean allFieldForce)
list - 实体类Model对象ListallFieldForce - 是否所有字段都保存或修改,如果是null值,则变成NULL<M extends Model<T>> int saveOrUpdateModel(Collection<M> list, Getter<M>... forceFields)
list - 实体类Model对象ListforceFields - 是否所有字段都保存或修改,如果是null值,则变成NULLint delete(T entity)
entity - 实体类对象int delete(Collection<T> list)
list - 实体类对象Listint deleteById(ID id)
id - IDint deleteByIds(ID... ids)
ids - 多个IDint deleteByIds(Collection<ID> ids)
ids - ID 集合Map<ID,T> map(Collection<ID> ids)
ids - ID 集合Copyright © 2025. All rights reserved.