int sizeGroup = jrs.getRowCount();
for (int i = 1; i <= sizeGroup; ++i)
{
jrs.absolute(i);
WorkflowGroup workflowGroup =
createGroup_impl(
jrs.getString("vc_uuid"),
jrs.getString("vc_name"),
jrs.getString("vc_description"),
parentGroup);
workflowGroup.setDepartment(this.findDepartment(jrs.getString("vc_departmentid")));
workflowGroup.setPresident(this.findParticipant(jrs.getString("vc_presidentid")));
groups.put(jrs.getString("vc_uuid"), workflowGroup);
genGroupTree(groups, workflowGroup);
}
jrs.release();
}
catch (SQLException sqlex)
{
;
}
}
else
{
Connection conn = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
try
{
strSQL += " WHERE vc_parent=?";
conn = ConnUtils.getConnection(getStore());
pstmt = conn.prepareStatement(strSQL);
pstmt.setString(1, parentGroup.getName());
rs = pstmt.executeQuery();
while (rs.next())
{
WorkflowGroup workflowGroup =
createGroup_impl(
rs.getString("vc_uuid"),
rs.getString("vc_name"),
rs.getString("vc_description"),
parentGroup);
workflowGroup.setDepartment(this.findDepartment(rs.getString("vc_departmentid")));
workflowGroup.setPresident(this.findParticipant(rs.getString("vc_presidentid")));
groups.put(rs.getString("vc_uuid"), workflowGroup);
genGroupTree(groups, workflowGroup);
}
}
catch (SQLException ex)