31 #include <MemoryX/interface/core/EntityBase.h>
32 #include <MemoryX/interface/memorytypes/MemoryEntities.h>
33 #include <MemoryX/interface/memorytypes/MemorySegments.h>
40 virtual public OacMemorySegmentBase
44 CollectionInterfacePrx entityCollection,
46 bool useMongoIds =
true) :
48 OacMemorySegmentBase(),
49 objClassSegment(objClassSegment)
55 const ::Ice::Current& = Ice::emptyCurrent)
const override
57 return completeOac(OacBasePtr::dynamicCast(getEntityById(
id)));
62 const ::Ice::Current& = Ice::emptyCurrent)
const override
64 return completeOac(OacBasePtr::dynamicCast(getEntityByName(name)));
68 getAll(const ::Ice::Current& = Ice::emptyCurrent)
const override
72 EntityIdList entityIdList = getAllEntityIds();
74 for (EntityIdList::const_iterator it = entityIdList.begin(); it != entityIdList.end();
77 OacBasePtr oac = getOacById(*it);
81 result.push_back(oac);
96 OacBasePtr replaceObjectDummies(OacBasePtr oac)
const;
105 OacBasePtr completeOac(OacBasePtr oac)
const;
125 OacPtr oacCast = OacPtr::dynamicCast(oac);
129 throw IceUtil::NullHandleException(
"Could not cast OacBase into Oac Ptr", 0);
134 throw armarx::LocalException(
"PersistentObjectClassSegmentBaseProxy is NULL");
137 SECObjectRelationsBasePtr pre = oacCast->getPredictionFunction()->getSECPreconditions();
138 SECObjectRelationsBasePtr post = oacCast->getPredictionFunction()->getSECEffects();