public abstract class AbstractDocumentRepository<T,ID> extends Object implements Repository<T,ID>
Repository template method| Constructor and Description |
|---|
AbstractDocumentRepository() |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
void |
deleteById(ID id) |
void |
deleteById(Iterable<ID> ids) |
boolean |
existsById(ID id) |
Optional<T> |
findById(ID id) |
Iterable<T> |
findById(Iterable<ID> ids) |
protected abstract ClassRepresentation |
getClassRepresentation() |
protected abstract Reflections |
getReflections() |
protected abstract DocumentTemplate |
getTemplate() |
<S extends T> |
save(Iterable<S> entities) |
<S extends T> |
save(S entity) |
protected abstract DocumentTemplate getTemplate()
protected abstract ClassRepresentation getClassRepresentation()
protected abstract Reflections getReflections()
public <S extends T> S save(S entity)
save in interface Repository<T,ID>public <S extends T> Iterable<S> save(Iterable<S> entities)
save in interface Repository<T,ID>public void deleteById(ID id)
deleteById in interface Repository<T,ID>public void deleteById(Iterable<ID> ids)
deleteById in interface Repository<T,ID>public Iterable<T> findById(Iterable<ID> ids)
findById in interface Repository<T,ID>public long count()
count in interface Repository<T,ID>public boolean existsById(ID id)
existsById in interface Repository<T,ID>Copyright © 2018. All rights reserved.