Package com.zosatapo.commons.store

Examples of com.zosatapo.commons.store.jResultSet.release()


            parentGroup);
        workflowGroup.setDepartment((WorkflowDepartment)departments.get(jrs.getString("vc_departmentid")));
        genGroupTree(workflowGroup);
      }

      jrs.release();
    }
    else
    {
      Connection conn = null;
      PreparedStatement pstmt = null;
View Full Code Here


          new WorkflowRankImpl(
            jrs.getString("vc_uuid"),
            jrs.getString("vc_name"),
            jrs.getString("vc_description")));
      }
      jrs.release();

      //---------------------------------------------create category
      strSQL =
        "SELECT  vc_uuid,vc_name,vc_description "
          + " FROM "
View Full Code Here

          new WorkflowCategoryImpl(
            jrs.getString("vc_uuid"),
            jrs.getString("vc_name"),
            jrs.getString("vc_description")));
      }
      jrs.release();

      //---------------------------------------------create role
      strSQL =
        "SELECT  vc_uuid,vc_name,vc_description "
          + " FROM "
View Full Code Here

        createRole(
            jrs.getString("vc_uuid"),
            jrs.getString("vc_name"),
            jrs.getString("vc_description"));
      }
      jrs.release();
     
      //---------------------------------------------create users
      strSQL =
        "SELECT vc_uuid,vc_name,vc_password,vc_fullname,vc_description,vc_rankid "
          + " "
View Full Code Here

            jrs.getString("vc_description"));

        participant.setRank((WorkflowRank) ranks.get(jrs.getString("vc_rankid")));
      }

      jrs.release();

      //---------------------------------------------set user administrator
      strSQL =
        "SELECT vc_userid,vc_packageId "
          + " "
View Full Code Here

        {
          participantImpl.addPackage(jrs.getString("vc_packageId"));
        }
      }

      jrs.release();
     
      //---------------------------------------------create departments
      genDepartmentTree(null);     

      //---------------------------------------------create groups
View Full Code Here

        String userid = jrs.getString("vc_userid");
        WorkflowGroup workflowGroup = findGroup(groupid);
        WorkflowParticipant workflowUser = findParticipant(userid);
        workflowGroup.addPaticipant(workflowUser);
      }
      jrs.release();

      //---------------------------------------------create user department relation
      strSQL =
        "SELECT vc_userid,vc_departmenetid FROM "
          + getSchemaContext().getTableName(SchemaContext.SCHEMA_USER_DEPARTMENT);
View Full Code Here

        String userid = jrs.getString("vc_userid");
        WorkflowDepartment workflowDept = findDepartment(deptid);
        WorkflowParticipant workflowUser = findParticipant(userid);
        workflowDept.addPaticipant(workflowUser);
      }
      jrs.release();

      //---------------------------------------------create user role relation
      strSQL =
        "SELECT vc_userid,vc_roleid FROM "
          + getSchemaContext().getTableName(SchemaContext.SCHEMA_USER_ROLE);
View Full Code Here

        String userid = jrs.getString("vc_userid");
        WorkflowRole workflowRole = findRole(roleid);
        WorkflowParticipant workflowUser = findParticipant(userid);
        workflowRole.addPaticipant(workflowUser);
      }
      jrs.release();
     
    }
    catch (SQLException sqlex)
    {
      throw new WorkflowException(sqlex);
View Full Code Here

            parentDept);
        workflowDepartment.setCategory((WorkflowCategory)categories.get(jrs.getString("vc_categoryid")));
        genDepartmentTree(workflowDepartment);
      }

      jrs.release();
    }
    else
    {
      Connection conn = null;
      PreparedStatement pstmt = null;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.