1 package org.acme.movie; 2 3 import javax.ejb.FinderException ; 4 import javax.ejb.CreateException ; 5 import java.util.Collection ; 6 import java.util.Date ; 7 8 13 public interface MovieHome extends javax.ejb.EJBLocalHome { 14 15 public MovieEntity create(String title, String director, String genre, int rating, Date releaseDate) throws CreateException ; 16 17 public Collection findByTitle(String title) throws FinderException ; 18 19 public Collection findByDirector(String director) throws FinderException ; 20 21 public Collection findByGenre(String genre) throws FinderException ; 22 23 public MovieEntity findByPrimaryKey(Integer key) throws FinderException ; 24 25 public Collection findAllMovies() throws FinderException ; 26 27 } 28 | Popular Tags |