public interface ClientDAO
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) |
Client |
findById(int idClient) |
void |
update(Client client) |
java.lang.Boolean |
validSubscription(Client client) |
Client create(Client client) throws InternalException, CardIdAlreadyExist
InternalException
CardIdAlreadyExist
Client findById(int idClient) throws InternalException, NoClientFoundException
Client findByCardID(java.lang.String cardID) throws InternalException, NoClientFoundException
cardID
- the card ID of the client to findInternalException
- if an unexpected error occursNoClientFoundException
- if no client with the given card ID was foundClient[] findAll() throws InternalException
InternalException
void update(Client client) throws InternalException, CardIdAlreadyExist
InternalException
CardIdAlreadyExist
void delete(Client client) throws InternalException
InternalException
int countLoans(Client client) throws InternalException
InternalException
int countFines(Client client) throws InternalException
InternalException
int countVotes(Client client) throws InternalException
InternalException
int countCurrentLoans(Client client) throws InternalException
InternalException
java.lang.Boolean validSubscription(Client client) throws InternalException
InternalException
int countAll() throws InternalException
InternalException