imagedao.java

来自「java写的blog」· Java 代码 · 共 29 行

JAVA
29
字号
/*
 * Created on 2004-8-28
 * Author: Xuefeng, Copyright (C) 2004, Xuefeng.
 */
package org.crystalblog.dao;

import java.util.List;

import org.crystalblog.domain.*;
import org.crystalblog.exception.*;

/**
 * Inteface of all operations on image table.
 * 
 * @author Xuefeng
 */
public interface ImageDao {

    // for browse:
    Image getImage(int imageId) throws QueryException;
    List getImages(int categoryId, int num, int page) throws QueryException;
    List getImages(int categoryId) throws QueryException;
    int getImagesCount(int categoryId) throws QueryException;

    // for management:
    void createImage(Image image) throws CreateException;
    void deleteImage(int imageId) throws DeleteException;
}

⌨️ 快捷键说明

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