Package com.embabel.agent.domain
Class InMemoryCrudRepository
-
- All Implemented Interfaces:
-
org.springframework.data.repository.CrudRepository,org.springframework.data.repository.Repository
public class InMemoryCrudRepository<T extends Object> implements CrudRepository<T, String>
Spring Data CrudRepository with in memory storage. Not itself intended for production usage, but can be used in demos to minimize dependencies, and ultimately swapped out for serious use.
-
-
Method Summary
Modifier and Type Method Description <S extends T> Ssave(S entity)<S extends T> Iterable<S>saveAll(Iterable<S> entities)Optional<T>findById(String id)BooleanexistsById(String id)Iterable<T>findAll()Iterable<T>findAllById(Iterable<String> ids)Longcount()UnitdeleteById(String id)Unitdelete(T entity)UnitdeleteAllById(Iterable<String> ids)UnitdeleteAll(Iterable<T> entities)UnitdeleteAll()-
-
Method Detail
-
existsById
Boolean existsById(String id)
-
findAllById
Iterable<T> findAllById(Iterable<String> ids)
-
deleteById
Unit deleteById(String id)
-
deleteAllById
Unit deleteAllById(Iterable<String> ids)
-
-
-
-