public class AllChangeToTarget extends Object
If you have registered a data observer for the ORM database, all the added, deleted, and updated objects will be stored in the data storage so that the observer can obtain these objects.
OrmObjectObserverSystemCapability.Data#DATA_APPDATAMGR| 构造器 | 说明 |
|---|---|
AllChangeToTarget() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
addToDeletedList(OrmObject ormObject) |
Adds an
OrmObject to the list of deleted objects. |
void |
addToInsertList(OrmObject ormObject) |
Adds an
OrmObject to the list of inserted objects. |
void |
addToUpdatedList(OrmObject ormObject) |
Adds an
OrmObject to the list of updated objects. |
List<OrmObject> |
getDeletedList() |
Obtains the list of deleted
OrmObject objects. |
List<OrmObject> |
getInsertedList() |
Obtains the list of inserted
OrmObject objects. |
List<OrmObject> |
getUpdatedList() |
Obtains the list of updated
OrmObject objects. |
public void addToInsertList(OrmObject ormObject)
OrmObject to the list of inserted objects.ormObject - Indicates a managed ORM object.public void addToUpdatedList(OrmObject ormObject)
OrmObject to the list of updated objects.ormObject - Indicates a managed ORM object.public void addToDeletedList(OrmObject ormObject)
OrmObject to the list of deleted objects.ormObject - Indicates a managed ORM object.public List<OrmObject> getInsertedList()
OrmObject objects.
If you have registered an ORM database observer, you can use this method to obtain the list of
OrmObject objects that are observed by the observer and inserted into the database.
OrmObject objects.public List<OrmObject> getUpdatedList()
OrmObject objects.
If you have registered an ORM database observer, you can use this method to obtain the list of
OrmObject objects that are observed by the observer and updated in the database.
OrmObject objects.public List<OrmObject> getDeletedList()
OrmObject objects.
If you have registered an ORM database observer, you can use this method to obtain the list of
OrmObject objects that are observed by the observer and deleted from the database.
OrmObject objects.