public class Collection extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
collectionName |
protected Boolean |
isClient |
protected String |
primaryKey |
protected VikingDBService |
vikingDBService |
| Constructor and Description |
|---|
Collection() |
Collection(String collectionName,
List<Field> fields,
VikingDBService vikingDBService,
String primaryKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAllData() |
<T> void |
deleteData(T id) |
List<DataObject> |
fetchData(List<?> ids) |
<T> DataObject |
fetchData(T id) |
void |
updateData(DataObject dataObject) |
void |
updateData(List<DataObject> dataObjects) |
void |
upsertData(DataObject dataObject) |
void |
upsertData(DataObject dataObject,
Boolean asyncUpsert) |
void |
upsertData(List<DataObject> dataObjects) |
void |
upsertData(List<DataObject> dataObjects,
Boolean asyncUpsert) |
HashMap<String,Object> |
validAndPackageData(DataObject dataObject,
Boolean asyncUpsert) |
HashMap<Integer,ArrayList<Object>> |
validAndPackageDatas(List<DataObject> dataObjects) |
protected String collectionName
protected VikingDBService vikingDBService
protected String primaryKey
protected Boolean isClient
public Collection(String collectionName, List<Field> fields, VikingDBService vikingDBService, String primaryKey)
public Collection()
public HashMap<String,Object> validAndPackageData(DataObject dataObject, Boolean asyncUpsert) throws Exception
Exceptionpublic HashMap<Integer,ArrayList<Object>> validAndPackageDatas(List<DataObject> dataObjects) throws Exception
Exceptionpublic void upsertData(DataObject dataObject) throws Exception
Exceptionpublic void upsertData(DataObject dataObject, Boolean asyncUpsert) throws Exception
Exceptionpublic void upsertData(List<DataObject> dataObjects) throws Exception
Exceptionpublic void upsertData(List<DataObject> dataObjects, Boolean asyncUpsert) throws Exception
Exceptionpublic void updateData(DataObject dataObject) throws Exception
Exceptionpublic void updateData(List<DataObject> dataObjects) throws Exception
Exceptionpublic <T> DataObject fetchData(T id) throws Exception
Exceptionpublic List<DataObject> fetchData(List<?> ids) throws Exception
ExceptionCopyright © 2025. All rights reserved.