@Entity public class Story extends Object
| Constructor and Description |
|---|
Story() |
Story(Long id,
String title,
String author,
Genre genre,
Theme themeA,
Theme themeB,
Date publicationDate,
String content) |
Story(String title,
String author,
Genre genre,
Theme themeA,
Theme themeB,
Date publicationDate,
String content) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRead(Date readDate) |
String |
getAuthor() |
String |
getContent() |
Genre |
getGenre() |
Long |
getId() |
static int |
getMaxAuthorLength() |
static int |
getMaxContentLength() |
static int |
getMaxTitleLength() |
int |
getNumReads() |
Date |
getPublicationDate() |
List<Date> |
getReads() |
Theme |
getThemeA() |
Theme |
getThemeB() |
String |
getTitle() |
void |
setAuthor(String author) |
void |
setContent(String content) |
void |
setGenre(Genre genre) |
void |
setId(Long id) |
void |
setPublicationDate(Date publicationDate) |
void |
setReads(List<Date> reads) |
void |
setThemeA(Theme themeA) |
void |
setThemeB(Theme themeB) |
void |
setTitle(String title) |
public Story()
public Story(String title, String author, Genre genre, Theme themeA, Theme themeB, Date publicationDate, String content) throws IllegalArgumentException
IllegalArgumentExceptionpublic Story(Long id, String title, String author, Genre genre, Theme themeA, Theme themeB, Date publicationDate, String content) throws IllegalArgumentException
IllegalArgumentExceptionpublic Long getId()
public void setId(Long id)
public String getTitle()
public void setTitle(String title)
public String getAuthor()
public void setAuthor(String author)
public Genre getGenre()
public void setGenre(Genre genre)
public Theme getThemeA()
public void setThemeA(Theme themeA)
public Theme getThemeB()
public void setThemeB(Theme themeB)
public Date getPublicationDate()
public void setPublicationDate(Date publicationDate)
public String getContent()
public void setContent(String content)
public void addRead(Date readDate)
public int getNumReads()
public static int getMaxTitleLength()
public static int getMaxAuthorLength()
public static int getMaxContentLength()
Copyright © 2024. All rights reserved.