@Entity(name="Story") public class Story extends Object implements Serializable
| Constructor and Description |
|---|
Story(String title,
Author author,
Date dateOfPublish,
Genre genre,
String text,
Theme[] themes) |
Story(String title,
Author author,
Date dateOfPublish,
Genre genre,
String text,
Theme[] themes,
Reading[] readings) |
Story(String title,
Author author,
Genre genre,
String text) |
Story(String title,
Author author,
Genre genre,
String text,
Theme[] themes) |
Story(String title,
Genre genre,
String text) |
| Modifier and Type | Method and Description |
|---|---|
void |
addReading(Reading reading) |
void |
addTheme(Theme theme) |
Author |
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(Author author) |
void |
setDateOfPublish(Date dateOfPublish) |
void |
setGenre(Genre genre) |
void |
setText(String text) |
void |
setTitle(String title) |
public Story(String title, Author author, Date dateOfPublish, Genre genre, String text, Theme[] themes)
public int getId()
public String getTitle()
public void setTitle(String title)
public Author getAuthor()
public void setAuthor(Author 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.