com.diboot.core.service.GeneralService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of diboot-core Show documentation
Show all versions of diboot-core Show documentation
diboot core extend by begcode
package com.diboot.core.service;
import java.util.Collection;
/**
* 通用服务接口Service
* @author [email protected]
* @version 3.0
* @date 2023/05/25
*/
public interface GeneralService {
/**
* 创建Entity实体
* @param entity
* @return true:成功, false:失败
*/
boolean createEntity(T entity);
/***
* 批量创建Entity
* @param entityList 实体对象列表
* @return true:成功, false: 失败
*/
boolean createEntities(Collection entityList);
/**
* 更新Entity实体
* @param entity
* @return
*/
boolean updateEntity(T entity);
/**
* 批量更新entity
* @param entityList
* @return
*/
boolean updateEntities(Collection entityList);
/***
* 创建或更新entity(entity.id存在则新建,否则更新)
* @param entity
* @return
*/
boolean createOrUpdateEntity(T entity);
/**
* 批量创建或更新entity(entity.id存在则新建,否则更新)
* @param entityList
* @return
*/
boolean createOrUpdateEntities(Collection entityList);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy