Class SimpleEclipseStoreRepository<T,ID>

java.lang.Object
software.xdev.spring.data.eclipse.store.repository.support.SimpleEclipseStoreRepository<T,ID>
All Implemented Interfaces:
org.springframework.data.repository.CrudRepository<T,ID>, org.springframework.data.repository.ListCrudRepository<T,ID>, org.springframework.data.repository.ListPagingAndSortingRepository<T,ID>, org.springframework.data.repository.PagingAndSortingRepository<T,ID>, org.springframework.data.repository.query.QueryByExampleExecutor<T>, org.springframework.data.repository.Repository<T,ID>, EclipseStoreCrudRepository<T,ID>, EclipseStoreListCrudRepository<T,ID>, EclipseStoreListPagingAndSortingRepositoryRepository<T,ID>, EclipseStorePagingAndSortingRepositoryRepository<T,ID>, EclipseStoreQueryByExampleExecutor<T>, EclipseStoreRepository<T,ID>

  • Constructor Details

  • Method Details

    • saveBulk

      public <S extends T> List<S> saveBulk(Collection<S> entities)
    • save

      @Nonnull public <S extends T> S save(@Nonnull S entity)
      Specified by:
      save in interface org.springframework.data.repository.CrudRepository<T,ID>
    • saveAll

      @Nonnull public <S extends T> List<S> saveAll(@Nonnull Iterable<S> entities)
      Specified by:
      saveAll in interface org.springframework.data.repository.CrudRepository<T,ID>
      Specified by:
      saveAll in interface org.springframework.data.repository.ListCrudRepository<T,ID>
    • findById

      @Nonnull public Optional<T> findById(@Nonnull ID id)
      Specified by:
      findById in interface org.springframework.data.repository.CrudRepository<T,ID>
    • existsById

      public boolean existsById(@Nonnull ID id)
      Specified by:
      existsById in interface org.springframework.data.repository.CrudRepository<T,ID>
    • findAll

      @Nonnull public List<T> findAll()
      Specified by:
      findAll in interface org.springframework.data.repository.CrudRepository<T,ID>
      Specified by:
      findAll in interface org.springframework.data.repository.ListCrudRepository<T,ID>
    • findAllById

      @Nonnull public List<T> findAllById(@Nonnull Iterable<ID> idsToFind)
      Specified by:
      findAllById in interface org.springframework.data.repository.CrudRepository<T,ID>
      Specified by:
      findAllById in interface org.springframework.data.repository.ListCrudRepository<T,ID>
    • count

      public long count()
      Specified by:
      count in interface org.springframework.data.repository.CrudRepository<T,ID>
    • deleteById

      public void deleteById(@Nonnull ID id)
      Specified by:
      deleteById in interface org.springframework.data.repository.CrudRepository<T,ID>
      Specified by:
      deleteById in interface EclipseStoreCrudRepository<T,ID>
      Specified by:
      deleteById in interface EclipseStoreListCrudRepository<T,ID>
    • delete

      public void delete(@Nonnull T entity)
      Specified by:
      delete in interface org.springframework.data.repository.CrudRepository<T,ID>
      Specified by:
      delete in interface EclipseStoreCrudRepository<T,ID>
      Specified by:
      delete in interface EclipseStoreListCrudRepository<T,ID>
    • deleteAllById

      public void deleteAllById(Iterable<? extends ID> ids)
      Specified by:
      deleteAllById in interface org.springframework.data.repository.CrudRepository<T,ID>
      Specified by:
      deleteAllById in interface EclipseStoreCrudRepository<T,ID>
      Specified by:
      deleteAllById in interface EclipseStoreListCrudRepository<T,ID>
    • deleteAll

      public void deleteAll(Iterable<? extends T> entities)
      Specified by:
      deleteAll in interface org.springframework.data.repository.CrudRepository<T,ID>
      Specified by:
      deleteAll in interface EclipseStoreCrudRepository<T,ID>
      Specified by:
      deleteAll in interface EclipseStoreListCrudRepository<T,ID>
    • deleteAll

      public void deleteAll()
      Specified by:
      deleteAll in interface org.springframework.data.repository.CrudRepository<T,ID>
      Specified by:
      deleteAll in interface EclipseStoreCrudRepository<T,ID>
      Specified by:
      deleteAll in interface EclipseStoreListCrudRepository<T,ID>
    • findAll

      @Nonnull public List<T> findAll(@Nonnull org.springframework.data.domain.Sort sort)
      Specified by:
      findAll in interface org.springframework.data.repository.ListPagingAndSortingRepository<T,ID>
      Specified by:
      findAll in interface org.springframework.data.repository.PagingAndSortingRepository<T,ID>
    • findAll

      @Nonnull public org.springframework.data.domain.Page<T> findAll(@Nonnull org.springframework.data.domain.Pageable pageable)
      Specified by:
      findAll in interface org.springframework.data.repository.PagingAndSortingRepository<T,ID>
    • findOne

      public <S extends T> Optional<S> findOne(org.springframework.data.domain.Example<S> example)
      Specified by:
      findOne in interface org.springframework.data.repository.query.QueryByExampleExecutor<T>
    • findAll

      public <S extends T> Iterable<S> findAll(org.springframework.data.domain.Example<S> example)
      Specified by:
      findAll in interface org.springframework.data.repository.query.QueryByExampleExecutor<T>
    • findAll

      public <S extends T> Iterable<S> findAll(org.springframework.data.domain.Example<S> example, org.springframework.data.domain.Sort sort)
      Specified by:
      findAll in interface org.springframework.data.repository.query.QueryByExampleExecutor<T>
    • findAll

      public <S extends T> org.springframework.data.domain.Page<S> findAll(org.springframework.data.domain.Example<S> example, org.springframework.data.domain.Pageable pageable)
      Specified by:
      findAll in interface org.springframework.data.repository.query.QueryByExampleExecutor<T>
    • count

      public <S extends T> long count(org.springframework.data.domain.Example<S> example)
      Specified by:
      count in interface org.springframework.data.repository.query.QueryByExampleExecutor<T>
    • exists

      public <S extends T> boolean exists(org.springframework.data.domain.Example<S> example)
      Specified by:
      exists in interface org.springframework.data.repository.query.QueryByExampleExecutor<T>
    • findBy

      public <S extends T, R> R findBy(org.springframework.data.domain.Example<S> example, Function<org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<S>,R> queryFunction)
      Specified by:
      findBy in interface org.springframework.data.repository.query.QueryByExampleExecutor<T>