}
@Override
public EDBObject getObject(String arg0, Long timestamp) throws EDBException {
if (arg0.equals(getModelOid("objectA/reference/1"))) {
EDBObject edbObject = new EDBObject(getModelOid("objectA/reference/1"));
edbObject.putEDBObjectEntry("nameA", "firstObject");
edbObject.putEDBObjectEntry(EDBConstants.MODEL_TYPE, SourceModelA.class.getName());
return edbObject;
}
if (arg0.equals(getModelOid("objectA/reference/2"))) {
EDBObject edbObject = new EDBObject(getModelOid("objectA/reference/2"));
edbObject.putEDBObjectEntry("nameA", "updatedFirstObject");
edbObject.putEDBObjectEntry(EDBConstants.MODEL_TYPE, SourceModelA.class.getName());
return edbObject;
}
if (arg0.equals(getModelOid("objectB/reference/1"))) {
EDBObject edbObject = new EDBObject(getModelOid("objectB/reference/1"));
edbObject.putEDBObjectEntry("nameB", "secondObject");
edbObject.putEDBObjectEntry(EDBConstants.MODEL_TYPE, SourceModelB.class.getName());
return edbObject;
}
if (arg0.equals(getModelOid("objectB/reference/2"))) {
EDBObject edbObject = new EDBObject(getModelOid("objectB/reference/2"));
edbObject.putEDBObjectEntry("nameB", "updatedSecondObject");
edbObject.putEDBObjectEntry(EDBConstants.MODEL_TYPE, SourceModelB.class.getName());
return edbObject;
}
if (arg0.equals(getModelOid("common/reference/1"))) {
EDBObject edbObject = new EDBObject(getModelOid("common/reference/1"));
edbObject.putEDBObjectEntry("modelAId", "objectA/reference/1");
edbObject.putEDBObjectEntry("modelBId", "objectB/reference/1");
edbObject.putEDBObjectEntry("nameA", "firstObject");
edbObject.putEDBObjectEntry("nameB", "secondObject");
edbObject.putEDBObjectEntry("internalModelName", "common/reference/1");
edbObject.putEDBObjectEntry(EDBConstants.MODEL_TYPE, EngineeringObjectModel.class.getName());
return edbObject;
}
if (arg0.equals(getModelOid("common/reference/2"))) {
EDBObject edbObject = new EDBObject(getModelOid("common/reference/2"));
edbObject.putEDBObjectEntry("modelAId", "objectA/reference/1");
edbObject.putEDBObjectEntry("nameA", "firstObject");
edbObject.putEDBObjectEntry("internalModelName", "common/reference/2");
edbObject.putEDBObjectEntry(EDBConstants.MODEL_TYPE, EngineeringObjectModel.class.getName());
return edbObject;
}
return null;
}