Uses of Class
my.edu.tarc.dco.bookrentalpos.Transaction
| Package | Description |
|---|---|
| my.edu.tarc.dco.bookrentalpos |
-
Uses of Transaction in my.edu.tarc.dco.bookrentalpos
Subclasses of Transaction in my.edu.tarc.dco.bookrentalpos Modifier and Type Class Description classDiscountTransactionClass used to store DiscountTransactionclassRentTransactionClass used to store Rent TransactionclassReserveTransactionClass used to store reserve TransactionclassReturnTransactionClass used to store RentTransactionMethods in my.edu.tarc.dco.bookrentalpos that return Transaction Modifier and Type Method Description TransactionTransactionManager. getBookLastReservedTransaction(Book bk)This function returns Transaction of the last reserve record of a specific bookTransactionTransactionManager. getById(int id)get Transaction by IDTransactionTransactionManager. getByName(String name)Not implemented
Reason: Transaction do not use the name fieldTransaction[]TransactionManager. getCache()Get a cache of the transaction list
Note: for the count of data you should get it from TransactionManager.getTransactionCount()Methods in my.edu.tarc.dco.bookrentalpos that return types with arguments of type Transaction Modifier and Type Method Description ArrayList<Transaction>TransactionManager. getTransactionByDate(Date startDate, Date endDate)This function returns an array list of transactions between specified date rangeArrayList<Transaction>TransactionManager. getTransactionByStaff(Staff staff, Date startDate, Date endDate)This function returns an array list of transactions for specific staff IDArrayList<Transaction>TransactionManager. getTransactionsByMember(Member memID)This function returns an array list of transactions for specific member idArrayList<Transaction>TransactionManager. getTransactionsByMember(Member mem, Date startDate, Date endDate)This function have the same behavior as getTransactionsByMemberID(int) except it accepts startDate and endDate filterMethods in my.edu.tarc.dco.bookrentalpos with parameters of type Transaction Modifier and Type Method Description booleanTransactionManager. add(Transaction trans)this function accepts transaction object where there is no id and date`booleanTransactionManager. remove(Transaction trans)Remove transaction of specific trans from databasebooleanTransactionManager. update(Transaction ref)Update transaction table in database