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 TypeMethodDescriptionvoid
Clears the prepared statements cache.long
count()
void
void
void
void
deleteById
(ID id) boolean
existsById
(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.int
Returns the configured request timeout value, in milliseconds, or 0 if it has not been set.<S extends T>
Ssave
(S entity) void
setConsistency
(String consistency) Sets the read request consistency value.void
setDurability
(String durability) Sets the request durability value.void
setTimeout
(int milliseconds) Sets the request timeout value, in milliseconds.Methods inherited from interface org.springframework.data.repository.CrudRepository
deleteAllById
-
Method Details
-
findAll
- Specified by:
findAll
in interfaceorg.springframework.data.repository.CrudRepository<T,
ID extends Serializable>
-
save
- Specified by:
save
in interfaceorg.springframework.data.repository.CrudRepository<T,
ID extends Serializable>
-
saveAll
- Specified by:
saveAll
in interfaceorg.springframework.data.repository.CrudRepository<T,
ID extends Serializable>
-
findById
- Specified by:
findById
in interfaceorg.springframework.data.repository.CrudRepository<T,
ID extends Serializable>
-
existsById
- Specified by:
existsById
in interfaceorg.springframework.data.repository.CrudRepository<T,
ID extends Serializable>
-
findAllById
- Specified by:
findAllById
in interfaceorg.springframework.data.repository.CrudRepository<T,
ID extends Serializable>
-
count
long count()- Specified by:
count
in interfaceorg.springframework.data.repository.CrudRepository<T,
ID extends Serializable>
-
deleteById
- Specified by:
deleteById
in interfaceorg.springframework.data.repository.CrudRepository<T,
ID extends Serializable>
-
delete
- Specified by:
delete
in interfaceorg.springframework.data.repository.CrudRepository<T,
ID extends Serializable>
-
deleteAll
- Specified by:
deleteAll
in interfaceorg.springframework.data.repository.CrudRepository<T,
ID extends Serializable>
-
deleteAll
void deleteAll()- Specified by:
deleteAll
in interfaceorg.springframework.data.repository.CrudRepository<T,
ID extends Serializable>
-
findAll
- Specified by:
findAll
in interfaceorg.springframework.data.repository.PagingAndSortingRepository<T,
ID extends Serializable>
-
findAll
- Specified by:
findAll
in 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 ofConsistency
values. 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_SYNC
orDurability.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_SYNC
Note: This applies to On-Prem installations only.
-
clearPreparedStatementsCache
void clearPreparedStatementsCache()Clears the prepared statements cache.
-