package com.moral.monitor.dao; import java.io.Serializable; import java.util.List; import org.apache.ibatis.annotations.Param; import org.springframework.dao.DataAccessException; public interface BaseDao extends Serializable{ int insert(Entity record) throws DataAccessException; int insertSelective(Entity record) throws DataAccessException; int deleteByPrimaryKey(PK PK) throws DataAccessException; int deleteByExample(Example example) throws DataAccessException; int updateByPrimaryKeySelective(Entity record) throws DataAccessException; int updateByPrimaryKey(Entity record) throws DataAccessException; int updateByExampleSelective(@Param("record") Entity record, @Param("example") Example example) throws DataAccessException; int updateByExample(@Param("record") Entity record, @Param("example") Example example) throws DataAccessException; int countByExample(Example example) throws DataAccessException; Entity selectByPrimaryKey(PK pk) throws DataAccessException; List selectByExample(Example example) throws DataAccessException; }