| 159 | } |
| 160 | |
| 161 | EntityPtr EntityFactory::loadVersionedEntity(VersionedJson const& versionedJson) const { |
| 162 | RecursiveMutexLocker locker(m_mutex); |
| 163 | |
| 164 | EntityType type = EntityStorageIdentifiers.getLeft(versionedJson.identifier); |
| 165 | auto store = loadVersionedJson(versionedJson, type); |
| 166 | return diskLoadEntity(type, store); |
| 167 | } |
| 168 | |
| 169 | VersionedJson EntityFactory::storeVersionedEntity(EntityPtr const& entityPtr) const { |
| 170 | return storeVersionedJson(entityPtr->entityType(), diskStoreEntity(entityPtr)); |