T
- the type of the entity to handleID
- the type of the entity's identifierDynamoDBCrudRepository<T,ID>
, ExceptionHandler
, SortHandler
, org.springframework.data.repository.CrudRepository<T,ID>
, org.springframework.data.repository.Repository<T,ID>
SimpleDynamoDBPagingAndSortingRepository
public class SimpleDynamoDBCrudRepository<T,ID> extends Object implements DynamoDBCrudRepository<T,ID>, SortHandler, ExceptionHandler
CrudRepository
interface.Modifier and Type | Field | Description |
---|---|---|
protected Class<T> |
domainType |
|
protected DynamoDBOperations |
dynamoDBOperations |
|
protected EnableScanPermissions |
enableScanPermissions |
|
protected DynamoDBEntityInformation<T,ID> |
entityInformation |
Constructor | Description |
---|---|
SimpleDynamoDBCrudRepository(DynamoDBEntityInformation<T,ID> entityInformation,
DynamoDBOperations dynamoDBOperations,
EnableScanPermissions enableScanPermissions) |
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() |
|
List<T> |
findAllById(Iterable<ID> ids) |
|
Optional<T> |
findById(ID id) |
|
<S extends T> |
save(S entity) |
|
<S extends T> |
saveAll(Iterable<S> entities) |
repackageToException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ensureNoSort, ensureNoSort, throwUnsupportedSortOperationException
protected DynamoDBEntityInformation<T,ID> entityInformation
protected EnableScanPermissions enableScanPermissions
protected DynamoDBOperations dynamoDBOperations
public SimpleDynamoDBCrudRepository(DynamoDBEntityInformation<T,ID> entityInformation, DynamoDBOperations dynamoDBOperations, EnableScanPermissions enableScanPermissions)
public <S extends T> S save(S entity)
public <S extends T> Iterable<S> saveAll(Iterable<S> entities) throws BatchWriteException, IllegalArgumentException
saveAll
in interface org.springframework.data.repository.CrudRepository<T,ID>
BatchWriteException
- in case of an error during savingIllegalArgumentException
public boolean existsById(ID id)
public long count()
public void deleteById(ID id)
public void delete(T entity)
Copyright © 2018. All rights reserved.