linkdao.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.Link;
import org.crystalblog.exception.*;

/**
 * Inteface of all operations on link table.
 * 
 * @author Xuefeng
 */
public interface LinkDao {

    // for browse:
    List getAllLinks(int accountId) throws QueryException;
    Link getLink(int linkId) throws QueryException;
    int getLinksCount(int categoryId) throws QueryException;

    // for management:
    void createLink(Link link) throws CreateException;
    void updateLink(Link link) throws UpdateException;
    void deleteLink(int linkId) throws DeleteException;
}

⌨️ 快捷键说明

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