?? 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 福建圓創(chuàng)軟件;
* @function 處理日歷事件的DAO 接口;
*
*/
public interface EventDAO {
/**
* @author 福建圓創(chuàng)軟件;
* @function 添加日歷事件;
* @param 保存eventPojo參數(shù)的實例
* @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 ;
//根據(jù)聯(lián)系人更新事件
public void updateEventsByContactId(int modifyManId, String modifyTime, int contactId, int flag) throws DataAccessException;
//根據(jù)ID更新事件
public void updateEventById(int modifyManId, String modifyTime, int eventId, int flag) throws DataAccessException ;
//查找所有已刪除的事件
public List getEventByDelete(User user, int flag) throws DataAccessException;
//根據(jù)subject模糊查找事件
public List getEventsBySujectLike(User user, int flag, String subject) throws DataAccessException ;
/**
* @author 陸文邦;
* @function 根據(jù)某天搜索事件;
* @param DayOfMonth 日期;
* @return 返回事件列表;
*/
public List getEventByDay(String dayOfMonth,int flag,User user) throws DataAccessException;
/**
* @author 陸文邦;
* @function 根據(jù)某年某月搜索事件;
* @param date 日期;
* @param flag 是否激活狀態(tài);
* @return 返回事件列表;
*/
public List getEventsByMonth(int flag,int year,int month,User user) throws DataAccessException;
/**
* @author 陸文邦;
* @function 根據(jù)某年某周搜索事件;
* @param flag 是否激活狀態(tài);
* @return 返回事件列表;
*/
public List getEventsByWeek(int weekOfYearInt, int year, int flag, User user) throws DataAccessException;
/**
* @author 陸文邦;
* @function 根據(jù)某年某日搜索事件;
* @param date 日期;
* @param flag 是否激活狀態(tài);
* @return 返回事件列表;
* @time:2008-12-12
*/
public List getEventsByDate(int year,int dayOfYear,int flag,User user) throws DataAccessException;
/**
* @author 陸文邦;
* @function 根據(jù)id號搜索事件;
* @param id
* @return 該id號的事件;
* @throws ApplicationException
*/
public Event getEventById(Integer id) throws DataAccessException;
/**
* @author 陸文邦
* @date 2008-12-18
* @function 查找相關(guān)的數(shù)據(jù);
* @param user
* @param flag
* @return
* @throws ApplicationException
*/
public List getTaskEvent(User user, int flag) throws DataAccessException;
/**
* 函數(shù)功能 修改事件;
* 創(chuàng)建時間 2008-12-23;
* 程序員 陸文邦;
* @param event
* @throws ApplicationException
*/
public void modifyEvent(Event event) throws DataAccessException;
/**
* 函數(shù)功能: 刪除事件,不是物理刪除;
* 參數(shù)說明: id 事件id,針對該id的事件修改;
* flag 旗標,標識該事件是否可用;
* 程序作者: 陸文邦;
* 創(chuàng)建時間: 2008-12-24
* @throws ApplicationException
*/
public void mergeEventFlag(Integer id,int flag) throws DataAccessException;
/**
* 函數(shù)功能: 獲取系列事件列表;
* 參數(shù)說明: @param flag 標識該事件是否可用;
* @param seq 事件序列號;
* 程序作者: 陸文邦;
* 創(chuàng)建時間: 2008-12-29;
* @throws DataAccessException
*/
public List getSeqEvents(int flag,String seq) throws DataAccessException;
/**
* 函數(shù)功能: 刪除事件;
* 參數(shù)說明: @param event 事件對象;
* 程序作者: 陸文邦;
* 創(chuàng)建時間: 2008-12-29;
* @throws DataAccessException
*/
public void deleteEvent(Event event) throws DataAccessException;
/**
* 函數(shù)功能: 獲取系列事件列表的最后一個事件;
* 參數(shù)說明: @param flag 標識該事件是否可用;
* @param seq 事件序列號;
* 程序作者: 陸文邦;
* 創(chuàng)建時間: 2008-12-29;
* @throws DataAccessException
*/
public Event getLastEventBySeq(int flag,String seq) throws DataAccessException;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -