Interface ClientRepository

All Known Implementing Classes:
ClientMongoRepository, ClientPostgresRepository

public interface ClientRepository
Facade of repository layer for Client entities.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(Client client)
    Removes the unique specified client from the database, if it exists, otherwise it does nothing.
    Retrieves all the clients from the database in a list.
    Retrieves the unique client with the specified identifier from the database, if it exists.
    findByName(String firstName, String lastName)
    Retrieves the unique client with the specified name and surname from the database, if it exists.
    save(Client client)
    Inserts a new Client in the database or saves changes of an existing one.