public abstract class AbstractRepository<T> extends Object
| Constructor and Description |
|---|
AbstractRepository(com.azure.cosmos.CosmosContainer container,
AbstractItemToDocumentConverter<T,Map<String,Object>> converter) |
| Modifier and Type | Method and Description |
|---|---|
int |
create(Map<String,Object> document) |
int |
create(T item) |
int |
delete(Map<String,Object> document) |
int |
delete(T item) |
boolean |
exists(String id) |
Optional<T> |
get(String id) |
List<T> |
getAll() |
List<Map<String,Object>> |
readAllItems() |
int |
replace(Map<String,Object> document) |
int |
replace(T item) |
int |
upsert(Map<String,Object> document) |
int |
upsert(T item) |
public AbstractRepository(com.azure.cosmos.CosmosContainer container,
AbstractItemToDocumentConverter<T,Map<String,Object>> converter)
Copyright © 2021 Liquibase.org. All rights reserved.