⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 accountdao.java

📁 java写的blog
💻 JAVA
字号:
/*
 * Created on 2004-8-28
 * Author: Xuefeng, Copyright (C) 2004, Xuefeng.
 */
package org.crystalblog.dao;

import java.util.List;

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

/**
 * Inteface of all operations on account table.
 * 
 * @author Xuefeng
 */
public interface AccountDao {

    // for browse:
    Account getAccount(String username) throws QueryException;
    Account getAccount(int accountId) throws QueryException;
    Account getAccountByCategory(int categoryId) throws QueryException;
    Account getAccountByArticle(int articleId) throws QueryException;
    List getRecentAccounts(int num) throws QueryException;
    void sendMessage(int accountId, String sender, String address, String subject, String msg);

    // for management:
    int loginAccount(String username, String password) throws AuthorizationException;
    void createAccount(Account account) throws CreateException;
    void updateAccount(Account account) throws UpdateException;
    void deleteAccount(int accountId) throws DeleteException;
    void lockAccount(int accountId) throws UpdateException;
    void changePassword(int accountId, String password) throws UpdateException;

}

⌨️ 快捷键说明

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