public class LoansFacade extends Facade
| Constructor and Description |
|---|
LoansFacade(DAOFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
int |
countAll() |
void |
create(Loan loan) |
Loan[] |
findAll(java.lang.String idCard) |
Loan[] |
findByCardId(java.lang.String idCard) |
Loan[] |
findCurrentLoans(java.lang.String idCard) |
Loan |
getLatestLoanByItemId(int idItem) |
public LoansFacade(DAOFactory factory)
public void create(Loan loan) throws InternalException
InternalExceptionpublic Loan[] findByCardId(java.lang.String idCard) throws InternalException, NoClientFoundException
public Loan[] findAll(java.lang.String idCard) throws InternalException
InternalExceptionpublic Loan getLatestLoanByItemId(int idItem) throws InternalException, NoLibraryItemFoundException, NoLoanFoundException
public int countAll()
throws InternalException
InternalExceptionpublic Loan[] findCurrentLoans(java.lang.String idCard) throws InternalException
InternalException