A Universal Model for Designing the Entity EJB Layer
By Jonathan Leibundguth, Michael Pease and and Andrei Povodyrev, June 01, 2001
Entity EJBs generally come in two varieties: container-managed persistent and bean-managed persistent. Our authors propose a third flavor, the Universum Bean.
Jun01: A Universal Model for Designing the Entity EJB Layer
public static java.util.Collection findByName(String qst, UniversumHome home)
throws SQLException, FinderException, RemoteException{
String where = " FIRST_NAME = '" + qst + "'";
return home.findBySQLWhere(where, UserPK.getInstance());
}
Example 2: Finder method on a primary key.