Interface DatastoreRepository<T,I>

Type Parameters:
T - the type of the domain object
I - the type of the ID property in the domain object
All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,I>, org.springframework.data.repository.PagingAndSortingRepository<T,I>, org.springframework.data.repository.query.QueryByExampleExecutor<T>, org.springframework.data.repository.Repository<T,I>
All Known Implementing Classes:
SimpleDatastoreRepository

public interface DatastoreRepository<T,I> extends org.springframework.data.repository.PagingAndSortingRepository<T,I>, org.springframework.data.repository.query.QueryByExampleExecutor<T>, org.springframework.data.repository.CrudRepository<T,I>
A PagingAndSortingRepository that provides Datastore-specific functionality.
Since:
1.1
  • Method Summary

    Modifier and Type
    Method
    Description
    <A> A
    Performs multiple read and write operations in a single transaction.

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

    count, 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.repository.query.QueryByExampleExecutor

    count, exists, findAll, findAll, findAll, findBy, findOne
  • Method Details

    • performTransaction

      <A> A performTransaction(Function<DatastoreRepository<T,I>,A> operations)
      Performs multiple read and write operations in a single transaction.
      Type Parameters:
      A - the final return type of the operations.
      Parameters:
      operations - the function representing the operations to perform using a DatastoreRepository based on a single transaction.
      Returns:
      the final result of the transaction.