pst

JFinal保存对象后可以取出主键

我怕爱的太早我们不能终老 提交于 2019-11-26 19:51:40
JFinal保存对象后可以取出主键,即使这个主键是数据库自增长的。 今天无意中发现,JFinal保存对象后可以把主键取出来,我的数据库表主键都是自增的。比如 Blog blog = getModel(Blog.class);//这里没有存放id blog.save(); System.out.println(blog.getInt("id"));//这里居然可以取出来。 今天研究的半天,最后在大家的帮助下终于明白是怎么实现的了。Model类的源码如下: public boolean save() { Config config = getConfig(); Table table = getTable(); StringBuilder sql = new StringBuilder(); List<Object> paras = new ArrayList<Object>(); config.dialect.forModelSave(table, attrs, sql, paras); // if (paras.size() == 0) return false; // The sql "insert into tableName() values()" works fine, so delete this line // -------- Connection conn =

Can I read an Outlook (2003/2007) PST file in C#?

こ雲淡風輕ζ 提交于 2019-11-26 18:11:00
Is it possible to read a .PST file using C#? I would like to do this as a standalone application, not as an Outlook addin (if that is possible). If have seen other SO questions similar to this mention MailNavigator but I am looking to do this programmatically in C#. I have looked at the Microsoft.Office.Interop.Outlook namespace but that appears to be just for Outlook addins. LibPST appears to be able to read PST files, but this is in C (sorry Joel, I didn't learn C before graduating ). Any help would be greatly appreciated, thanks! EDIT: Thank you all for the responses! I accepted Matthew

Outlook PST File Parsing in Python [closed]

别说谁变了你拦得住时间么 提交于 2019-11-26 16:51:14
问题 How can I parse and read an outlook pst file in Python? 回答1: I have only ever poked at libpst docs, but it looks like the libpst-python package might work for you: libpst-python 回答2: pypff is a python wrapper for the C library libpff that allows you to access email and the directory structure of Pst files within python. Do a make of the library with the specified command to install the python bindings. Then you should be able to open up the python console and browse through Pst files. import

oracle数据库插入一条记录同时返回该记录的id值

我的未来我决定 提交于 2019-11-26 14:21:21
/** * 新增书籍类型 * @param bookType 书籍类型对象 * @return 书籍类型id * @throws SQLException */ public int addBookType(BookType bookType) throws SQLException{ Connection con = MyDBUtil.getConnection(); String sql = "insert into booktype(title,detail) values(?,?)"; PreparedStatement pst = con.prepareStatement(sql,Statement.RETURN_GENERATED_KEYS); pst.setString(1, bookType.getTitle()); pst.setString(2, bookType.getDetail()); pst.execute(); ResultSet rs = pst.getGeneratedKeys(); rs.next(); int id = rs.getInt("id"); rs.close(); pst.close(); con.close(); return id; } 来源: CSDN 作者: 绿源2008 链接: https://blog.csdn.net

在 Microsft Outlook 中修复 .ost 或 .pst 文件

雨燕双飞 提交于 2019-11-26 10:14:06
在 Microsft Outlook 中修复 .ost 或 .pst 文件 如果您的计算机内存有 Microsoft Outlook® 数据,那么您就正在使用个人文件夹文件 (.pst) 或脱机文件夹文件 (.ost)。为防止数据丢失,您需要知道如何修复这些文件。 如果您的 .pst 文件受到损坏,Outlook 中包含的一个工具可能能修复故障,而不用切换到备份副本中。该工具为收件箱修复工具,是在您安装 Outlook 时安装到硬盘上的。 如果您的 .ost 文件受到损坏,Outlook 中包含的一个工具可能能修复故障。该工具为 OST 集成工具,能扫描和修复 .ost 文件。如果该工具不能彻底解决问题,您可禁用该 .ost 文件并新建一个 .ost 文件。 修复个人文件夹文件 (.pst) 如果打开 Outlook 的 .pst 文件时收到以下信息,您也许需要使用收件箱修复工具: 不能展开文件夹。不能打开文件夹集。在文件 drive:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook\Outlook.pst 中可能检测到错误。退出所有邮件启用的应用程序,然后使用收件箱修复工具。 注意 该信息指定的文件路径可能会因计算机使用的操作系统而有所不同。 要修复 .pst 文件 在

javaBean和数据层的DAO设计模式

我们两清 提交于 2019-11-26 10:09:39
jsp:javaBean 一、javaBean简介 javaBean是使用java语言开发的一个人可重用的组件,在jsp开发中可以使用javaBean减少重复的代码,是一种特殊的java类,使用java语言编写,遵循javaBean API规范 优点 将html和java代码分离,这主要是为了日后的维护方便 减少代码重复 在jsp中如果要应用jsp提供的javaBean的标签来操作简单类,则此类要满足以下要求: 所有类都要在一个包中,在web项目中没有包的类时不存在的。 所有类必须是public修饰,这样才能被外界访问。 提供一个默认的无参构造函数。 需要被序列化并且实现了 Serializable 接口。 可能有一系列可读写属性。(可能的意思就是除了private修饰的字段,也可以有其他修饰符修饰的字段,但是必须至少要有一个private修饰的字段) 可能有一系列的 getter 或 setter 方法。 二、在jsp中使用javaBean 一个javaBean编写结束后,需要进行打包编译,那么存放到哪里呢? classes目录保存所有的javaBean,如果不存在则可以手动创建(WEBAPP/WEB-INFO/classes) 引入useBean 打包编译 直接使用javac -d.类名,根据该类的路径的定义来打包编译变为class文件,在web开发中