1 22 package org.jboss.test.cmp2.commerce; 23 24 import java.rmi.RemoteException ; 25 import javax.ejb.CreateException ; 26 import javax.ejb.EJBHome ; 27 import javax.ejb.FinderException ; 28 import java.util.Collection ; 29 30 public interface UserHome extends EJBHome 31 { 32 public User create(String userId) 33 throws RemoteException , CreateException ; 34 35 public User findByPrimaryKey(String id) 36 throws RemoteException , FinderException ; 37 38 public User findByUserName(String userName) 39 throws RemoteException , FinderException ; 40 41 public Collection findAll() throws RemoteException , FinderException ; 42 public Collection findAllByUserName(String userName) throws RemoteException , FinderException ; 43 } 44 45 | Popular Tags |