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>SimpleDynamoDBPagingAndSortingRepositorypublic 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) | 
repackageToExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitensureNoSort, ensureNoSort, throwUnsupportedSortOperationExceptionprotected 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 savingIllegalArgumentExceptionpublic boolean existsById(ID id)
public long count()
public void deleteById(ID id)
public void delete(T entity)
Copyright © 2018. All rights reserved.