dao, SELECT_PROTO_EDGES_SQL);
rset = ps.executeQuery();
while (rset.next()) {
Integer kamEdgeId = rset.getInt(1);
KamProtoNode sourceKamProtoNode = kamProtoNodeMap.get(rset.getInt(2));
Integer relationshipTypeId = rset.getInt(3);
KamProtoNode targetKamProtoNode = kamProtoNodeMap.get(rset.getInt(4));
// Sanity checks
if (null == sourceKamProtoNode) {
throw new SQLException(String.format("Source node for edge %d is missing.", kamEdgeId));
}