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

group.rober.dataform.handler.DataListHandler Maven / Gradle / Ivy

There is a newer version: 3.2.2
Show newest version
package group.rober.dataform.handler;

import group.rober.dataform.model.DataForm;
import group.rober.dataform.validator.ValidateResult;
import group.rober.sql.core.PaginationData;

import java.util.List;
import java.util.Map;

/**
 * 列表数据的查询,保存处理
 * Created by tisir [email protected] on 2017-05-29
 */
public interface DataListHandler extends DataObjectHandler {


    
    /**
     * 查询列表数据
     *
     * @param dataForm dataForm
     * @param queryParameters 查询条件参数
     * @param filterParameters 筛选条件参数
     * @param sortMap 排序参数
     * @param pageSize 分页大小
     * @param pageIndex 分页索引
     * @return PaginationData
     */
    PaginationData query(DataForm dataForm, Map queryParameters, Map filterParameters, Map sortMap, int pageSize, int pageIndex);

    /**
     * 插入
     *
     * @param dataForm dataForm
     * @param dataList dataList
     * @return int
     */
    public int insert(DataForm dataForm, List dataList);

    /**
     * 更新
     *
     * @param dataForm dataForm
     * @param dataList dataList
     * @return int
     */
    public int update(DataForm dataForm, List dataList);

    /**
     * 保存列表数据
     *
     * @param dataForm dataForm
     * @param dataList dataList
     * @return int
     */
    int save(DataForm dataForm,List dataList);

    /**
     * 删除列表数据
     *
     * @param dataForm dataForm
     * @param dataList dataList
     * @return int
     */
    Integer delete(DataForm dataForm,List dataList);

    /**
     * 校验数据
     *
     * @param dataForm dataForm
     * @param dataList dataList
     * @return list
     */
    List validate(DataForm dataForm,List dataList);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy