packagecom.org.dao.impl;importjava.sql.Connection;importjava.sql.PreparedStatement;importjava.sql.ResultSet;importjava.sql.SQLException;importjava.util.ArrayList;importjava.util.List;importjava.util.Map;importorg.springframework.jdbc.core.BeanPropertyRowMapper;importorg.springframework.jdbc.core.PreparedStatementCreator;importorg.springframework.jdbc.core.RowCallbackHandler;importorg.springframework.jdbc.support.GeneratedKeyHolder;importorg.springframework.stereotype.Repository;importcom.org.JdbcTempBaseDao;importcom.org.dao.IUserDao;importcom.org.model.User;@Repository@SuppressWarnings("all")publicclassUserDaoImplextendsJdbcTempBaseDaoimplementsIUserDao{ @Override publicListgetUserList(){ Stringsql="select*fromuser"; finalListlist=newArrayList(); jdbcTemplate.query(sql,newRowCallbackHandler(){ @Override publicvoidprocessRow(ResultSetrs)throwsSQLException{ Useru=newUser(); u.setId(rs.getInt("id")); u.setUsername(rs.getString("username")); u.setPassword(rs.getString("password")); u.setCreateDate(rs.getString("createDate")); u.setModifyDate(rs.getString("modifyDate")); u.setType(rs.getString("type")); list.add(u); } }); returnlist; } @Override publicListgetUserLists(Mapmap){ returnnull; } @Override publicIntegergetUserCount(Mapmap){ Stringsql="selectcount(1)fromUserwhereid=?"; returngetJdbcTemplate().queryForObject(sql,Integer.class,map); } @Override publicUsergetUserById(IntegerprimaryKeyId){ Stringsql="selectid,username,password,createDate,modifyDate,typefromUserwhereid=?";ListuserList=getJdbcTemplate().query(sql,newBeanPropertyRowMapper(User.class),primaryKeyId);if(userList.size()==0){returnnull;}returnuserList.get(0); } @Override publicvoiddelUserById(Int
2024/5/31 21:57:28 18.89MB jdbcTemplate
1
jTDS是一个开放源代码的100%纯Java实现的JDBC3.0驱动,它用于连接MicrosoftSQLServer(6.5,7,2000,2005,2008和2012)和Sybase(10,11,12,15)。
jTDS是基于freeTDS的,并且是目前最快的可企业级应用的SQLServer和Sybase的JDBC驱动程序。
jTDS完全与JDBC3.0兼容,支持只向前和可滚动/可更新的结果集(ResultSets),并且支持完全独立的并行Statements,而且实现了所有的数据库元数据(DatabaseMetaData)和结果集元数据(ResultSetMetaData)方法。
2024/3/28 22:21:42 297KB jtds
1
这是用Java编写的一个简单的银行转账系统,包括取款,存款,转账等功能,其中用到了数据库的连接,采用Eclipse编写,包含数据库的设计文件。
非常适合有一定基础的Java初学者使用。
packagecom.gujunjia.bank;/**Tochangethistemplate,chooseTools|Templates*andopenthetemplateintheeditor.*/importjava.sql.*;/****@authorgujunjia*/publicclassDataBase{ staticConnectionconn; staticPreparedStatementst; staticResultSetrs; /** *加载驱动 */ publicstaticvoidloadDriver() { try { Class.forName("com.mysql.jdbc.Driver"); } catch(ClassNotFoundExceptione) { System.out.println("加载驱动失败"); } } /** *创建数据库的连接 * *@paramdatabase *需要访问的数据库的名字 */ publicstaticvoidconnectionDatabase(Stringdatabase) { try { Stringurl="jdbc:mysql://localhost:3306/"+database; Stringusername="root"; Stringpassword="gujunjia"; conn=DriverManager.getConnection(url,username,password); } catch(SQLExceptione) { System.out.println(e.getMessage()); } } /** *关闭数据库连接 */ publicstaticvoidcloseConnection() { if(rs!=null) {//关闭记录集 try { rs.close(); } catch(SQLExceptione) { e.printStackTrace(); } } if(st!=null) {//关闭声明 try { st.close(); } catch(SQLExceptione) { e.printStackTrace(); } } if(conn!=null) {//关闭连接对象 try { conn.close(); } catch(SQLExceptione) { e.printStackTrace(); } } }}packagecom.gujunjia.bank;/**Tochangethistemplate,chooseTools|Templates*andopenthetemplateintheeditor.*/importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;/***本类次要实现整个系统的界面**@authorgujunjia*/publicclassMainFrameextendsJFrameimplementsActionListener,FocusListener{ /** * */ privatestaticfinallongserialVersionUID=1L; publicstaticStringuserId; JTextFielduserIdText; JPasswordFieldpasswordText; JButtonregisterButton; JButtonlogInButton; publicMainFrame() { super("个人银行系统
2020/11/9 14:44:46 132KB Java 银行转账
1
7.4.1126-Nov-18RADStudio10.3RioissupportedSupportofUPPERandLOWERfunctionsforUnifiedSQLisaddedBugwithusingtheFieldOriginspropertyisfixedBugwithusingtheTrimFixedCharpropertyisfixedBugwithsavingadatasetthatcontainsBLOBfieldstoXMLisfixedBugwiththeRefreshmethodofTVirualQueryisfixedBugwithhandlingBCDfieldsinTVirtualQueryisfixedBugwithupdatingfieldswhichhavedatatypemappinginTVirtualQueryisfixedOracledataproviderOracle18cissupportedImplicitresultsetsinOracle12aresupportedBugwithdetectingtimezonewhenconnectingintheDirectmodeisfixedBugwithusinganextendedstringinDMLstatementsinOracle12isfixedBugwithusingtheIFILEoptioninTNSNAMES.ORAisfixedSQLServerdataproviderQuoteNamesoptioninTUniLoadertoescapefieldnamesisaddedBugwithmappingaTEXTfieldtoftWideMemoinDelphiisfixedBugwithSQLstatementscontainingaCONTAINSpredicateintheWHEREclauseisfixedBugwithapplicationfreezingwhenexecutingastoredprocedureisfixedBugwitheditingtheConnectStringpropertyinTUniConnectionindesign-timeeditorisfixedBugwithXMLfieldtypeswhenclearingdataisfixedBugwithsetting"MSOLEDBSQL.1"valuefortheTUniConnection.ConnectStringpropertyisfixedMySQLdataproviderSupportforPAMandWindowsauthenticationsisaddedBuginTUniDumpwithbackupingstoredproceduresinMySQL8isfixedBugwithdescribingbinaryfieldsisfixedInterBasedataproviderPossibilitytowritelargeblobsbypiecesisaddedPostgreSQLdataproviderPostgreSQL11issupportedSQLitedataproviderSupportfortheBreakExecmethodintheQuerycomponentisaddedBuginTUniDumpwithdumpingnationalcharacterswhenUseUnicodeisTrueisfixedASEdataproviderBugwithAssignConnectisfixedMongoDBdataproviderBugwithre-settingaqueryfortheQuerycomponentisfixedDBFdataproviderDetectionofthefileformatwhentheDBFFormatoption
2018/4/26 3:08:06 98.62MB UNIDAC delphi
1
在java开发中常需要将ResultSet结果集转化为json格式以实现与客服端实现数据交互,但是这需要几个包,而且版本也要对应,因而我收集了全部的包,并测试可以运行,放在这里供大家下载。
包括:commons-beanutils-1.7.0.jar,commons-collections-3.2.jar,commons-lang-2.0.jar,ezmorph-1.0.2.jar,json-lib-2.4-jdk15.jar,还有一个我写的将ResultSet转json的例子。
2017/2/20 21:54:52 1019KB java ResultSet json commons-beanutils-1.7.0.jar
1
名称:PowerBuilder8参考手册ISBN7-900088-83-0著译:张长富、李匀日期:2002年4月第1版印数:3000定价:78元开本:16开平装页数:800印刷:黑白介质:1本书(含1CD)(注:找不到书本带的CD内容,不好意思。
)内容简介本书全面地介绍PowerBuilder8应用程序的技术知识和使用技巧,全书由7章1个附录组成,主要内容包括PowerBuilder8的新特性、PowerScript语言、系统函数、所有对象的属性、事件和函数,并着重介绍了使用广泛、读者容易误解或出错的数据窗口属性的访问方法和数据窗口数据的访问方法,同时给出了可直接在应用程序中运行的大量示例,供用户编写应用程序时参考。
在本书的附录中,提供了常用WindowsAPI的调用格式和应用示例,这些API适用于Windows98、WindowsMe、Windows2000以及WindowsXP操作系统。
本书采用按对象介绍对象属性、事件、函数的方法。
独具匠心的编排让读者能够快速抓住各对象的精髓,最大可能地避免了凌乱和繁杂。
全书融入了作者多年来开发PowerBuilder和数据库应用程序的经验和体会,期望读者能够快速掌握开发PowerBuilder应用程序的精髓,避免走弯路。
本书不但是从事PowerBuilder开发各种应用程序的计算机软件开发人员重要的指导书,同时也是各高校相关专业师生教学、自学参考书和社会相关培训班推荐教材。
本版CD内容包括本版电子书。
目录第0章PowerBuilder8的新特性0.1 用户界面0.2 Web功能0.3 数据窗口的新特性0.4 EAServer集成0.5 数据库连接0.6 PowerScript的新特性0.7 进一步提高的易用性和其它增强特性第1章 PowerScript语言1.1 PowerBuilder应用程序的体系结构与开发步骤1.2 语言基础1.3 数据类型1.4 说明语句及变量作用域1.5 运算符1.6 创建与释放对象实例1.7 赋值语句1.8 条件语句1.9 循环语句1.10 返回语句与终止程序运行1.11 CALL语句1.12 嵌入式SQL语句1.13 例外处理语句第2章 系统函数2.1 数组函数2.2 Blob(大二进制对象)函数2.3 数据类型检查与转换函数2.4 日期、时间函数2.5 DDE客户函数2.6 DDE服务器函数2.7 文件操作函数2.8 国际化函数2.9 库管理函数2.10 数值计算函数2.11 打印与打印机设置函数2.12 注册表操作函数2.13 字符串操作函数2.14 系统与环境函数2.15 定时操作函数2.16 窗口操作函数2.17 类定义查找函数2.18 垃圾收集函数2.19 共享对象函数2.20 提供协助函数2.21 其它系统函数第3章 对象的属性、事件和函数3.1 公共对象函数3.2ADOResultSet对象3.3 应用对象(Application)3.4 数组边界(ArrayBounds)对象3.5 类定义(ClassDefinition)对象3.6 连接(Connection)对象3.7 连接信息(ConnectionInfo)对象3.8 CORBAObject对象3.9 上下文信息(ContextInformation)对象3.10 上下文关键字(ContextKeyword)对象3.11 数据存储(DataStore)对象3.12 子数据窗口(DataWindowChild)对象3.13 动态描述区(DynamicDescriptionArea)对象3.14 DynamicStagingArea对象3.15 枚举定义(EnumerationDefinition)对象3.16 枚举项定义(EnumerationItemDefinition)对象3.17 环境(Environment)对象3.18 出错(Error)对象3.19 ErrorLogging对象3.20 grAxis对象3.21 grDispAttr对象3.22 Inet对象3.23 InternetResult对象3.24 JaguarORB对象3.25 ListViewItem对象3.26 mailFileDescription对象3.27 邮件消息(mailMessage)对象3.28 邮件接收者(mailRecipient)对象3.29 邮件会话(mailSession)对象3.30 MDIClient对象3.31 菜单(Menu)对象3.32 MenuCasc
2021/3/8 8:11:39 8.28MB PowerBuilder PB 数据库开发 数据窗口
1
(含源码及报告)本程序分析了自2016年到2021年(外加)每年我国原油加工的产量,并且分析了2020年全国各地区原油加工量等,含饼状图,柱状图,折线图,数据在地图上显示。
运转本程序需要requests、bs4、csv、pandas、matplotlib、pyecharts库的支持,如果缺少某库请自行安装后再运转。
文件含6个excel表,若干个csv文件以及一个名字为render的html文件(需要用浏览器打开),直观的数据处理部分是图片以及html文件,可在地图中显示,数据处理的是excel文件。
不懂可以扫文件中二维码在QQ里面问。
2022/9/30 16:31:44 29.75MB 爬虫 python 源码软件 开发语言
1
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡