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()
SpannerRepository
SpannerOperations
, which allows more-direct access to Google Spanner
functions.getSpannerOperations
in interface SpannerRepository
public Object save(Object entity)
save
in interface org.springframework.data.repository.CrudRepository
public Iterable saveAll(Iterable entities)
saveAll
in interface org.springframework.data.repository.CrudRepository
public Optional findById(Object key)
findById
in interface org.springframework.data.repository.CrudRepository
public boolean existsById(Object key)
existsById
in interface org.springframework.data.repository.CrudRepository
public Iterable findAll()
findAll
in interface org.springframework.data.repository.CrudRepository
public Iterable findAllById(Iterable iterable)
findAllById
in interface org.springframework.data.repository.CrudRepository
public long count()
count
in interface org.springframework.data.repository.CrudRepository
public void deleteById(Object key)
deleteById
in interface org.springframework.data.repository.CrudRepository
public void delete(Object entity)
delete
in interface org.springframework.data.repository.CrudRepository
public void deleteAll(Iterable entities)
deleteAll
in interface org.springframework.data.repository.CrudRepository
public void deleteAll()
deleteAll
in interface org.springframework.data.repository.CrudRepository
public Iterable findAll(org.springframework.data.domain.Sort sort)
findAll
in interface org.springframework.data.repository.PagingAndSortingRepository
public org.springframework.data.domain.Page findAll(org.springframework.data.domain.Pageable pageable)
findAll
in interface org.springframework.data.repository.PagingAndSortingRepository
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.