All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.codingless.core.plugs.mybaties3.GenericUpdateDao Maven / Gradle / Ivy

package tech.codingless.core.plugs.mybaties3;

import java.util.Collection;
import java.util.List;

import tech.codingless.core.plugs.mybaties3.data.BaseDO;
import tech.codingless.core.plugs.mybaties3.data.UpdateObject;

/**
 * 
 * 
 * 更新接口
 * @author 王鸿雁
 * @version  2021年10月19日
 */
public interface GenericUpdateDao {

	int update(String sqlId, Object param);

	int insert(String sqlId, Object param);

	int delete(String sqlId, Object param);

	int createEntity(Object entity);

	int createEntityList(List entityList);

	int deleteEntity(Class clazz, String entityId);

	int deleteEntityWithCompanyId(Class clazz, String id, String companyId);

	int updateEntity(BaseDO entiry);

	int updateEntityWithCompanyId(BaseDO entiry, String companyId);
 
	int updateNotNull(T data, Long ver);  
	int updateSkipNullBatchAppend(String companyId, T data, Long ver, int batchSize);
	int updateSkipNullBatchExecute(Class clazz);

	int deleteLogicalWithCompanyId(Class clazz, String id, String companyId);
	int deleteLogicalWithCompanyId(Class clazz, Collection idList, String companyId);

 
	int insertNative(String prepareSql, List params);

	 
	int updateNative(String prepareSql, List params);

	int updateSkipNullBatchExecute(List updateList);





}