【Java开源代码栏目提醒】:本文主要为网学会员提供WebAuction.java,希望对需要WebAuction.java网友有所帮助,学习一下!
package
webauction.ejb;
import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.ejb.EJBObject;
public interface WebAuction extends EJBObject {
BidValueHolder[] getBidsForUser(String userName)
throws NoSuchUserException, RemoteException;
ItemValueHolder getItemWithId(int id)
throws NoSuchItemException, RemoteException;
ItemValueHolder[] getItemsInCategory(String category)
throws RemoteException;
ItemValueHolder createItem(String userId, String desc, String cat, long date)
throws RemoteException;
void createUser(
String userName,
String pass
word,
String firstName,
String lastName,
String streetAddress,
String city,
String zipcode,
String email)
throws RemoteException, CreateException;
boolean userExists(String userName) throws RemoteException;
}