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

cn.vonce.sql.service.InsertService Maven / Gradle / Ivy

The newest version!
package cn.vonce.sql.service;

import cn.vonce.sql.bean.Insert;

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

/**
 * Insert 通用业务接口
 *
 * @param 
 * @author Jovi
 * @version 1.0
 * @email [email protected]
 * @date 2019年6月27日下午3:57:33
 */
public interface InsertService {

    /**
     * 插入数据
     *
     * @param bean 单个实体或数组
     * @return
     */
    @SuppressWarnings("unchecked")
    int insert(T... bean);

    /**
     * 插入数据
     *
     * @param beanList 实体列表
     * @return
     */
    @SuppressWarnings("unchecked")
    int insert(Collection beanList);

    /**
     * 插入数据
     *
     * @param insert 插入对象
     * @return
     */
    int insert(Insert insert);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy