@Entity public class Movie extends Object implements Comparable<Movie>
Modifier and Type | Field and Description |
---|---|
private Set<MovieRole> |
cast |
private Director |
director |
private Set<String> |
genres |
private String |
id |
private Integer |
minutes |
private MovieRating |
mrating |
private String |
plot |
private String |
rating |
private Date |
releaseDate |
private String |
title |
Modifier | Constructor and Description |
---|---|
protected |
Movie() |
|
Movie(String id) |
|
Movie(String id,
Integer minutes,
String rating,
Date releaseDate,
String title) |
Modifier and Type | Method and Description |
---|---|
Movie |
addGenres(String... genre) |
Movie |
addRole(MovieRole... role) |
int |
compareTo(Movie rhs) |
boolean |
equals(Object obj) |
private void |
fromDB() |
Set<MovieRole> |
getCast() |
Director |
getDirector() |
Set<String> |
getGenres() |
String |
getId() |
Integer |
getMinutes() |
String |
getPlot() |
MovieRating |
getRating() |
Date |
getReleaseDate() |
String |
getTitle() |
int |
hashCode() |
protected void |
setCast(Set<MovieRole> cast) |
Movie |
setDirector(Director director) |
Movie |
setGenres(Set<String> genres) |
Movie |
setMinutes(Integer minutes) |
Movie |
setPlot(String plot) |
Movie |
setRating(MovieRating rating) |
Movie |
setReleaseDate(Date releaseDate) |
Movie |
setTitle(String title) |
String |
toString() |
private String id
private String title
private Date releaseDate
private String rating
private MovieRating mrating
private Integer minutes
private String plot
private Director director
protected Movie()
public Movie(String id)
private void fromDB()
public String getId()
public String getTitle()
public Date getReleaseDate()
public MovieRating getRating()
public Movie setRating(MovieRating rating)
public Integer getMinutes()
public String getPlot()
public Director getDirector()
public int compareTo(Movie rhs)
compareTo
in interface Comparable<Movie>
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.