public class SimpleSpannerRepository extends Object implements SpannerRepository
| Constructor and Description |
|---|
SimpleSpannerRepository(SpannerOperations spannerOperations,
Class entityType) |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
void |
delete(Object entity) |
void |
deleteAll() |
void |
deleteAll(Iterable entities) |
void |
deleteById(Object key) |
boolean |
existsById(Object key) |
Iterable |
findAll() |
org.springframework.data.domain.Page |
findAll(org.springframework.data.domain.Pageable pageable) |
Iterable |
findAll(org.springframework.data.domain.Sort sort) |
Iterable |
findAllById(Iterable iterable) |
Optional |
findById(Object key) |
SpannerOperations |
getSpannerOperations()
Gets a
SpannerOperations, which allows more-direct access to Google Spanner
functions. |
Object |
save(Object entity) |
Iterable |
saveAll(Iterable entities) |
public SimpleSpannerRepository(SpannerOperations spannerOperations, Class entityType)
public SpannerOperations getSpannerOperations()
SpannerRepositorySpannerOperations, which allows more-direct access to Google Spanner
functions.getSpannerOperations in interface SpannerRepositorypublic Object save(Object entity)
save in interface org.springframework.data.repository.CrudRepositorypublic Iterable saveAll(Iterable entities)
saveAll in interface org.springframework.data.repository.CrudRepositorypublic Optional findById(Object key)
findById in interface org.springframework.data.repository.CrudRepositorypublic boolean existsById(Object key)
existsById in interface org.springframework.data.repository.CrudRepositorypublic Iterable findAll()
findAll in interface org.springframework.data.repository.CrudRepositorypublic Iterable findAllById(Iterable iterable)
findAllById in interface org.springframework.data.repository.CrudRepositorypublic long count()
count in interface org.springframework.data.repository.CrudRepositorypublic void deleteById(Object key)
deleteById in interface org.springframework.data.repository.CrudRepositorypublic void delete(Object entity)
delete in interface org.springframework.data.repository.CrudRepositorypublic void deleteAll(Iterable entities)
deleteAll in interface org.springframework.data.repository.CrudRepositorypublic void deleteAll()
deleteAll in interface org.springframework.data.repository.CrudRepositorypublic Iterable findAll(org.springframework.data.domain.Sort sort)
findAll in interface org.springframework.data.repository.PagingAndSortingRepositorypublic org.springframework.data.domain.Page findAll(org.springframework.data.domain.Pageable pageable)
findAll in interface org.springframework.data.repository.PagingAndSortingRepositoryCopyright © 2018 Pivotal Software, Inc.. All rights reserved.