Removal of expired objects; see OBXPropertyFlags_EXPIRATION_TIME. More...
#include <objectbox.hpp>
Public Member Functions | |
| size_t | remove (Transaction &tx, obx_schema_id typeId=0) |
| Removes expired objects of one or all entity types. | |
| void | removeAsync (Store &store, obx_schema_id typeId=0, AsyncStatusCallback callback={}) |
| Asynchronously removes expired objects of one or all entity types. | |
Removal of expired objects; see OBXPropertyFlags_EXPIRATION_TIME.
| size_t obx::ExpiredObjects::remove | ( | Transaction & | tx, |
| obx_schema_id | typeId = 0 |
||
| ) |
Removes expired objects of one or all entity types.
| typeId | Type of the objects to be remove; if zero (the default), all types are included. Hint: if you only have the entity type's name, use Store::getEntityTypeIdNoThrow() to get the ID. |
| void obx::ExpiredObjects::removeAsync | ( | Store & | store, |
| obx_schema_id | typeId = 0, |
||
| AsyncStatusCallback | callback = {} |
||
| ) |
Asynchronously removes expired objects of one or all entity types.
| typeId | Type of the objects to be remove; if zero (the default), all types are included. Hint: if you only have the entity type's name, use Store::getEntityTypeIdNoThrow() to get the ID. |