예제 #1
0
파일: uow.py 프로젝트: helixyte/everest
 def unregister(self, entity_class, entity):
     """
     Unregisters the given entity for the given class and discards its
     state information.
     """
     EntityState.release(entity, self)
     self.__entity_set_map[entity_class].remove(entity)
예제 #2
0
 def unregister(self, entity_class, entity):
     """
     Unregisters the given entity for the given class and discards its
     state information.
     """
     EntityState.release(entity, self)
     self.__entity_set_map[entity_class].remove(entity)
예제 #3
0
파일: uow.py 프로젝트: helixyte/everest
 def reset(self):
     """
     Releases all entities held by this Unit Of Work (i.e., removes state
     information from all registered entities and clears the entity map).
     """
     for ents in self.__entity_set_map.values():
         for ent in ents:
             EntityState.release(ent, self)
     self.__entity_set_map.clear()
예제 #4
0
 def reset(self):
     """
     Releases all entities held by this Unit Of Work (i.e., removes state
     information from all registered entities and clears the entity map).
     """
     for ents in self.__entity_set_map.values():
         for ent in ents:
             EntityState.release(ent, self)
     self.__entity_set_map.clear()