public class Collection extends Object
| 构造器和说明 |
|---|
Collection() |
Collection(String collectionName,
List<Field> fields,
VikingDBService vikingDBService,
String primaryKey) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> void |
deleteData(T id) |
List<DataObject> |
fetchData(List<?> ids) |
<T> DataObject |
fetchData(T id) |
void |
upsertData(DataObject dataObject) |
void |
upsertData(List<DataObject> dataObjects) |
public Collection(String collectionName, List<Field> fields, VikingDBService vikingDBService, String primaryKey)
public Collection()
public void upsertData(DataObject dataObject) throws Exception
Exceptionpublic void upsertData(List<DataObject> dataObjects) throws Exception
Exceptionpublic <T> DataObject fetchData(T id) throws Exception
Exceptionpublic List<DataObject> fetchData(List<?> ids) throws Exception
ExceptionCopyright © 2024. All rights reserved.