KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > jtests > beans > ejbql > ShipHomeRemote


1 package org.objectweb.jonas.jtests.beans.ejbql;
2
3 import java.rmi.RemoteException JavaDoc;
4 import java.util.Collection JavaDoc;
5
6 import javax.ejb.FinderException JavaDoc;
7
8 // Ship EJB's Remote home interface
9
public interface ShipHomeRemote extends javax.ejb.EJBHome JavaDoc {
10
11     public ShipRemote create(Integer JavaDoc primaryKey, String JavaDoc name, double tonnage)
12         throws javax.ejb.CreateException JavaDoc, RemoteException JavaDoc;
13
14     public ShipRemote findByPrimaryKey(Object JavaDoc primaryKey)
15         throws javax.ejb.FinderException JavaDoc, RemoteException JavaDoc;
16
17     public Collection JavaDoc findAllShips()
18         throws FinderException JavaDoc, RemoteException JavaDoc;
19
20     public Collection JavaDoc findByTonnage(Double JavaDoc tonnage)
21         throws javax.ejb.FinderException JavaDoc, RemoteException JavaDoc;
22
23     public Collection JavaDoc findByTonnage(Double JavaDoc tonnage1, Double JavaDoc tonnage2)
24         throws javax.ejb.FinderException JavaDoc, RemoteException JavaDoc;
25
26     public double getAverageOfTonnage()
27         throws javax.ejb.FinderException JavaDoc, RemoteException JavaDoc;
28
29 }
30
31
Popular Tags