@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,
Genre genre,
String text) |
Story(String title,
String author,
Genre genre,
String text,
int readCount,
Theme... themes) |
Story(String title,
String author,
Genre genre,
String text,
Theme... themes) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTheme(Theme theme) |
String |
getAuthor() |
Date |
getDateOfPublish() |
Genre |
getGenre() |
int |
getId() |
int |
getReadCount() |
String |
getText() |
Collection<Theme> |
getThemes() |
String |
getTitle() |
void |
incrementReadCount() |
boolean |
ownsTheme(Theme theme) |
void |
removeTheme(Theme theme) |
void |
setAuthor(String author) |
void |
setDateOfPublish(Date dateOfPublish) |
void |
setGenre(Genre genre) |
void |
setReadCount(int readCount) |
void |
setText(String text) |
void |
setTitle(String title) |
String |
toString() |
public Story(String title, String author, Genre genre, String text, int readCount, 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 int getReadCount()
public void setReadCount(int readCount)
public void incrementReadCount()
Copyright © 2018. All rights reserved.