Interface NosqlRepository<T,ID extends Serializable>
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,,ID> org.springframework.data.repository.PagingAndSortingRepository<T,,ID> org.springframework.data.repository.Repository<T,ID>
- All Known Implementing Classes:
SimpleNosqlRepository
@NoRepositoryBean
public interface NosqlRepository<T,ID extends Serializable>
extends org.springframework.data.repository.PagingAndSortingRepository<T,ID>, org.springframework.data.repository.CrudRepository<T,ID>
-
Method Summary
Modifier and TypeMethodDescriptionlongcount()voidvoidvoidvoiddeleteById(ID id) booleanexistsById(ID id) findAll()org.springframework.data.domain.Page<T>findAll(org.springframework.data.domain.Pageable pageable) findAll(org.springframework.data.domain.Sort sort) findAllById(Iterable<ID> ids) Returns the configured read request consistency value.Returns the configured request durability value.intReturns the configured request timeout value, in milliseconds, or 0 if it has not been set.<S extends T>
Ssave(S entity) voidsetConsistency(String consistency) Sets the read request consistency value.voidsetDurability(String durability) Sets the request durability value.voidsetTimeout(int milliseconds) Sets the request timeout value, in milliseconds.Methods inherited from interface org.springframework.data.repository.CrudRepository
deleteAllById
-
Method Details
-
findAll
- Specified by:
findAllin interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
save
- Specified by:
savein interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
saveAll
- Specified by:
saveAllin interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
findById
- Specified by:
findByIdin interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
existsById
- Specified by:
existsByIdin interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
findAllById
- Specified by:
findAllByIdin interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
count
long count()- Specified by:
countin interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
deleteById
- Specified by:
deleteByIdin interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
delete
- Specified by:
deletein interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
deleteAll
- Specified by:
deleteAllin interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
deleteAll
void deleteAll()- Specified by:
deleteAllin interfaceorg.springframework.data.repository.CrudRepository<T,ID extends Serializable>
-
findAll
- Specified by:
findAllin interfaceorg.springframework.data.repository.PagingAndSortingRepository<T,ID extends Serializable>
-
findAll
- Specified by:
findAllin interfaceorg.springframework.data.repository.PagingAndSortingRepository<T,ID extends Serializable>
-
getTimeout
int getTimeout()Returns the configured request timeout value, in milliseconds, or 0 if it has not been set. -
setTimeout
void setTimeout(int milliseconds) Sets the request timeout value, in milliseconds. This overrides any default value set in NoSQLHandleConfig. The value must be positive. This set takes precedence over the one set when usingNosqlTable.timeout(). -
getConsistency
String getConsistency()Returns the configured read request consistency value. -
setConsistency
Sets the read request consistency value. The value must be one ofConsistencyvalues. This set takes precedence over the one set when usingNosqlTable.consistency(). -
getDurability
String getDurability()Returns the configured request durability value. -
setDurability
Sets the request durability value. The value must be one of the defined Durability values:Durability.COMMIT_NO_SYNC,Durability.COMMIT_WRITE_NO_SYNCorDurability.COMMIT_SYNC.This set takes precedence over the one set when using
NosqlTable.durability().If null or invalid value is provided durability will be set to
Durability.COMMIT_NO_SYNCNote: This applies to On-Prem installations only.
-