public class ClientsFacade extends Facade
| Constructor and Description |
|---|
ClientsFacade(DAOFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
int |
countAll() |
int |
countCurrentLoans(Client client) |
int |
countFines(Client client) |
int |
countLoans(Client client) |
int |
countVotes(Client client) |
Client |
create(Client client) |
void |
delete(Client client) |
Client[] |
findAll() |
Client |
findByCardId(java.lang.String cardId) |
void |
update(Client client) |
java.lang.Boolean |
validSubscription(Client client) |
public ClientsFacade(DAOFactory factory)
public Client create(Client client) throws InternalException, CardIdAlreadyExist
InternalExceptionCardIdAlreadyExistpublic void update(Client client) throws InternalException, CardIdAlreadyExist
InternalExceptionCardIdAlreadyExistpublic void delete(Client client) throws InternalException
InternalExceptionpublic Client findByCardId(java.lang.String cardId) throws InternalException, NoClientFoundException
public Client[] findAll() throws InternalException
InternalExceptionpublic int countLoans(Client client) throws InternalException
InternalExceptionpublic int countFines(Client client) throws InternalException
InternalExceptionpublic int countVotes(Client client) throws InternalException
InternalExceptionpublic int countCurrentLoans(Client client) throws InternalException
InternalExceptionpublic java.lang.Boolean validSubscription(Client client) throws InternalException
InternalExceptionpublic int countAll()
throws InternalException
InternalException