daoexamples.movie
Interface MovieDAO
- All Known Implementing Classes:
- MovieDAOImpl, MovieDAOImplJTA
- public interface MovieDAO
Movie Data Access Object (DAO)
DAO pattern
- Author:
- Sean C. Sullivan
- See Also:
MovieDAOFactory
findMovieById
public Movie findMovieById(java.lang.String id)
throws MovieNotFoundException
- Parameters:
id
- must be non-null
- Returns:
- a non-null object
- Throws:
MovieNotFoundException
- See Also:
findMoviesByYear(String)
findMoviesByYear
public java.util.Collection findMoviesByYear(java.lang.String year)
- Parameters:
year
- must be non-null
- Returns:
- a Collection that contains zero or more
Movie
objects - See Also:
findMovieById(String)
deleteMovie
public void deleteMovie(java.lang.String id)
throws MovieNotFoundException
- Parameters:
id
- must be non-null
- Throws:
MovieNotFoundException
- See Also:
createMovie(String, String, String)
createMovie
public Movie createMovie(java.lang.String rating,
java.lang.String year,
java.lang.String title)
- Parameters:
rating
- must be non-nullyear
- must be non-nulltitle
- must be non-null
- Returns:
- a non-null
Movie
object - See Also:
deleteMovie(String)
updateMovie
public void updateMovie(java.lang.String id,
java.lang.String rating,
java.lang.String year,
java.lang.String title)
throws MovieNotFoundException
- Parameters:
id
- must be non-nullrating
- must be non-nullyear
- must be non-nulltitle
- must be non-null
- Throws:
MovieNotFoundException
close
public void close()
- See Also:
isClosed()
isClosed
public boolean isClosed()
- See Also:
close()
Copyright © 2003-2004 daoexamples.sourceforge.net. All Rights Reserved.