示例#1
0
  CompositeData getNextMo(String[] name) {
    ResultSet rs = null;
    PreparedStatementWrapper pstatForMo = null;
    PreparedStatement pstatementForMo = null;
    try {
      pstatForMo = agentName.rlAPI.fetchPreparedStatement(psSelectMoID2);
      pstatementForMo = pstatForMo.getPreparedStatement();
      pstatementForMo.setString(1, name[0]);
      rs = agentName.rlAPI.executeQuery(pstatementForMo);
      rs.next();
      name[0] = rs.getString(1);
      return getNetwork(name);

    } catch (Exception e) {
      return null;
    } finally {
      try {
        if (rs != null) {
          rs.close();
        }
      } catch (Exception e) {

      }
      agentName.rlAPI.returnPreparedStatement(pstatForMo);
    }
  }