public abstract class AbstractDocumentRepositoryAsync<T,ID> extends Object implements RepositoryAsync<T,ID>
RepositoryAsync template method| Constructor and Description |
|---|
AbstractDocumentRepositoryAsync() |
| Modifier and Type | Method and Description |
|---|---|
void |
count(Consumer<Long> callback) |
void |
deleteById(ID id) |
void |
existsById(ID id,
Consumer<Boolean> callBack) |
void |
findById(ID id,
Consumer<Optional<T>> callBack) |
protected abstract ClassRepresentation |
getClassRepresentation() |
protected abstract Reflections |
getReflections() |
protected abstract DocumentTemplateAsync |
getTemplate() |
<S extends T> |
save(Iterable<S> entities) |
<S extends T> |
save(S entity) |
protected abstract DocumentTemplateAsync getTemplate()
protected abstract Reflections getReflections()
protected abstract ClassRepresentation getClassRepresentation()
public <S extends T> void save(S entity)
save in interface RepositoryAsync<T,ID>public <S extends T> void save(Iterable<S> entities)
save in interface RepositoryAsync<T,ID>public void deleteById(ID id)
deleteById in interface RepositoryAsync<T,ID>public void existsById(ID id, Consumer<Boolean> callBack)
existsById in interface RepositoryAsync<T,ID>public void findById(ID id, Consumer<Optional<T>> callBack)
findById in interface RepositoryAsync<T,ID>Copyright © 2018. All rights reserved.