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
InternalException
CardIdAlreadyExist
public void update(Client client) throws InternalException, CardIdAlreadyExist
InternalException
CardIdAlreadyExist
public void delete(Client client) throws InternalException
InternalException
public Client findByCardId(java.lang.String cardId) throws InternalException, NoClientFoundException
public Client[] findAll() throws InternalException
InternalException
public int countLoans(Client client) throws InternalException
InternalException
public int countFines(Client client) throws InternalException
InternalException
public int countVotes(Client client) throws InternalException
InternalException
public int countCurrentLoans(Client client) throws InternalException
InternalException
public java.lang.Boolean validSubscription(Client client) throws InternalException
InternalException
public int countAll() throws InternalException
InternalException