|
StudentLoanManagement
|
Classes | |
| enum | Status |
Public Member Functions | |
| Loan () | |
| Loan (Long id, Long lender, Long borrower, Long item, Date loanDate, Date estimatedReturnDate, Date realReturnDate, Status loanStatus, Double rating, String observations) | |
| Long | getId () |
| void | setId (Long id) |
| Long | getLender () |
| void | setLender (Long lender) |
| Long | getBorrower () |
| void | setBorrower (Long borrower) |
| Long | getItem () |
| void | setItem (Long item) |
| Date | getLoanDate () |
| void | setLoanDate (Date loanDate) |
| Date | getEstimatedReturnDate () |
| void | setEstimatedReturnDate (Date estimatedReturnDate) |
| Date | getRealReturnDate () |
| void | setRealReturnDate (Date realReturnDate) |
| Status | getLoanStatus () |
| void | setLoanStatus (Status loanStatus) |
| Double | getRating () |
| void | setRating (Double rating) |
| String | getObservations () |
| void | setObservations (String observations) |
| String | toString () |
Entity class representing a loan in the system. Maps to the "loans" table in the database.
| com.student_loan.model.Loan.Loan | ( | ) |
| com.student_loan.model.Loan.Loan | ( | Long | id, |
| Long | lender, | ||
| Long | borrower, | ||
| Long | item, | ||
| Date | loanDate, | ||
| Date | estimatedReturnDate, | ||
| Date | realReturnDate, | ||
| Status | loanStatus, | ||
| Double | rating, | ||
| String | observations | ||
| ) |
Constructor for the Loan class.
| id | The unique identifier for the loan. |
| lender | The ID of the lender. |
| borrower | The ID of the borrower. |
| item | The ID of the item being loaned. |
| loanDate | The date when the loan was initiated. |
| estimatedReturnDate | The estimated return date for the loaned item. |
| realReturnDate | The actual return date for the loaned item. |
| loanStatus | The status of the loan. |
| rating | The rating given for the loan transaction. |
| observations | Additional observations or comments about the loan. |
| Long com.student_loan.model.Loan.getBorrower | ( | ) |
| Date com.student_loan.model.Loan.getEstimatedReturnDate | ( | ) |
| Long com.student_loan.model.Loan.getId | ( | ) |
| Long com.student_loan.model.Loan.getItem | ( | ) |
| Long com.student_loan.model.Loan.getLender | ( | ) |
| Date com.student_loan.model.Loan.getLoanDate | ( | ) |
| Status com.student_loan.model.Loan.getLoanStatus | ( | ) |
| String com.student_loan.model.Loan.getObservations | ( | ) |
| Double com.student_loan.model.Loan.getRating | ( | ) |
| Date com.student_loan.model.Loan.getRealReturnDate | ( | ) |
| void com.student_loan.model.Loan.setBorrower | ( | Long | borrower | ) |
| void com.student_loan.model.Loan.setEstimatedReturnDate | ( | Date | estimatedReturnDate | ) |
| void com.student_loan.model.Loan.setId | ( | Long | id | ) |
| void com.student_loan.model.Loan.setItem | ( | Long | item | ) |
| void com.student_loan.model.Loan.setLender | ( | Long | lender | ) |
| void com.student_loan.model.Loan.setLoanDate | ( | Date | loanDate | ) |
| void com.student_loan.model.Loan.setLoanStatus | ( | Status | loanStatus | ) |
| void com.student_loan.model.Loan.setObservations | ( | String | observations | ) |
| void com.student_loan.model.Loan.setRating | ( | Double | rating | ) |
| void com.student_loan.model.Loan.setRealReturnDate | ( | Date | realReturnDate | ) |
| String com.student_loan.model.Loan.toString | ( | ) |