Class Book

java.lang.Object
com.jahnreil_stratpoint.Book

public class Book extends Object
Represents a book with various attributes such as ID, type, title, author, ISBN, etc.
  • Constructor Details

    • Book

      public Book(int bookid, String bookType, String title, String isbn)
      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

      public Book(int bookid, String bookType, String title, String author, String isbn)
      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

      public String getBookType()
      Gets the type of the book.
      Returns:
      The type of the book.
    • setBookType

      public void setBookType(String bookType)
      Sets the type of the book.
      Parameters:
      bookType - The type of the book.
    • getTitle

      public String getTitle()
      Gets the title of the book.
      Returns:
      The title of the book.
    • setTitle

      public void setTitle(String title)
      Sets the title of the book.
      Parameters:
      title - The title of the book.
    • getAuthor

      public String getAuthor()
      Gets the author(s) of the book.
      Returns:
      The author(s) of the book.
    • setAuthor

      public void setAuthor(String author)
      Sets the author(s) of the book.
      Parameters:
      author - The author(s) of the book.
    • getISBN

      public String getISBN()
      Gets the ISBN of the book.
      Returns:
      The ISBN of the book.
    • setISBN

      public void setISBN(String isbn)
      Sets the ISBN of the book.
      Parameters:
      isbn - The ISBN of the book.
    • getGenre

      public String getGenre()
      Gets the genre of the book.
      Returns:
      The genre of the book.
    • setGenre

      public void setGenre(String genre)
      Sets the genre of the book.
      Parameters:
      genre - The genre of the book.
    • getPublisher

      public String getPublisher()
      Gets the publisher of the book.
      Returns:
      The publisher of the book.
    • setPublisher

      public void setPublisher(String publisher)
      Sets the publisher of the book.
      Parameters:
      publisher - The publisher of the book.
    • getPublicationDate

      public LocalDate getPublicationDate()
      Gets the publication date of the book.
      Returns:
      The publication date of the book.
    • setPublicationDate

      public void setPublicationDate(LocalDate publicationDate)
      Sets the publication date of the book.
      Parameters:
      publicationDate - The publication date of the book.
    • getSynopsis

      public String getSynopsis()
      Gets the synopsis of the book.
      Returns:
      The synopsis of the book.
    • setSynopsis

      public void setSynopsis(String synopsis)
      Sets the synopsis of the book.
      Parameters:
      synopsis - The synopsis of the book.
    • getLanguage

      public String getLanguage()
      Gets the language of the book.
      Returns:
      The language of the book.
    • setLanguage

      public void setLanguage(String language)
      Sets the language of the book.
      Parameters:
      language - The language of the book.