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 long
count()
void
delete(T entity)
void
deleteAll()
void
deleteAll(Iterable<? extends T> entities)
void
deleteById(ID id)
boolean
existsById(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:
findAll
in interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
- Specified by:
findAll
in interfaceMarkLogicRepository<T,ID extends Serializable>
-
findAllById
public Iterable<T> findAllById(Iterable<ID> ids)
- Specified by:
findAllById
in interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
findAll
public List<T> findAll(org.springframework.data.domain.Sort sort)
- Specified by:
findAll
in interfaceMarkLogicRepository<T,ID extends Serializable>
- Specified by:
findAll
in 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:
findAll
in interfaceorg.springframework.data.repository.PagingAndSortingRepository<T,ID extends Serializable>
-
save
public <S extends T> S save(S entity)
- Specified by:
save
in interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
saveAll
public <S extends T> Iterable<S> saveAll(Iterable<S> entities)
- Specified by:
saveAll
in interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
findById
public Optional<T> findById(ID id)
- Specified by:
findById
in interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
existsById
public boolean existsById(ID id)
- Specified by:
existsById
in interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
count
public long count()
- Specified by:
count
in interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
deleteById
public void deleteById(ID id)
- Specified by:
deleteById
in interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
delete
public void delete(T entity)
- Specified by:
delete
in interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
deleteAll
public void deleteAll(Iterable<? extends T> entities)
- Specified by:
deleteAll
in interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
deleteAll
public void deleteAll()
- Specified by:
deleteAll
in interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
-