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
InternalException
public Loan[] findByCardId(java.lang.String idCard) throws InternalException, NoClientFoundException
public Loan[] findAll(java.lang.String idCard) throws InternalException
InternalException
public Loan getLatestLoanByItemId(int idItem) throws InternalException, NoLibraryItemFoundException, NoLoanFoundException
public int countAll() throws InternalException
InternalException
public Loan[] findCurrentLoans(java.lang.String idCard) throws InternalException
InternalException