第一范文网 - 专业文章范例文档资料分享平台

基于JSP的人事信息管理系统的设计与实现毕业论文

来源:用户分享 时间:2025/6/3 1:03:54 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

基于JSP的人事信息管理系统的设计与实现

参考文献

[1] 《数据库系统概论》(第三版)/萨师煊 王珊编著 ,高等教育出版社. [2] 《JSP实用编程实例集锦》/马文刚、谢乐建、管知时,清华大学出版社. [3] 《JSP数据库编程指南》/布霍恩·赖特著 赵明昌译,北京希望电子出版社. [4] Herbert著.张玉清等译.Java2参考大全[M].北京:清华大学出版社.

[5] 微软公司著,高国连,李国华译.SQL Server 2000使用Transact-SQL进行数据库查询[M].北

京:北京希望电子出版社.

[6] 汪晓平等编著.精通Java网络编程[M].北京:清华大学出版社. [7] 林上杰,林康司著.JSP2.0技术手册[M].西安:电子工业出版社.

[8] 微软公司著,高国连,李国华译.SQL Server 2000使用Transact-SQL进行数据库查[M]. [9] 汪孝宜等著.JSP数据库开发实例精粹[M].北京:电子工业出版社.

[10] 微软公司著,高国连,李国华译.SQL Server 2000使用Transact-SQL进行数据库查[M]. 北京:北京希望电子出版社.

[11]邹建.《中文版SQL Server 2000开发与管理应用实例》[M].北京:人民邮电出版社,2005.

22

附录 设计实现的具体内容

数据库连接: 一DBConnect.java package hrms.database;

import java.sql.*;

import hrms.database.DBConnectionManager;

public class DBConnect {

private Connection conn = null; private Statement stmt = null;

private PreparedStatement prepstmt = null; private DBConnectionManager dcm = null; void init() { }

public DBConnect() throws Exception { }

public DBConnect(int resultSetType, int resultSetConcurrency)

dcm = DBConnectionManager.getInstance(); conn = dcm.getConnection(\

init();

stmt = conn.createStatement();

throws Exception {

init(); stmt

=

conn.createStatement(resultSetType,

resultSetConcurrency);

}

public DBConnect(String sql) throws Exception { } public

DBConnect(String

sql,

int

resultSetType,

int

init();

this.prepareStatement(sql);

resultSetConcurrency)

throws Exception {

init();

this.prepareStatement(sql,

resultSetType,

resultSetConcurrency);

}

public Connection getConnection() { }

public void prepareStatement(String sql) throws SQLException { }

public void prepareStatement(String sql, int resultSetType,

return conn;

prepstmt = conn.prepareStatement(sql);

int resultSetConcurrency) throws SQLException {

{

}

prepstmt = conn.prepareStatement(sql, resultSetType,

resultSetConcurrency);

public void setString(int index, String value) throws SQLException

}

prepstmt.setString(index, value);

public void setInt(int index, int value) throws SQLException {

}

public void setBoolean(int index, boolean value) throws SQLException {

}

public void setDate(int index, Date value) throws SQLException { }

public void setTimestamp(int index, Timestamp value) throws

prepstmt.setDate(index, value); prepstmt.setBoolean(index, value); prepstmt.setInt(index, value);

SQLException {

}

prepstmt.setTimestamp(index, value);

public void setLong(int index, long value) throws SQLException {

prepstmt.setLong(index, value);

}

public void setFloat(int index, float value) throws SQLException { }

public void setBytes(int index, byte[] value) throws SQLException { }

public void clearParameters() throws SQLException { }

public PreparedStatement getPreparedStatement() { }

public Statement getStatement() { }

public ResultSet executeQuery(String sql) throws SQLException {

if (stmt != null) {

return stmt.executeQuery(sql); return stmt; return prepstmt;

prepstmt.clearParameters(); prepstmt = null;

prepstmt.setBytes(index, value); prepstmt.setFloat(index, value);

} else

return null;

基于JSP的人事信息管理系统的设计与实现毕业论文.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c2e78q4y7648iiwn479cv9uewu2s0h401e4q_6.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top