You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.xml 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0"?>
  2. <document>
  3. <properties>
  4. <author email="javajedi@users.sf.net">Tim McCune</author>
  5. <title>Java Library for MS Access</title>
  6. </properties>
  7. <body>
  8. <section name="Jackcess">
  9. <p>
  10. Jackcess is a pure Java library for reading from and writing to MS
  11. Access databases (currently supporting versions 2000-2016). It is not
  12. an application. There is no GUI. It's a library, intended for other
  13. developers to use to build Java applications. Jackcess is licensed
  14. under the <a href="http://www.apache.org/licenses/LICENSE-2.0.txt">Apache License</a>
  15. (as of version 2.1.0) and currently requires Java 8+ (as of the 3.0.0
  16. release) Take a look at our <a href="faq.html">Frequently Asked
  17. Questions</a> for more info.
  18. </p>
  19. <subsection name="Java 8+ Support (2019-02-08)">
  20. <p>
  21. Jackcess now requires Java 8+ as of the 3.0.0 release. All third
  22. party dependencies have been updated to the latest versions.
  23. Jackcess now supports Java 8+ data types like
  24. <code>LocalDateTime</code> and <code>Path</code>. Databases can now
  25. optionally return <code>Date</code> values (legacy, backwards
  26. compatible) or <code>LocalDateTime</code> values. See <a href="apidocs/com/healthmarketscience/jackcess/DateTimeType.html">DateTimeType</a>
  27. for more details.
  28. </p>
  29. </subsection>
  30. <subsection name="Expression Evaluation (2018-09-08)">
  31. <p>
  32. Have you ever wished that Jackcess could handle field "default
  33. values" (or other expressions)? Wish no longer! Experimental
  34. support for expression evaluation has finally landed in the 2.2.0
  35. release. See the <a href="apidocs/com/healthmarketscience/jackcess/expr/package-summary.html#package_description">expression package</a>
  36. javadocs for more details.
  37. </p>
  38. </subsection>
  39. <subsection name="Brand New License! (2015-04-16)">
  40. <p>
  41. Due to the generosity of Health Market Science and the efforts of
  42. the <a href="https://tika.apache.org/">Apache Tika project</a>, the
  43. OpenHMS projects have been relicensed under the <b>Apache License,
  44. Version 2.0</b> (Jackcess versions 2.1.0 and higher).
  45. </p>
  46. </subsection>
  47. <subsection name="All New: Jackcess 2.0 (2013-08-26)">
  48. <p>
  49. <b>New crunchy outside, same yummy filling!</b>
  50. </p>
  51. <p>
  52. The Jackcess project has gotten a facelift. A long-overdue overhaul
  53. of the public API has been completed, and the major version number
  54. of the Jackess APi has been changed to 2.0 in order to indicate the
  55. non-backwards compatible nature of the changes (although the
  56. underlying functionality remains unchanged). Read the
  57. <a href="jackcess-2.html">Upgrade Guide</a> for full details.
  58. </p>
  59. </subsection>
  60. </section>
  61. <section name="Sample code">
  62. <p>
  63. Here are a few snippets of code to whet your appetite. For more
  64. extensive examples, checkout the <a href="cookbook.html">cookbook</a>. And, since Jackcess is heavily
  65. unit tested, you can find even more example code in the <a href="xref-test/index.html">unit tests</a>.
  66. </p>
  67. <ul>
  68. <li>Iterating through the rows of a table:
  69. <source>Table table = DatabaseBuilder.open(new File("my.mdb")).getTable("MyTable");
  70. for(Row row : table) {
  71. System.out.println("Column 'a' has value: " + row.get("a"));
  72. }
  73. </source>
  74. </li>
  75. <li>Searching for a row with a specific column value:
  76. <source>Row row = CursorBuilder.findRow(table, Collections.singletonMap("a", "foo"));
  77. if(row != null) {
  78. System.out.println("Found row where 'a' == 'foo': " + row);
  79. } else {
  80. System.out.println("Could not find row where 'a' == 'foo'");
  81. }
  82. </source>
  83. </li>
  84. <li>Creating a new table and writing data into it:
  85. <source>Database db = DatabaseBuilder.create(Database.FileFormat.V2000, new File("new.mdb"));
  86. Table newTable = new TableBuilder("NewTable")
  87. .addColumn(new ColumnBuilder("a")
  88. .setSQLType(Types.INTEGER))
  89. .addColumn(new ColumnBuilder("b")
  90. .setSQLType(Types.VARCHAR))
  91. .toTable(db);
  92. newTable.addRow(1, "foo");
  93. </source>
  94. </li>
  95. <li>Copying the contents of a JDBC ResultSet (e.g. from an
  96. external database) into a new table:
  97. <source>Database db = DatabaseBuilder.open(new File("my.mdb"));
  98. new ImportUtil.Builder(db, "Imported").importResultSet(resultSet);
  99. db.close();</source>
  100. </li>
  101. <li>Copying the contents of a CSV file into a new table:
  102. <source>Database db = DatabaseBuilder.open(new File("my.mdb"));
  103. new ImportUtil.Builder(db, "Imported2").setDelimiter(",").importFile(new File("my.csv"));
  104. db.close();</source>
  105. </li>
  106. </ul>
  107. </section>
  108. <section name="Other Resources">
  109. <p>
  110. Some other jackcess related projects:
  111. </p>
  112. <ul>
  113. <li>
  114. <a href="https://github.com/brianb/mdbtools">mdbtools</a> - Open Source project
  115. for reading Access files, written in C.
  116. </li>
  117. <li>
  118. <a href="https://jackcessencrypt.sourceforge.io/">Jackcess
  119. Encrypt</a> - Extension library for Jackcess which implements
  120. support for some forms of Microsoft Access and Microsoft Money
  121. encryption.
  122. </li>
  123. <li>
  124. <a href="http://ucanaccess.sourceforge.net/site.html">UCanAccess</a>
  125. - Open Source pure Java JDBC Driver implementation.
  126. </li>
  127. </ul>
  128. </section>
  129. </body>
  130. </document>