⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 downloadfilepersistent.java

📁 OA典型例子
💻 JAVA
字号:

/*
 * downLoadFilePersistent.java
 * Generated using xgen and texen from beanpersistent.vm
 * Fri Apr 29 09:39:04 CST 2005
 */

package com.sure.oa.down;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.Statement;
import java.sql.SQLException;


/**
 * 将下载文件信息持久化到数据库
 * @author datonghuiren@sohu.com
 */
public class downLoadFilePersistent extends downLoadFilePersistentBase {
  public downLoadFilePersistent(downLoadFile bean) { super(bean); }
  public downLoadFilePersistent(downLoadFile bean, boolean recordExists) { super(bean, recordExists); }
  public static void  updateDownLoadFile(Connection conn, int docId,String where,String newpath) throws SQLException {
  String sql = "Update downLoadFile Set docId=? ";
  sql=sql+" "+where;
  //System.out.println(sql);
  PreparedStatement ps = conn.prepareStatement(sql);
  ps.setInt(1, docId);
  ps.executeUpdate();
  ps.close();
}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -