1

I would like to know how to set autocommit to false for the Microsoft dBase driver, which use is for example presented in https://stackoverflow.com/a/8079987/613495

Using connection.setAutoCommit(false) method throws java.sql.SQLException: [Microsoft][ODBC dBase Driver]Optional feature not implemented

If such functionality is in fact not supported, then do you know of any other free driver for DBFs?

4

2 回答 2

1

The underlying driver does not support transactions. Unfortunately it appears that the only reasonable option is HXTT.

reference Read/Write xBASE (DBASE 3-5 /DBF) files

于 2012-02-13T13:35:30.720 回答
1

当我需要修复 OpenOffice 参考书目时,我正在使用KObjects Jdbcwrapper项目来访问 DBF 文件(您可以在此处查看我的源代码)。

它为我的阅读目的做好了它的工作(只是我需要修复的一个与编码相关的小问题),但是我没有用它来写作。

我可以看到据说也支持写作 - 至少有一些代码DbaseTable.java,所以它很可能对你有用。

是 LGPL。

于 2012-02-20T09:42:55.590 回答