KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > titan > ship > ShipHomeLocal


1 package com.titan.ship;
2
3 import javax.ejb.CreateException;
4 import javax.ejb.FinderException;
5 import java.util.Collection;
6
7 // Ship EJB's local home interface
8
public interface ShipHomeLocal extends javax.ejb.EJBLocalHome {
9
10     public ShipLocal create(Integer primaryKey, String name, double tonnage)
11         throws javax.ejb.CreateException;
12
13     public ShipLocal findByPrimaryKey(Object primaryKey)
14         throws javax.ejb.FinderException;
15
16     public Collection findAllShips()
17         throws FinderException;
18
19     public Collection findByTonnage(Double tonnage)
20         throws javax.ejb.FinderException;
21
22     public Collection findByTonnage(Double tonnage1, Double tonnage2)
23         throws javax.ejb.FinderException;
24
25 }
26
Popular Tags