Interface NosqlRepository<T,ID extends Serializable>

All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,ID>, org.springframework.data.repository.PagingAndSortingRepository<T,ID>, org.springframework.data.repository.Repository<T,ID>
All Known Implementing Classes:
SimpleNosqlRepository

@NoRepositoryBean public interface NosqlRepository<T,ID extends Serializable> extends org.springframework.data.repository.PagingAndSortingRepository<T,ID>
  • Method Details

    • findAll

      Iterable<T> findAll()
      Specified by:
      findAll in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
    • save

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

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

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

      boolean existsById(ID id)
      Specified by:
      existsById in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
    • findAllById

      Iterable<T> findAllById(Iterable<ID> ids)
      Specified by:
      findAllById in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
    • count

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

      void deleteById(ID id)
      Specified by:
      deleteById in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
    • delete

      void delete(T entity)
      Specified by:
      delete in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
    • deleteAll

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

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

      Iterable<T> findAll(org.springframework.data.domain.Sort sort)
      Specified by:
      findAll in interface org.springframework.data.repository.PagingAndSortingRepository<T,ID extends Serializable>
    • findAll

      org.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable)
      Specified by:
      findAll in interface org.springframework.data.repository.PagingAndSortingRepository<T,ID extends Serializable>
    • getTimeout

      int getTimeout()
      Returns the configured request timeout value, in milliseconds, or 0 if it has not been set.
    • setTimeout

      void setTimeout(int milliseconds)
      Sets the request timeout value, in milliseconds. This overrides any default value set in NoSQLHandleConfig. The value must be positive. This set takes precedence over the one set when using NosqlTable.timeout().
    • getConsistency

      String getConsistency()
      Returns the configured read request consistency value.
    • setConsistency

      void setConsistency(String consistency)
      Sets the read request consistency value. The value must be one of Consistency values. This set takes precedence over the one set when using NosqlTable.consistency().
    • getDurability

      String getDurability()
      Returns the configured request durability value.
    • setDurability

      void setDurability(String durability)
      Sets the request durability value. The value must be one of the defined Durability values: Durability.COMMIT_NO_SYNC, Durability.COMMIT_WRITE_NO_SYNC or Durability.COMMIT_SYNC.

      This set takes precedence over the one set when using NosqlTable.durability().

      If null or invalid value is provided durability will be set to Durability.COMMIT_NO_SYNC

      Note: This applies to On-Prem installations only.