|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MovieDatabase
This remote interface allows a client to interact with a database
of Movie objects.
| Method Summary | |
|---|---|
long |
createMovie(String title,
int year)
Creates a new Movie object on the server. |
SortedSet<Movie> |
executeQuery(Query query,
Comparator<Movie> sorter)
Performs a query on the database. |
SortedSet<Movie> |
getFilmography(long actorId)
Returns the movie in which a given actor acted. |
Movie |
getMovie(long id)
Returns the Movie with the given id. |
Collection<Movie> |
getMovies()
Returns all of the movies in the database |
void |
noteCharacter(long movieId,
String character,
long actorId)
Makes note of a character in a given movie played by a given actor. |
void |
shutdown()
Unregisters this MovieDatabase object with the RMI
registry. |
| Method Detail |
|---|
long createMovie(String title,
int year)
throws RemoteException
Movie object on the server. It
returns the id of the movie that was created.
title - The title of the movieyear - The year in which the movie was released
RemoteException
Movie getMovie(long id)
throws RemoteException
Movie with the given id.
RemoteException
void noteCharacter(long movieId,
String character,
long actorId)
throws RemoteException
IllegalArgumentException - The character is already played by someone else
RemoteException
SortedSet<Movie> getFilmography(long actorId)
throws RemoteException
RemoteException
SortedSet<Movie> executeQuery(Query query,
Comparator<Movie> sorter)
throws RemoteException
RemoteException
void shutdown()
throws RemoteException
MovieDatabase object with the RMI
registry. Once it is unregistered, this object will no longer be
accessible.
RemoteException
Collection<Movie> getMovies()
throws RemoteException
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||