📄 eventdao.java
字号:
package com.yuanchung.sales.dao.taskEvent;
import java.util.List;
import org.springframework.dao.DataAccessException;
import com.yuanchung.sales.exception.ApplicationException;
import com.yuanchung.sales.model.taskEvent.Event;
import com.yuanchung.sales.model.user.User;
/**
* @author 福建圆创软件;
* @function 处理日历事件的DAO 接口;
*
*/
public interface EventDAO {
/**
* @author 福建圆创软件;
* @function 添加日历事件;
* @param 保存eventPojo参数的实例
* @return 返回是否保存成功;
*/
public boolean addEvent(Event event) throws DataAccessException;
/**
* 更新事件
* @param classCode类编码
* @param recordId记录ID
* @param flag旗标
* @throws DataAccessException
*/
public void updateEvents(int modifyManId, String modifyTime, String classCode, int recordId, int flag) throws DataAccessException ;
//根据联系人更新事件
public void updateEventsByContactId(int modifyManId, String modifyTime, int contactId, int flag) throws DataAccessException;
//根据ID更新事件
public void updateEventById(int modifyManId, String modifyTime, int eventId, int flag) throws DataAccessException ;
//查找所有已删除的事件
public List getEventByDelete(User user, int flag) throws DataAccessException;
//根据subject模糊查找事件
public List getEventsBySujectLike(User user, int flag, String subject) throws DataAccessException ;
/**
* @author 陆文邦;
* @function 根据某天搜索事件;
* @param DayOfMonth 日期;
* @return 返回事件列表;
*/
public List getEventByDay(String dayOfMonth,int flag,User user) throws DataAccessException;
/**
* @author 陆文邦;
* @function 根据某年某月搜索事件;
* @param date 日期;
* @param flag 是否激活状态;
* @return 返回事件列表;
*/
public List getEventsByMonth(int flag,int year,int month,User user) throws DataAccessException;
/**
* @author 陆文邦;
* @function 根据某年某周搜索事件;
* @param flag 是否激活状态;
* @return 返回事件列表;
*/
public List getEventsByWeek(int weekOfYearInt, int year, int flag, User user) throws DataAccessException;
/**
* @author 陆文邦;
* @function 根据某年某日搜索事件;
* @param date 日期;
* @param flag 是否激活状态;
* @return 返回事件列表;
* @time:2008-12-12
*/
public List getEventsByDate(int year,int dayOfYear,int flag,User user) throws DataAccessException;
/**
* @author 陆文邦;
* @function 根据id号搜索事件;
* @param id
* @return 该id号的事件;
* @throws ApplicationException
*/
public Event getEventById(Integer id) throws DataAccessException;
/**
* @author 陆文邦
* @date 2008-12-18
* @function 查找相关的数据;
* @param user
* @param flag
* @return
* @throws ApplicationException
*/
public List getTaskEvent(User user, int flag) throws DataAccessException;
/**
* 函数功能 修改事件;
* 创建时间 2008-12-23;
* 程序员 陆文邦;
* @param event
* @throws ApplicationException
*/
public void modifyEvent(Event event) throws DataAccessException;
/**
* 函数功能: 删除事件,不是物理删除;
* 参数说明: id 事件id,针对该id的事件修改;
* flag 旗标,标识该事件是否可用;
* 程序作者: 陆文邦;
* 创建时间: 2008-12-24
* @throws ApplicationException
*/
public void mergeEventFlag(Integer id,int flag) throws DataAccessException;
/**
* 函数功能: 获取系列事件列表;
* 参数说明: @param flag 标识该事件是否可用;
* @param seq 事件序列号;
* 程序作者: 陆文邦;
* 创建时间: 2008-12-29;
* @throws DataAccessException
*/
public List getSeqEvents(int flag,String seq) throws DataAccessException;
/**
* 函数功能: 删除事件;
* 参数说明: @param event 事件对象;
* 程序作者: 陆文邦;
* 创建时间: 2008-12-29;
* @throws DataAccessException
*/
public void deleteEvent(Event event) throws DataAccessException;
/**
* 函数功能: 获取系列事件列表的最后一个事件;
* 参数说明: @param flag 标识该事件是否可用;
* @param seq 事件序列号;
* 程序作者: 陆文邦;
* 创建时间: 2008-12-29;
* @throws DataAccessException
*/
public Event getLastEventBySeq(int flag,String seq) throws DataAccessException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -