?? articlemanage_bean.java
字號:
package com.v246;
public class ArticleManage_bean
{
protected java.sql.Connection conn=null;
protected java.sql.Statement stm=null;
protected Connections connTmp=new Connections();
public void addArticleManage(ArticleManage_form articleManage)throws Exception
{
String[] articleId=articleManage.getArticleId();
if(articleId!=null)
{
try
{
conn=connTmp.getConnection();
stm=conn.createStatement();
}
catch(Exception e)
{
e.printStackTrace();
}
try
{
for(int i=0;i<articleId.length;i++)
{
stm.executeUpdate("delete from article where articleId="+articleId[i]);
}
}
catch(Exception e)
{
e.printStackTrace();
}
finally
{
if(stm!=null)stm.close();
if(conn!=null)conn.close();
}
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -