@Entity(name="Story") public class Story extends Object implements Serializable
| Constructor and Description |
|---|
Story(String title,
String author,
Date dateOfPublish,
Genre genre,
String text,
Theme[] themes) |
Story(String title,
String author,
Date dateOfPublish,
Genre genre,
String text,
Theme[] themes,
Reading[] readings) |
Story(String title,
String author,
Genre genre,
String text) |
Story(String title,
String author,
Genre genre,
String text,
Theme[] themes) |
| Modifier and Type | Method and Description |
|---|---|
void |
addReading(Reading reading) |
void |
addTheme(Theme theme) |
String |
getAuthor() |
Date |
getDateOfPublish() |
Genre |
getGenre() |
int |
getId() |
Collection<Reading> |
getReadings() |
String |
getText() |
Collection<Theme> |
getThemes() |
String |
getTitle() |
boolean |
ownsReading(Reading reading) |
boolean |
ownsTheme(Theme theme) |
void |
removeTheme(Theme theme) |
void |
setAuthor(String author) |
void |
setDateOfPublish(Date dateOfPublish) |
void |
setGenre(Genre genre) |
void |
setText(String text) |
void |
setTitle(String title) |
String |
toString() |
public Story(String title, String author, Date dateOfPublish, Genre genre, String text, Theme[] themes)
public int getId()
public String getTitle()
public void setTitle(String title)
public String getAuthor()
public void setAuthor(String author)
public Date getDateOfPublish()
public void setDateOfPublish(Date dateOfPublish)
public String getText()
public void setText(String text)
public Genre getGenre()
public void setGenre(Genre genre)
public Collection<Theme> getThemes()
public void addTheme(Theme theme)
public void removeTheme(Theme theme)
public boolean ownsTheme(Theme theme)
public Collection<Reading> getReadings()
public void addReading(Reading reading)
public boolean ownsReading(Reading reading)
Copyright © 2018. All rights reserved.