news.java
来自「J2EE技术开发的新闻发布系统。包括:分类管理、新闻管理、用户管理等基本功能.采」· Java 代码 · 共 64 行
JAVA
64 行
/*
*
*/
package news;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;
import java.util.*;
import article.*;
import util.*;
public interface News extends EJBObject {
public void createSort(String name)
throws RemoteException;
public void dropArticleInSort(int articleId, int sortId)
throws RemoteException;
public void createArticleInSort(int articleId, int sortId)
throws RemoteException;
public void createArticle(ArticleDetails details)
throws RemoteException;
public void removeArticle(int articleId)
throws RemoteException;
public void removeSort(int sortId)
throws RemoteException;
public void updateSort(int sortId,String sortName)
throws RemoteException;
public void updateArticle(int articleId,String title,String content,int sortId)
throws RemoteException;
public ArrayList getArticlesOfSort(int sortId)
throws RemoteException;
public ArrayList getAllSorts()
throws RemoteException;
public ArrayList getAllArticles()
throws RemoteException;
// public ArrayList getArticlesLike(String value)
// throws RemoteException;
public ArrayList getAllAdmins()
throws RemoteException;
public String getSortNameBySortId(int sortId)
throws RemoteException;
public String getArticleTitleByArticleId(int articleId)
throws RemoteException;
public String getArticleContentByArticleId(int articleId)
throws RemoteException;
public String getAddTimeByArticleId(int articleId)
throws RemoteException;
public SortDetails getSortByArticleId(int articleId)
throws RemoteException;
public int getArticleCount()
throws RemoteException;
public int getMaxArticleId()
throws RemoteException;
public boolean checkLogin(String id,String psw)
throws RemoteException;
public boolean createAdmin(String id,String password)
throws RemoteException;
public void updateAdmin(String id,String password)
throws RemoteException;
public void removeAdmin(String id)
throws RemoteException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?