Java Reference
In-Depth Information
* @author: Andrew Yang
* @version: 1.0
*/
package java_database.YachtEBean;
import java.rmi.*;
import java.util.*;
import javax.ejb.*;
public interface YachtHome extends EJBHome {
public Yacht create(String yachtName, String builder, String
engineType,
int capacity, int maxVelocity)
throws CreateException, RemoteException;
public Yacht findByPrimaryKey(String yachtName)
throws FinderException, RemoteException;
public Collection findAllYachts()
throws FinderException, RemoteException;
public Collection findYachtsCapacityMoreThan(int minCapacity)
throws FinderException, RemoteException;
}
Listing 22-2: Remote interface of YachtEJB
/** YachtEJB Remote Interface. CMP is used.
* @author: Andrew Yang
* @version: 1.0
*/
package java_database.YachtEBean;
import java.rmi.*;
import javax.ejb.*;
import common.*;
import YachtSessionSFBean.*;
public interface Yacht extends EJBObject {
public YachtSession createYachtSession() throws RemoteException;
public String getBuilder() throws RemoteException;
public String getEngineType() throws RemoteException;
public int getCapacity() throws RemoteException;
public int getMaxVelocity() throws RemoteException;
}
Search WWH ::




Custom Search