notedao.java
来自「是一个网站的博客系统」· Java 代码 · 共 63 行
JAVA
63 行
package com.opensource.blog.dao;
import com.opensource.blog.model.Note;
import java.util.*;
public interface NoteDAO {
/**
*
* @param note Note
* @return Note
*/
public Note saveNote(Note note);
/**
*
* @param id long
* @param blogID long
* @return Note
*/
public Note findNoteByID_BlogID(long id, long blogID);
/**
*
* @param artID long
* @param blogID long
* @return int
*/
public int getNoteCountByArtID(long artID);
/**
*
* @param artID long
* @return List
*/
public List findNotesByArtID(long artID);
/**
*
* @param blogID long
* @return int
*/
public int getNoteCountByBlogID(long blogID);
/**
*
* @param blogID long
* @param firstResult int
* @param maxResults int
* @return List
*/
public List getNotesByBlogID(long blogID, int firstResult, int maxResults);
/**
*
* @param note Note
*/
public void removeNote(Note note);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?