bookdao.java

来自「一个免费wap站」· Java 代码 · 共 36 行

JAVA
36
字号
package com.eline.wap.resource.dao;


import com.eline.wap.common.model.Page;
import com.eline.wap.resource.exceptions.ResourceDAOSysException;
import com.eline.wap.resource.model.Book;
import com.eline.wap.resource.model.BookChapter;
import com.eline.wap.resource.model.BookCondition;

public interface BookDAO {

	public Book getBook(int bookId) throws ResourceDAOSysException;

	public Page getBooks(int parentId, int start, int count) throws ResourceDAOSysException;

	public Page searchBooks(BookCondition condition, int start, int count) throws ResourceDAOSysException;
	
	public void createBook(Book item) throws ResourceDAOSysException;

	public void updateBook(Book item) throws ResourceDAOSysException;

	public void deleteBook(int bookId) throws ResourceDAOSysException;
	
	public Page getBookChapters(int bookId, int start, int count) throws ResourceDAOSysException;

	public void createBookChapter(BookChapter item) throws ResourceDAOSysException;

	public void updateBookChapter(BookChapter item) throws ResourceDAOSysException;
	
	public void deleteBookChapter(int chapterId) throws ResourceDAOSysException;
	
	public void setBookChapterSortOrder(int chapterId, int sortOrder) throws ResourceDAOSysException;

	public BookChapter getBookChapter(int chapterId/*, int start, int count*/) throws ResourceDAOSysException;
}

⌨️ 快捷键说明

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