1 package com.titan.customer; 2 3 import java.rmi.RemoteException; 4 import javax.ejb.CreateException; 5 import javax.ejb.FinderException; 6 import java.util.Collection; 7 import com.titan.cruise.CruiseLocal; 8 9 public interface CustomerHomeLocal extends javax.ejb.EJBLocalHome { 10 11 public CustomerLocal create(Integer id) 12 throws CreateException; 13 public CustomerLocal findByPrimaryKey(Integer id) 14 throws FinderException; 15 16 public Collection findAllCustomers() 17 throws FinderException; 18 19 public Collection findByName(String lastName, String firstName) 20 throws FinderException; 21 22 public CustomerLocal findByExactName(String lastName, String firstName) 23 throws FinderException; 24 25 public Collection findByNameAndState(String lastName, String firstName, String state) 26 throws FinderException; 27 28 public CustomerLocal findSmith90() 29 throws FinderException; 30 31 public Collection findByGoodCredit() 32 throws FinderException; 33 34 public Collection findByCity(String city, String state) 35 throws FinderException; 36 37 public Collection findInHotStates() 38 throws FinderException; 39 40 public Collection findWithNoReservations() 41 throws FinderException; 42 43 public Collection findOnCruise(CruiseLocal cruise) 44 throws FinderException; 45 46 public Collection findByState(String state) 47 throws FinderException; 48 } 49 | Popular Tags |