code: private void populateEntityMap() throws SQLException
     {
        for (Row row : getRows("select * from z_primarykey"))
        {
           m_entityMap.put(row.getString("Z_NAME"), row.getInteger("Z_ENT"));
        }
     }
docs: Create a mapping from entity names to entity ID values.