Package flex.messaging.io

Examples of flex.messaging.io.ArrayList


    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    con = DriverManager.getConnection("jdbc:sqlserver://127.0.0.1:1433;DatabaseName=test", user, psw);
    stmt2 = con.createStatement();
    rs = stmt2.executeQuery(str);
    ArrayList a = new ArrayList();   
    while(rs.next())
    {
      a.add(rs.getString(1));
    }   
    jsh = new String[a.size()];   
    for(int i = 0; i < a.size(); i++)
    {
      jsh[i]= (String)a.get(i);
    }
   
    //ѡ���Ͽΰ༶
    rs=stmt2.executeQuery("SELECT distinct bjm FROM course_list where xq='"+week+"' and js='"+js+"'");
    ArrayList a1 = new ArrayList();   
    while(rs.next())
    {
      a1.add(rs.getString(1));
    }   
    bjm = new String[a1.size()];   
    for(int i = 0; i < a1.size(); i++)
    {
      bjm[i]= (String)a1.get(i);
    }   

    iii=a.size();
    rs.close();
    rs.close();
    stmt2.close();
    con.close();
   
   
  }catch(SQLException e){
    e.printStackTrace();
  }
}else{
  iii=0;
}

if(time>=480&&time<=710||time>=780&&time<=1200){  //8:00-11:50��13:00-20:00��������Ϊ0-70
  for(int j=1;j<6;j++){               //i�������c����¥��j�����ѧ¥
     for(int c=1;c<6;c++){
       for(int i=1;i<11;i++){
         String lh=Integer.toString(j);
         String lc=Integer.toString(c);
        if(i>9)
          js1=Integer.toString(i);
        else
          js1="0"+Integer.toString(i);
        
         lon=lh+lc+js1;
        // System.out.print(lon+"  ");

         if(iii!=0){
           int pan=0;
           for(int k=0;k<iii;k++){
             if(lon.equals(jsh[k])){//�������Ͽεİ༶����Ϊ��120�����ϿΣ��ܹ���������һ���ϣ�ÿ����63�ˣ�
              try{
                Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
                con = DriverManager.getConnection("jdbc:sqlserver://127.0.0.1:1433;DatabaseName=test", user, psw);
                stmt2 = con.createStatement()
                //�����Ͽ�����
              rs=null;
              rs=stmt2.executeQuery("SELECT xh FROM [test].[dbo].[stu_info] where bjm='"+bjm[z].trim()+"' or bjm='"+bjm[z+1].trim()+"'");
              ArrayList a2 = new ArrayList();
              z=z+2;
              while(rs.next())
              {
                a2.add(rs.getString(1));
              }   
                renshu = a2.size()-6;
                //System.out.println("a2="+a2.size());            
              
               Element title= document.createElement("Class_num");
               root.appendChild(title);
View Full Code Here


  Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
  con = DriverManager.getConnection("jdbc:sqlserver://127.0.0.1:1433;DatabaseName=test", user, psw);
  stmt3 = con.createStatement();
 
  rs = stmt3.executeQuery("select cgqID from senser where cgqlxID='10'");
  ArrayList a1 = new ArrayList();
  while(rs.next()){
    a1.add(rs.getString(1));
  }
  list = new String[a1.size()];
  for(int i = 0; i < a1.size(); i++){
    list[i]= (String)a1.get(i);
  }
  rs.close();
 
  int index=0;
if(week1==1||week1==2||week1==3||week1==4||week1==5){  //��һ-----�������
View Full Code Here

      Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
      con = DriverManager.getConnection("jdbc:sqlserver://127.0.0.1:1433;DatabaseName=test", user, psw);
      stmt4 = con.createStatement();
      rs = stmt4.executeQuery("select cgqID,cgqmc from senser where cgqlxID='8'");
     
      ArrayList a = new ArrayList();
      ArrayList a1 = new ArrayList()
      while(rs.next())
      {
        a.add(rs.getString(1));
        a1.add(rs.getString(2));
      }
      String[] list2 = new String[a.size()]//list2��cgqID�������ݿ�д
      String[] list3 = new String[a1.size()]; //list3��cgqmc����xml��д
      for(int i = 0; i < a.size(); i++)
      {
        list2[i]= ((String)a.get(i)).trim();
        list3[i]= ((String) a1.get(i)).trim();
      }
      if(t==0){
        if(s==null){
        int qwe = random()*25;
        app = list3[qwe];        //app��ʱ�洢
View Full Code Here

    con = DriverManager.getConnection("jdbc:sqlserver://127.0.0.1:1433;DatabaseName=test", user, psw);
    stmt = con.createStatement();
    rs = stmt.executeQuery(str);
    
    //�ҳ������ϿεĽ���
    ArrayList a = new ArrayList();   
    while(rs.next())
    {
      a.add(rs.getString(1));     
    }   
    jsh = new String[a.size()];   
    for(int i = 0; i < a.size(); i++)
    {
      jsh[i]= (String)a.get(i);
    }
    rs.close();
    stmt.close();
    con.close();
    iii=a.size();
   
  }catch(SQLException e){
    e.printStackTrace();
  }
}else{
  iii=0;
}


//�ҳ������¶ȵ�ID��������ID��������IDΪ1��ע�⣺����ܲ������в�ѯ�����޽����Ͽ�ʱ������IJ�ѯ�����У�����listֵ����ʱ�����޷����У�
try{
  Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
  con = DriverManager.getConnection("jdbc:sqlserver://127.0.0.1:1433;DatabaseName=test", user, psw);
  stmt = con.createStatement();
  rs = stmt.executeQuery("select cgqID from senser where cgqlxID='1'");
  ArrayList a1 = new ArrayList();
  while(rs.next()){
    a1.add(rs.getString(1));
  }
  list = new String[a1.size()];
  for(int i = 0; i < a1.size(); i++){
    list[i]= (String)a1.get(i);
  }
  rs.close();
  stmt.close();
  }catch(SQLException e){
    e.printStackTrace();
View Full Code Here

    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    con = DriverManager.getConnection("jdbc:sqlserver://127.0.0.1:1433;DatabaseName=test", user, psw);
    stmt1 = con.createStatement();
    rs = stmt1.executeQuery(str);
    ArrayList a = new ArrayList();   
    while(rs.next())
    {
      a.add(rs.getString(1));
    }   
    jsh = new String[a.size()];   
    for(int i = 0; i < a.size(); i++)
    {
      jsh[i]= (String)a.get(i);
    }
    rs.close();
    stmt1.close();
    con.close();
    iii=a.size();
   
  }catch(SQLException e){
    e.printStackTrace();
  }
}else{
  iii=0;

int index = 0;

//�ҳ�ͶӰ�ǵ�ID��������ID���䴫��������IDΪ2
try{
  Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
  con = DriverManager.getConnection("jdbc:sqlserver://127.0.0.1:1433;DatabaseName=test", user, psw);
  stmt1 = con.createStatement();
  rs = stmt1.executeQuery("select cgqID from senser where cgqlxID='2'");
  ArrayList a1 = new ArrayList();   
  while(rs.next())
  {
    a1.add(rs.getString(1));
  }   
  list1 = new String[a1.size()];   
  for(int i = 0; i < a1.size(); i++)
  {
    list1[i]= (String)a1.get(i);
  }
 
  rs.close();
  stmt1.close();
  con.close();
View Full Code Here

        Log.getLogger("QE.CODE_COVERAGE").debug("Destination " + dest_runtime + " isCluster=" + destination.isClustered() +" isBackendShared=" + destination.isBackendShared());
       
        destination.removeChannel("qa-polling-amf");
        destination.addChannel("non-existing-channel");
       
        ArrayList ids = new ArrayList();
        ids.add("qa-polling-amf");
        ids.add("non-existing-channel2");
        destination.setChannels(ids);
       
        ConfigMap cm = destination.describeDestination().getPropertyAsMap("channels", null);       
        if (cm != null)
            Log.getLogger("QE.CODE_COVERAGE").debug("Destination " + dest_runtime + " has " + cm.size() + " channels." );
View Full Code Here

TOP

Related Classes of flex.messaging.io.ArrayList

Copyright © 2018 www.massapicom. 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.