taskdao.java

来自「Java的框架」· Java 代码 · 共 61 行

JAVA
61
字号
package mcaps.apps.prrm.task.dao;

import java.util.List;

import mcaps.apps.prrm.task.model.Task;

import org.springframework.dao.DataAccessException;

/**
 * Task Data Access Object interface.
 * 
 * @author jov
 * @date Oct 20, 2005
 * @version 1.0.1.0
 */
public interface TaskDAO {

	/**
	 * Get the task using the task id as parameter.
	 * @param taskID the id of the task
	 * @return the task object that matches the taskID 
	 * parameter
	 * @throws DataAccessException
	 */
	Task getTask(Integer taskID) throws DataAccessException; 

	/**
	 * Get all tasks.
	 * @return the list of all available tasks.
	 * @throws DataAccessException
	 */
	List getAllTasks() throws DataAccessException;

	/**
   * Gets tasks that macthes the search criteria as specified by the 
	 * task parameter.
	 * @param task task
	 * @return list of tasks that matches the search criteria as specified 
	 * by the task parameter.
	 * @throws DataAccessException
	 */
	List getTasks(Task task) throws DataAccessException;

	/**
	 * Save the task
	 * @param task the task to save
	 * @return the id of the road task
	 * @throws DataAccessException
	 */
	void saveTask(Task task) throws DataAccessException; 

	/**
	 * Deletes a task that macthes the taskID parameter
	 * @param taskID the id of the task
	 * @throws DataAccessException
	 */
	void removeTask(Task task) throws DataAccessException; 

	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?