friendmanager.java

来自「STRUTS数据库项目开发宝典」· Java 代码 · 共 41 行

JAVA
41 行
字号
package com.relationinfo.service;import java.util.List;import com.relationinfo.model.Friend;import com.relationinfo.dao.FriendDAO;public interface FriendManager extends Manager {    /**     * Setter for DAO, convenient for unit testing     */    public void setFriendDAO(FriendDAO friendDAO);    /**     * Retrieves all of the friends     */    public List getFriends(Friend friend);    /**     * Gets friend's information based on friendcode.     * @param friendcode the friend's friendcode     * @return friend populated friend object     */    public Friend getFriend(final String friendcode);    /**     * Saves a friend's information     * @param friend the object to be saved     */    public void saveFriend(Friend friend);    /**     * Removes a friend from the database by friendcode     * @param friendcode the friend's friendcode     */    public void removeFriend(final String friendcode);}

⌨️ 快捷键说明

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