01: package com.titan.ship;
02:
03: import javax.ejb.CreateException;
04: import javax.ejb.FinderException;
05: import java.util.Collection;
06:
07: // Ship EJB's local home interface
08: public interface ShipHomeLocal extends javax.ejb.EJBLocalHome {
09:
10: public ShipLocal create(Integer primaryKey, String name,
11: double tonnage) throws javax.ejb.CreateException;
12:
13: public ShipLocal findByPrimaryKey(Object primaryKey)
14: throws javax.ejb.FinderException;
15:
16: public Collection findAllShips() throws FinderException;
17:
18: public Collection findByTonnage(Double tonnage)
19: throws javax.ejb.FinderException;
20:
21: public Collection findByTonnage(Double tonnage1, Double tonnage2)
22: throws javax.ejb.FinderException;
23:
24: }
|