Interface SolrCrudRepository<T,ID extends Serializable>

Type Parameters:
T -
ID -
All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,ID>, org.springframework.data.repository.PagingAndSortingRepository<T,ID>, org.springframework.data.repository.Repository<T,ID>, SolrRepository<T,ID>
All Known Implementing Classes:
SimpleSolrRepository

public interface SolrCrudRepository<T,ID extends Serializable> extends SolrRepository<T,ID>, org.springframework.data.repository.PagingAndSortingRepository<T,ID>
  • Method Summary

    Modifier and Type
    Method
    Description
    <S extends T>
    S
    save(S entity, Duration commitWithin)
    Saves a given entity and commits withing given Duration.
    <S extends T>
    Iterable<S>
    saveAll(Iterable<S> entities, Duration commitWithin)
    Saves all given entities and commits withing given Duration.

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll, findAll

    Methods inherited from interface org.springframework.data.solr.repository.SolrRepository

    count
  • Method Details

    • save

      <S extends T> S save(S entity, Duration commitWithin)
      Saves a given entity and commits withing given Duration.
      Parameters:
      entity - must not be null.
      Returns:
      the saved entity will never be null.
      Since:
      4.0
    • saveAll

      <S extends T> Iterable<S> saveAll(Iterable<S> entities, Duration commitWithin)
      Saves all given entities and commits withing given Duration.
      Parameters:
      entities - must not be null.
      Returns:
      the saved entity will never be null.
      Since:
      4.0