@Repository
public class InMemoryEntityRepository
extends java.lang.Object
implements au.com.mountainpass.hyperstate.core.EntityRepository
| Constructor and Description |
|---|
InMemoryEntityRepository() |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<au.com.mountainpass.hyperstate.core.entities.DeletedEntity> |
delete(au.com.mountainpass.hyperstate.core.entities.EntityWrapper<?> entity) |
java.util.concurrent.CompletableFuture<au.com.mountainpass.hyperstate.core.entities.DeletedEntity> |
delete(java.lang.String id) |
java.util.concurrent.CompletableFuture<java.lang.Void> |
deleteAll() |
java.util.concurrent.CompletableFuture<java.lang.Boolean> |
exists(java.lang.String id) |
java.util.concurrent.CompletableFuture<au.com.mountainpass.hyperstate.core.entities.EntityWrapper<?>> |
findOne(java.lang.String identifier) |
<S extends au.com.mountainpass.hyperstate.core.entities.EntityWrapper<?>> |
findOne(java.lang.String path,
java.lang.Class<S> type) |
<S extends au.com.mountainpass.hyperstate.core.entities.EntityWrapper<?>> |
save(S entity) |
public java.util.concurrent.CompletableFuture<au.com.mountainpass.hyperstate.core.entities.DeletedEntity> delete(au.com.mountainpass.hyperstate.core.entities.EntityWrapper<?> entity)
delete in interface au.com.mountainpass.hyperstate.core.EntityRepositorypublic java.util.concurrent.CompletableFuture<au.com.mountainpass.hyperstate.core.entities.DeletedEntity> delete(java.lang.String id)
delete in interface au.com.mountainpass.hyperstate.core.EntityRepositorypublic java.util.concurrent.CompletableFuture<java.lang.Boolean> exists(java.lang.String id)
exists in interface au.com.mountainpass.hyperstate.core.EntityRepositorypublic java.util.concurrent.CompletableFuture<au.com.mountainpass.hyperstate.core.entities.EntityWrapper<?>> findOne(java.lang.String identifier)
findOne in interface au.com.mountainpass.hyperstate.core.EntityRepositorypublic <S extends au.com.mountainpass.hyperstate.core.entities.EntityWrapper<?>> java.util.concurrent.CompletableFuture<S> findOne(java.lang.String path,
java.lang.Class<S> type)
findOne in interface au.com.mountainpass.hyperstate.core.EntityRepositorypublic <S extends au.com.mountainpass.hyperstate.core.entities.EntityWrapper<?>> java.util.concurrent.CompletableFuture<S> save(S entity)
save in interface au.com.mountainpass.hyperstate.core.EntityRepositorypublic java.util.concurrent.CompletableFuture<java.lang.Void> deleteAll()
deleteAll in interface au.com.mountainpass.hyperstate.core.EntityRepository