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
InternalExceptionCardIdAlreadyExistClient 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
InternalExceptionvoid update(Client client) throws InternalException, CardIdAlreadyExist
InternalExceptionCardIdAlreadyExistvoid delete(Client client) throws InternalException
InternalExceptionint countLoans(Client client) throws InternalException
InternalExceptionint countFines(Client client) throws InternalException
InternalExceptionint countVotes(Client client) throws InternalException
InternalExceptionint countCurrentLoans(Client client) throws InternalException
InternalExceptionjava.lang.Boolean validSubscription(Client client) throws InternalException
InternalExceptionint countAll()
throws InternalException
InternalException