code: private void processDependencies() throws SQLException
     {
        List<Row> rows = getRows("select * from zdependency where zproject=?", m_projectID);
        for (Row row : rows)
        {
           Task nextTask = m_project.getTaskByUniqueID(row.getInteger("ZNEXTACTIVITY_"));
           Task prevTask = m_project.getTaskByUniqueID(row.getInteger("ZPREVIOUSACTIVITY_"));
           Duration lag = row.getDuration("ZLAG_");
           RelationType type = row.getRelationType("ZTYPE");
           Relation relation = nextTask.addPredecessor(prevTask, type, lag);
           relation.setUniqueID(row.getInteger("Z_PK"));
        }
     }
docs: Read relation data.