随笔-295  评论-26  文章-1  trackbacks-0

public void close()
    {
        try
        {
             if(rs!=null) rs.close();
             if(st!=null) st.close();
             if(cn!=null) cn.close();
        }
        catch(SQLException _ex)
        {
            try
            {
                if(rs != null)   rs.close();
            }
            catch(SQLException _ex2)
            {
                try
                {
                    if(st != null) st.close();
                }
                catch(SQLException _ex3) {
                }
                try
                {
                    if(cn != null) cn.close();
                }
                catch(SQLException _ex3) {
                }
            }

            try
            {
                if(st != null)  st.close();
            }
            catch(SQLException _ex2)
            {
                try
                {
                    if(cn != null) cn.close();
                }
                catch(SQLException _ex3) {
                }
            }
            try
            {
                if(cn != null)   cn.close();
            }
            catch(SQLException _ex2) {
            }
        }
        finally
        {
          try
          {
           // if(rs!=null) rs.close();
            if(st!=null) st.close();
            if(cn!=null) cn.close();
          }
          catch(Exception e)
          {
            //System.out.println(e.toString());
          }
        }

    }



大盘预测 国富论
posted on 2007-07-27 13:56 华梦行 阅读(90) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: