Uses of Class
my.edu.tarc.dco.bookrentalpos.Book
| Package | Description |
|---|---|
| bookrentalpos | |
| my.edu.tarc.dco.bookrentalpos |
-
Uses of Book in bookrentalpos
Methods in bookrentalpos with parameters of type Book Modifier and Type Method Description voidBookManagerController. loadDataToEdit(Book bookToEdit)Referring to the fields in the Edit Pop up -
Uses of Book in my.edu.tarc.dco.bookrentalpos
Methods in my.edu.tarc.dco.bookrentalpos that return Book Modifier and Type Method Description BookTransaction. getBookInvolved()BookBookManager. getById(int bookID)Get the reference to the book object with specified IDBookBookManager. getByName(String name)Get the reference to the book object with specified NameBook[]BookManager. getCache()Get a copy of the booklist array
For now, you should use BookManager.getBookCount() to get the array sizeMethods in my.edu.tarc.dco.bookrentalpos that return types with arguments of type Book Modifier and Type Method Description ArrayList<Book>BookManager. getBooksRentedByMember(Member mem)This function returns an array list of reference to the books record where it is currently rented by specifed memberArrayList<Book>TransactionManager. getMemberActiveReservations(Member mem)This function return an array list of books currently reserved by this memberMethods in my.edu.tarc.dco.bookrentalpos with parameters of type Book Modifier and Type Method Description booleanBookManager. add(Book book)Add new book entry to the databaseRentTransactionTransactionManager. getBookLastRentTransaction(Book bk)This function returns transaction of the last renting record of a specific bookTransactionTransactionManager. getBookLastReservedTransaction(Book bk)This function returns Transaction of the last reserve record of a specific bookbooleanBookManager. remove(Book book)Remove the book from the database
NOTE: All the related table will have this book removed as wellvoidTransaction. setBookInvovled(Book bookInvovled)booleanBookManager. update(Book bk)Update the book entry into databaseConstructors in my.edu.tarc.dco.bookrentalpos with parameters of type Book Constructor Description DiscountTransaction(int id, String date, TransactionType type, Staff staff, Member memberInvolved, Book bookInvolved, double cashFlow)Constructor used for importing data from database
DO NOT use this to create new TransactionRentTransaction(int id, String date, TransactionType type, Staff staff, Member memberInvolved, Book bookInvolved, double cashFlow, int rentDurationInDays)Constructor used to import from database
DO NOT use it to create new RentTransactionRentTransaction(Staff staff, Member memberInvolved, Book bookInvolved, int rentDurationInDays, double cashFlow)Constructor used to create a new RentTransactionReserveTransaction(int id, String date, TransactionType type, Staff staff, Member memberInvolved, Book bookInvolved, double cashFlow)Constructor used for importing data from database
DO NOT use this to create new TransactionReserveTransaction(Staff staff, Member memberInvolved, Book bookInvolved)Constructor for Reserve TransactionReturnTransaction(int id, String date, TransactionType type, Staff staff, Member memberInvolved, Book bookInvolved, double cashFlow)Constructor used for importing data from database
DO NOT use this to create new TransactionReturnTransaction(Staff staff, Member memberInvolved, Book bookInvolved, double cashFlow)Constructor used for ReturntransactionTransaction(int id, String date, TransactionType type, Staff staff, Member memberInvolved, Book bookInvolved, double cashFlow)Constructor used for importing data from database
DO NOT use this to create new TransactionTransaction(Staff staff, Member memberInvovled, Book bookInvovled)Constructor for every Transaction