Esempio n. 1
0
 private void loadInitialRelationships(NodeManager nodeManager) {
   Map<Long, RelationshipImpl> map = null;
   synchronized (this) {
     if (relationshipMap == null) {
       this.relChainPosition = nodeManager.getRelationshipChainPosition(this);
       ArrayMap<String, RelIdArray> tmpRelMap = new ArrayMap<String, RelIdArray>();
       map = getMoreRelationships(nodeManager, tmpRelMap);
       this.relationshipMap = tmpRelMap;
     }
   }
   if (map != null) {
     nodeManager.putAllInRelCache(map);
   }
 }