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

com.base4j.mvc.base.service.BaseService Maven / Gradle / Ivy

The newest version!
package com.base4j.mvc.base.service;

import com.base4j.mybatis.base.QueryParams;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BaseService {

    int insert(T record);

    int insertList(List recordList);

    T selectByPrimaryKey(long key);

    T selectRelativeByPrimaryKey(long key);

    List selectListByParams(QueryParams params);

    List selectListRelativeByParams(QueryParams params);

    T selectOneByParams(QueryParams params);

    T selectOneRelativeByParams(QueryParams params);

    int selectCountByParams(QueryParams params);

    Page selectPageByParams(int pageNo, int pageLimit, final QueryParams params);

    Page selectPageRelativeByParams(int pageNo, int pageLimit, final QueryParams params);

    int updateByPrimaryKey(T record);

    int updateSelectiveByPrimaryKey(T record);

    int updateByParams(@Param("record") T record, @Param("params") QueryParams params);

    int updateSelectiveByParams(@Param("record") T record, @Param("params") QueryParams params);

    int deleteByPrimaryKey(long id);

    int deleteByParams(QueryParams params);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy