Package org.molgenis.data.cache.utils
Class EntityHydration
- java.lang.Object
-
- org.molgenis.data.cache.utils.EntityHydration
-
@Component public class EntityHydration extends Object
Hydrates and dehydrates entities.
-
-
Constructor Summary
Constructors Constructor Description EntityHydration(org.molgenis.data.EntityManager entityManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>dehydrate(org.molgenis.data.Entity entity)Creates a Map containing the values required to rebuild this entity.org.molgenis.data.Entityhydrate(Map<String,Object> dehydratedEntity, org.molgenis.data.meta.model.EntityType entityType)Rehydrate an entity.
-
-
-
Method Detail
-
hydrate
public org.molgenis.data.Entity hydrate(Map<String,Object> dehydratedEntity, org.molgenis.data.meta.model.EntityType entityType)
Rehydrate an entity. Entity can be anEntityWithComputedAttributesif there are attributes present with an expression- Parameters:
entityType- metadata of the entity to rehydratedehydratedEntity- map with key value pairs representing this entity- Returns:
- hydrated entity
-
-