example.cmp.transaction
Interface CourseHome
- All Superinterfaces:
- javax.ejb.EJBLocalHome
- public interface CourseHome
- extends javax.ejb.EJBLocalHome
Home interface for the Course bean.
The Home Interface enables you to create new entities and to obtain
references to existing ones.
The idea is that you use the Home Interface to obtain references
to whatever entities you're interested in. Each entity that you
get from the Home Interface (using its create or finder methods)
is then accessible through its Local Interface.
Method Summary |
java.util.Collection |
findAll()
Returns a Collection of all Courses taught. |
Course |
findByPrimaryKey(int primaryKey)
Returns the Course identified by the given primary key. |
Methods inherited from interface javax.ejb.EJBLocalHome |
remove |
findByPrimaryKey
public Course findByPrimaryKey(int primaryKey)
throws javax.ejb.FinderException
- Returns the Course identified by the given primary key.
findAll
public java.util.Collection findAll()
throws javax.ejb.FinderException
- Returns a
Collection
of all Courses taught.