Class EntityManager


  • public class EntityManager
    extends java.lang.Object
    • Method Detail

      • getEntityByName

        public Entity<?,​?> getEntityByName​(java.lang.String entityName)
      • getEntitiesReferences

        public void getEntitiesReferences​(java.lang.String entityType,
                                          ObjectPredicate objectPredicate,
                                          boolean recursively,
                                          EntityReferencesMap refs)
        Retrieve all existing references from the DB for give entity type
        Parameters:
        entityType - type of entities to retrieve
        objectPredicate - to apply to filter entities (i.e. project)
        recursively - flag to export references recursively (i.e by exporting a plan recursively the plan will be scanned to find sub references)
        refs - the map of entity references to be populated during the process
      • getAllEntities

        public void getAllEntities​(java.lang.String entityName,
                                   java.lang.String id,
                                   EntityReferencesMap references)
        get entities recursively by scanning the given entity (aka artefact), the entity is retrieved and deserialized from the db
        Parameters:
        entityName - name of the type of entity
        id - the id of the entity
        references - the map of references to be populated
      • getEntitiesByClass

        public Entity<?,​?> getEntitiesByClass​(java.lang.Class<?> c)
      • updateReferences

        public void updateReferences​(java.lang.Object object,
                                     java.util.Map<java.lang.String,​java.lang.String> references)