Interface ClienteRepositorio

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<Cliente,​java.lang.Long>, org.springframework.data.jpa.repository.JpaRepository<Cliente,​java.lang.Long>, org.springframework.data.repository.PagingAndSortingRepository<Cliente,​java.lang.Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Cliente>, org.springframework.data.repository.Repository<Cliente,​java.lang.Long>

    public interface ClienteRepositorio
    extends org.springframework.data.jpa.repository.JpaRepository<Cliente,​java.lang.Long>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<Cliente> buscaporstatus​(StatusCliente status)  
      java.util.List<Cliente> buscarinativos​(StatusCliente arguardando_contato, StatusCliente sem_simulacao, StatusCliente negado)  
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findOne
    • Method Detail

      • buscarinativos

        @Query("select c from Cliente c where c.status = :arguardando_contato or c.status = :sem_simulacao or c.status = :negado")
        java.util.List<Cliente> buscarinativos​(StatusCliente arguardando_contato,
                                               StatusCliente sem_simulacao,
                                               StatusCliente negado)
      • buscaporstatus

        @Query("select c from Cliente c where c.status = :status")
        java.util.List<Cliente> buscaporstatus​(StatusCliente status)