package haipham.webnntp.ejb.user;

import java.rmi.RemoteException;
import javax.ejb.*;
import haipham.webnntp.ejb.group.*;

public interface UserHome extends EJBHome{
    public static final String findWithPassword_query =
        "user.userName = $1 and user.password = $2";

    public User create(String userName, String password)
        throws CreateException, RemoteException;

    public User findByPrimaryKey(String key)
        throws FinderException, RemoteException;
    public User findWithPassword(String userName, String password)
        throws FinderException, RemoteException;
}
