package com.ssm.manage.dao;


import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Component;

import java.util.List;

public interface BaseDao<Pojo> {

    public int deleteByExample(Object o);


    public int deleteByPrimaryKey(Object o);


    public int delete(Pojo pojo);


    public boolean existsWithPrimaryKey(Object o);


    public int insertList(List<Pojo> list);


    public int insert(Pojo pojo);


    public int saveNotNull(Pojo pojo);


//    public int insertUseGeneratedKeys(Pojo pojo);


    public List<Pojo> selectAll();


    public List<Pojo> selectByExample(Object o);


    public List<Pojo> selectByExampleAndRowBounds(Object o, RowBounds rowBounds);


    public Pojo selectByPrimaryKey(Object o);


    public int selectCountByExample(Object o);


    public int selectCount(Pojo pojo);


    public List<Pojo> select(Pojo pojo);


    public Pojo selectOne(Pojo pojo);


    public List<Pojo> selectByRowBounds(Pojo pojo, RowBounds rowBounds);


    public int updateByExample(Pojo pojo, Object o);


    public int updateByExampleSelective(Pojo pojo, Object o);


    public int updateByPrimaryKey(Pojo pojo);


    public int updateByPrimaryKeySelective(Pojo pojo);
}
        
    

