example.cmp.ejbql
Interface StudentHome
- All Superinterfaces:
- javax.ejb.EJBLocalHome
- public interface StudentHome
- extends javax.ejb.EJBLocalHome
Home interface for the Student bean. The findAll()
method
is one of the most generically useful queries.
Method Summary |
java.util.Collection |
findAll()
Returns a Collection of all Students enrolled at Hogwarts. |
Student |
findByPrimaryKey(java.lang.String name)
Returns the Student entity that has name
as its primary key. |
Methods inherited from interface javax.ejb.EJBLocalHome |
remove |
findByPrimaryKey
public Student findByPrimaryKey(java.lang.String name)
throws javax.ejb.FinderException
- Returns the
Student
entity that has name
as its primary key.
findAll
public java.util.Collection findAll()
throws javax.ejb.FinderException
- Returns a Collection of all Students enrolled at Hogwarts.
SELECT o FROM ejbql_student o