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

Method Summary
 void close()
           
 Movie createMovie(java.lang.String rating, java.lang.String year, java.lang.String title)
           
 void deleteMovie(java.lang.String id)
           
 Movie findMovieById(java.lang.String id)
           
 java.util.Collection findMoviesByYear(java.lang.String year)
           
 boolean isClosed()
           
 void updateMovie(java.lang.String id, java.lang.String rating, java.lang.String year, java.lang.String title)
           
 

Method Detail

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-null
year - must be non-null
title - 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-null
rating - must be non-null
year - must be non-null
title - 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.