package com.qianwen.core.mp.service;
|
|
import java.util.Collection;
|
import com.qianwen.core.mp.base.BaseService;
|
import org.springframework.transaction.annotation.Transactional;
|
|
/* loaded from: blade-starter-mybatis-9.3.0.0-SNAPSHOT.jar:org/springblade/core/mp/service/BladeService.class */
|
public interface BladeService<T> extends BaseService<T> {
|
boolean saveIgnore(T entity);
|
|
boolean saveReplace(T entity);
|
|
boolean saveIgnoreBatch(Collection<T> entityList, int batchSize);
|
|
boolean saveReplaceBatch(Collection<T> entityList, int batchSize);
|
|
@Transactional(rollbackFor = {Exception.class})
|
default boolean saveIgnoreBatch(Collection<T> entityList) {
|
return saveIgnoreBatch(entityList, 1000);
|
}
|
|
@Transactional(rollbackFor = {Exception.class})
|
default boolean saveReplaceBatch(Collection<T> entityList) {
|
return saveReplaceBatch(entityList, 1000);
|
}
|
}
|