T - the type of the entity to handleID - the type of the entity's identifierpublic class SimpleDynamoDBCrudRepository<T,ID extends Serializable> extends Object implements DynamoDBCrudRepository<T,ID>
CrudRepository interface.| Modifier and Type | Field and Description |
|---|---|
protected Class<T> |
domainType |
protected DynamoDBOperations |
dynamoDBOperations |
protected EnableScanPermissions |
enableScanPermissions |
protected DynamoDBEntityInformation<T,ID> |
entityInformation |
| Constructor and Description |
|---|
SimpleDynamoDBCrudRepository(DynamoDBEntityInformation<T,ID> entityInformation,
DynamoDBOperations dynamoDBOperations,
EnableScanPermissions enableScanPermissions) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertScanEnabled(boolean scanEnabled,
String methodName) |
long |
count() |
void |
delete(ID id) |
void |
delete(Iterable<? extends T> entities) |
void |
delete(T entity) |
void |
deleteAll() |
boolean |
exists(ID id) |
List<T> |
findAll() |
List<T> |
findAll(Iterable<ID> ids) |
T |
findOne(ID id) |
protected T |
load(ID id) |
protected List<T> |
loadBatch(Iterable<ID> ids) |
<S extends T> |
save(Iterable<S> entities) |
<S extends T> |
save(S entity) |
protected DynamoDBEntityInformation<T,ID extends Serializable> entityInformation
protected EnableScanPermissions enableScanPermissions
protected DynamoDBOperations dynamoDBOperations
public SimpleDynamoDBCrudRepository(DynamoDBEntityInformation<T,ID> entityInformation, DynamoDBOperations dynamoDBOperations, EnableScanPermissions enableScanPermissions)
public T findOne(ID id)
findOne in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public List<T> findAll(Iterable<ID> ids)
findAll in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public <S extends T> S save(S entity)
save in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public <S extends T> Iterable<S> save(Iterable<S> entities)
save in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public boolean exists(ID id)
exists in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public void assertScanEnabled(boolean scanEnabled,
String methodName)
public List<T> findAll()
findAll in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public long count()
count in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public void delete(ID id)
delete in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public void delete(T entity)
delete in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public void delete(Iterable<? extends T> entities)
delete in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public void deleteAll()
deleteAll in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>Copyright © 2016. All rights reserved.