Package com.jahnreil_stratpoint
Class Book
java.lang.Object
com.jahnreil_stratpoint.Book
Represents a book with various attributes such as ID, type, title, author, ISBN, etc.
-
Constructor Summary
ConstructorDescriptionConstructs a Book object with basic information.Constructs a Book object with author information.Book
(int bookid, String bookType, String title, String author, String isbn, String genre, String publisher, LocalDate publicationDate, String synopsis, String language) Constructs a Book object with detailed information. -
Method Summary
Modifier and TypeMethodDescriptionGets the author(s) of the book.int
Gets the unique identifier of the book.Gets the type of the book.getGenre()
Gets the genre of the book.getISBN()
Gets the ISBN of the book.Gets the language of the book.Gets the publication date of the book.Gets the publisher of the book.Gets the synopsis of the book.getTitle()
Gets the title of the book.void
Sets the author(s) of the book.void
setBookid
(int bookid) Sets the unique identifier of the book.void
setBookType
(String bookType) Sets the type of the book.void
Sets the genre of the book.void
Sets the ISBN of the book.void
setLanguage
(String language) Sets the language of the book.void
setPublicationDate
(LocalDate publicationDate) Sets the publication date of the book.void
setPublisher
(String publisher) Sets the publisher of the book.void
setSynopsis
(String synopsis) Sets the synopsis of the book.void
Sets the title of the book.
-
Constructor Details
-
Book
Constructs a Book object with basic information.- Parameters:
bookid
- The unique identifier of the book.bookType
- The type of the book (e.g., regular, hardback, eBook, audioBook).title
- The title of the book.isbn
- The ISBN (International Standard Book Number) of the book.
-
Book
Constructs a Book object with author information.- Parameters:
bookid
- The unique identifier of the book.bookType
- The type of the book (e.g., regular, hardback, eBook, audioBook).title
- The title of the book.author
- The author(s) of the book.isbn
- The ISBN (International Standard Book Number) of the book.
-
Book
public Book(int bookid, String bookType, String title, String author, String isbn, String genre, String publisher, LocalDate publicationDate, String synopsis, String language) Constructs a Book object with detailed information.- Parameters:
bookid
- The unique identifier of the book.bookType
- The type of the book (e.g., regular, hardback, eBook, audioBook).title
- The title of the book.author
- The author(s) of the book.isbn
- The ISBN (International Standard Book Number) of the book.genre
- The genre of the book.publisher
- The publisher of the book.publicationDate
- The publication date of the book.synopsis
- A brief summary or synopsis of the book.language
- The language of the book.
-
-
Method Details
-
getBookid
public int getBookid()Gets the unique identifier of the book.- Returns:
- The unique identifier of the book.
-
setBookid
public void setBookid(int bookid) Sets the unique identifier of the book.- Parameters:
bookid
- The unique identifier of the book.
-
getBookType
Gets the type of the book.- Returns:
- The type of the book.
-
setBookType
Sets the type of the book.- Parameters:
bookType
- The type of the book.
-
getTitle
Gets the title of the book.- Returns:
- The title of the book.
-
setTitle
Sets the title of the book.- Parameters:
title
- The title of the book.
-
getAuthor
Gets the author(s) of the book.- Returns:
- The author(s) of the book.
-
setAuthor
Sets the author(s) of the book.- Parameters:
author
- The author(s) of the book.
-
getISBN
Gets the ISBN of the book.- Returns:
- The ISBN of the book.
-
setISBN
Sets the ISBN of the book.- Parameters:
isbn
- The ISBN of the book.
-
getGenre
Gets the genre of the book.- Returns:
- The genre of the book.
-
setGenre
Sets the genre of the book.- Parameters:
genre
- The genre of the book.
-
getPublisher
Gets the publisher of the book.- Returns:
- The publisher of the book.
-
setPublisher
Sets the publisher of the book.- Parameters:
publisher
- The publisher of the book.
-
getPublicationDate
Gets the publication date of the book.- Returns:
- The publication date of the book.
-
setPublicationDate
Sets the publication date of the book.- Parameters:
publicationDate
- The publication date of the book.
-
getSynopsis
Gets the synopsis of the book.- Returns:
- The synopsis of the book.
-
setSynopsis
Sets the synopsis of the book.- Parameters:
synopsis
- The synopsis of the book.
-
getLanguage
Gets the language of the book.- Returns:
- The language of the book.
-
setLanguage
Sets the language of the book.- Parameters:
language
- The language of the book.
-