downloadfilepersistent.java
来自「OA典型例子」· Java 代码 · 共 32 行
JAVA
32 行
/*
* 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 + =
减小字号Ctrl + -
显示快捷键?