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.

jackcess-4.xml 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0"?>
  2. <document>
  3. <properties>
  4. <author email="jahlborn@users.sf.net">James Ahlborn</author>
  5. <title>Upgrading from Jackcess 3.x (or 3.5.x) to 4.x</title>
  6. </properties>
  7. <body>
  8. <section name="Jackcess 4.0">
  9. <subsection name="Just give it to me straight">
  10. <p>
  11. Jackcess 4.x is largely binary compatible with the previous 3.x (and
  12. 3.5.x) versions. In order to be more "module friendly", the
  13. exceptions thrown from a few infrequently used methods have changed
  14. from <code>SQLException</code> to <code>IOException</code>. Other
  15. than that, code compiled against the 3.x series should work fine
  16. with the 4.x series.
  17. </p>
  18. <p>
  19. Even though Jackcess is now Java 9+ module compatible, <i>it still
  20. only requires Java 8+</i>. However, Jackcess can now be safely used
  21. in the module path of a Java 9+ project (with the module name of
  22. <code>com.healthmarketscience.jackcess</code>). There are a few
  23. features which require additional core Java modules to be enabled
  24. (but these modules are not required if the corresponding features
  25. are not utilized).
  26. <ul>
  27. <li><b>java.sql</b></li>
  28. <ul>
  29. <li>This module is necessary if Jackcess will need to interact
  30. with any of the classes from the <code>java.sql</code> package
  31. (e.g. handling <code>Clob</code>/<code>Blob</code> or using
  32. <code>ImportUtil</code>).</li>
  33. </ul>
  34. <li><b>java.scripting</b></li>
  35. <ul>
  36. <li>This module is necessary if expression evaluation is
  37. enabled (the default) and the database includes expressions
  38. (e.g. default values, calculated columns, validation
  39. rules, etc.).</li>
  40. </ul>
  41. </ul>
  42. </p>
  43. <h4>Working with Jackcess Encrypt</h4>
  44. <p>
  45. If you are using the <a href="https://jackcessencrypt.sourceforge.io/">Jackcess Encrypt</a>
  46. project, then you will need to use a version compatible with the
  47. relevant Jackess API. Fortunately, the major versions match, so
  48. it's pretty simple:
  49. </p>
  50. <ul>
  51. <li>Jackcess 4.x -&gt; Jackcess Encrypt 4.y</li>
  52. <li>Jackcess 3.x -&gt; Jackcess Encrypt 3.y</li>
  53. <li>Jackcess 2.x -&gt; Jackcess Encrypt 2.y</li>
  54. <li>Jackcess 1.x -&gt; Jackcess Encrypt 1.y</li>
  55. </ul>
  56. </subsection>
  57. </section>
  58. </body>
  59. </document>