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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. and the <a href="jackcess-3.html">Upgrade Guide</a> 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. </section>
  48. <section name="Sample code">
  49. <p>
  50. Here are a few snippets of code to whet your appetite. For more
  51. extensive examples, checkout the <a href="cookbook.html">cookbook</a>. And, since Jackcess is heavily
  52. unit tested, you can find even more example code in the <a href="xref-test/index.html">unit tests</a>.
  53. </p>
  54. <ul>
  55. <li>Iterating through the rows of a table:
  56. <source>Table table = DatabaseBuilder.open(new File("my.mdb")).getTable("MyTable");
  57. for(Row row : table) {
  58. System.out.println("Column 'a' has value: " + row.get("a"));
  59. }
  60. </source>
  61. </li>
  62. <li>Searching for a row with a specific column value:
  63. <source>Row row = CursorBuilder.findRow(table, Collections.singletonMap("a", "foo"));
  64. if(row != null) {
  65. System.out.println("Found row where 'a' == 'foo': " + row);
  66. } else {
  67. System.out.println("Could not find row where 'a' == 'foo'");
  68. }
  69. </source>
  70. </li>
  71. <li>Creating a new table and writing data into it:
  72. <source>Database db = DatabaseBuilder.create(Database.FileFormat.V2000, new File("new.mdb"));
  73. Table newTable = new TableBuilder("NewTable")
  74. .addColumn(new ColumnBuilder("a")
  75. .setSQLType(Types.INTEGER))
  76. .addColumn(new ColumnBuilder("b")
  77. .setSQLType(Types.VARCHAR))
  78. .toTable(db);
  79. newTable.addRow(1, "foo");
  80. </source>
  81. </li>
  82. <li>Copying the contents of a JDBC ResultSet (e.g. from an
  83. external database) into a new table:
  84. <source>Database db = DatabaseBuilder.open(new File("my.mdb"));
  85. new ImportUtil.Builder(db, "Imported").importResultSet(resultSet);
  86. db.close();</source>
  87. </li>
  88. <li>Copying the contents of a CSV file into a new table:
  89. <source>Database db = DatabaseBuilder.open(new File("my.mdb"));
  90. new ImportUtil.Builder(db, "Imported2").setDelimiter(",").importFile(new File("my.csv"));
  91. db.close();</source>
  92. </li>
  93. </ul>
  94. </section>
  95. <section name="Other Resources">
  96. <p>
  97. Some other jackcess related projects:
  98. </p>
  99. <ul>
  100. <li>
  101. <a href="https://github.com/brianb/mdbtools">mdbtools</a> - Open Source project
  102. for reading Access files, written in C.
  103. </li>
  104. <li>
  105. <a href="https://jackcessencrypt.sourceforge.io/">Jackcess
  106. Encrypt</a> - Extension library for Jackcess which implements
  107. support for some forms of Microsoft Access and Microsoft Money
  108. encryption.
  109. </li>
  110. <li>
  111. <a href="http://ucanaccess.sourceforge.net/site.html">UCanAccess</a>
  112. - Open Source pure Java JDBC Driver implementation.
  113. </li>
  114. </ul>
  115. </section>
  116. </body>
  117. </document>