Class SimpleMarkLogicRepository<T,ID extends Serializable>
- java.lang.Object
-
- io.github.malteseduck.springframework.data.marklogic.repository.support.SimpleMarkLogicRepository<T,ID>
-
- All Implemented Interfaces:
MarkLogicRepository<T,ID>,org.springframework.data.repository.CrudRepository<T,ID>,org.springframework.data.repository.PagingAndSortingRepository<T,ID>,org.springframework.data.repository.Repository<T,ID>
public class SimpleMarkLogicRepository<T,ID extends Serializable> extends Object implements MarkLogicRepository<T,ID>
-
-
Constructor Summary
Constructors Constructor Description SimpleMarkLogicRepository(MarkLogicEntityInformation<T,ID> metadata, MarkLogicOperations operations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcount()voiddelete(T entity)voiddeleteAll()voiddeleteAll(Iterable<? extends T> entities)voiddeleteById(ID id)booleanexistsById(ID id)List<T>findAll()org.springframework.data.domain.Page<T>findAll(org.springframework.data.domain.Pageable pageable)List<T>findAll(org.springframework.data.domain.Sort sort)Iterable<T>findAllById(Iterable<ID> ids)Optional<T>findById(ID id)<S extends T>
Ssave(S entity)<S extends T>
Iterable<S>saveAll(Iterable<S> entities)
-
-
-
Constructor Detail
-
SimpleMarkLogicRepository
public SimpleMarkLogicRepository(MarkLogicEntityInformation<T,ID> metadata, MarkLogicOperations operations)
-
-
Method Detail
-
findAll
public List<T> findAll()
- Specified by:
findAllin interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>- Specified by:
findAllin interfaceMarkLogicRepository<T,ID extends Serializable>
-
findAllById
public Iterable<T> findAllById(Iterable<ID> ids)
- Specified by:
findAllByIdin interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
findAll
public List<T> findAll(org.springframework.data.domain.Sort sort)
- Specified by:
findAllin interfaceMarkLogicRepository<T,ID extends Serializable>- Specified by:
findAllin interfaceorg.springframework.data.repository.PagingAndSortingRepository<T,ID extends Serializable>
-
findAll
public org.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable)
- Specified by:
findAllin interfaceorg.springframework.data.repository.PagingAndSortingRepository<T,ID extends Serializable>
-
save
public <S extends T> S save(S entity)
- Specified by:
savein interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
saveAll
public <S extends T> Iterable<S> saveAll(Iterable<S> entities)
- Specified by:
saveAllin interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
findById
public Optional<T> findById(ID id)
- Specified by:
findByIdin interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
existsById
public boolean existsById(ID id)
- Specified by:
existsByIdin interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
count
public long count()
- Specified by:
countin interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
deleteById
public void deleteById(ID id)
- Specified by:
deleteByIdin interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
delete
public void delete(T entity)
- Specified by:
deletein interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
deleteAll
public void deleteAll(Iterable<? extends T> entities)
- Specified by:
deleteAllin interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
deleteAll
public void deleteAll()
- Specified by:
deleteAllin interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
-