選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

index.xml 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 ia a pure Java library for reading from and
  11. writing to MS Access databases. It is not an application.
  12. There is no GUI. It's a library, intended for other
  13. developers to use to build Java applications.
  14. Jackcess is licensed under the
  15. <a href="http://www.gnu.org/copyleft/lesser.html">GNU Lesser General Public License</a>.
  16. Take a look
  17. at our <a href="faq.html">Frequently Asked Questions</a>
  18. for more info.
  19. </p>
  20. </section>
  21. <section name="Sample code">
  22. <p>
  23. <ul>
  24. <li>Displaying the contents of a table:
  25. <pre>Database.open(new File("my.mdb")).getTable("MyTable").display();</pre>
  26. </li>
  27. <li>Creating a new table and writing data into it:
  28. <pre>Database db = Database.create(new File("new.mdb"));
  29. Column a = new Column();
  30. a.setName("a");
  31. a.setSQLType(Types.INTEGER);
  32. Column b = new Column();
  33. b.setName("b");
  34. b.setSQLType(Types.VARCHAR);
  35. db.createTable("NewTable", Arrays.asList(a, b));
  36. Table newTable = db.getTable("NewTable");
  37. newTable.addRow(new Object[] {1, "foo"});</pre>
  38. </li>
  39. <li>Copying the contents of a JDBC ResultSet (e.g. from an
  40. external database) into a new table:
  41. <pre>Database.open(new File("my.mdb")).copyTable("Imported", resultSet);</pre>
  42. </li>
  43. <li>Copying the contents of a CSV file into a new table:
  44. <pre>Database.open(new File("my.mdb")).importFile("Imported2", new File("my.csv"), ",");</pre>
  45. </li>
  46. </ul>
  47. </p>
  48. </section>
  49. </body>
  50. </document>