- addEntity
Adds an entity to the bag of entities
- find
Builds a query for document in the storage for a specific queryfield with
optional sorting parameter
- getEntities
Execute a query returning all records in the bag with a given max
- getEntity
Retrieves a specific entity from the bag
- removeEntity
Removes the entity from the bag using the id
- updateEntity
Updates an entity in the bag of entities
- ensureIndex
Ensures there is an index present on a given field in this bag, will create if
not existent, will do
- flush
Forcibly flushes all the data in the bag to the storage
- getDiskSize
Returns the size on the disk of the entities
- persist
Persists the provided entity, if not exists will be created, if already exists
it will be updated
- removeIndex
Removes the index from the bag