summaryrefslogtreecommitdiffstats
path: root/src/site/xdoc/index.xml
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2007-11-02 03:48:53 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2007-11-02 03:48:53 +0000
commit07034fd3ff42e7fd5a394c5dab44dce91c186070 (patch)
tree1a0fe6220dfa2a511d30f4d0932d13887a3863be /src/site/xdoc/index.xml
parent622e957cce35487fe01676d277cde3449030a13d (diff)
downloadjackcess-07034fd3ff42e7fd5a394c5dab44dce91c186070.tar.gz
jackcess-07034fd3ff42e7fd5a394c5dab44dce91c186070.zip
move to maven2
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@167 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/site/xdoc/index.xml')
-rw-r--r--src/site/xdoc/index.xml51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml
new file mode 100644
index 0000000..854ea23
--- /dev/null
+++ b/src/site/xdoc/index.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+
+<document>
+ <properties>
+ <author email="javajedi@users.sf.net">Tim McCune</author>
+ <title>Java Library for MS Access</title>
+ </properties>
+ <body>
+ <section name="Jackcess">
+ <p>
+ Jackcess is a pure Java library for reading from and writing to MS
+ Access databases. It is part of the <a href="http://openhms.sourceforge.net/">OpenHMS</a> project from <a href="http://www.healthmarketscience.com/">Health Market Science, Inc.</a>. It is not an application. There is no GUI. It's a
+ library, intended for other developers to use to build Java
+ applications. Jackcess is licensed under the
+
+ <a href="http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt">GNU Lesser General Public License</a>.
+ Take a look
+ at our <a href="faq.html">Frequently Asked Questions</a>
+ for more info.
+ </p>
+ </section>
+ <section name="Sample code">
+ <p>
+ <ul>
+ <li>Displaying the contents of a table:
+ <pre>System.out.println(Database.open(new File("my.mdb")).getTable("MyTable").display());</pre>
+ </li>
+ <li>Creating a new table and writing data into it:
+ <pre>Database db = Database.create(new File("new.mdb"));
+Column a = new Column();
+a.setName("a");
+a.setSQLType(Types.INTEGER);
+Column b = new Column();
+b.setName("b");
+b.setSQLType(Types.VARCHAR);
+db.createTable("NewTable", Arrays.asList(a, b));
+Table newTable = db.getTable("NewTable");
+newTable.addRow(new Object[] {1, "foo"});</pre>
+ </li>
+ <li>Copying the contents of a JDBC ResultSet (e.g. from an
+external database) into a new table:
+ <pre>Database.open(new File("my.mdb")).copyTable("Imported", resultSet);</pre>
+ </li>
+ <li>Copying the contents of a CSV file into a new table:
+ <pre>Database.open(new File("my.mdb")).importFile("Imported2", new File("my.csv"), ",");</pre>
+ </li>
+ </ul>
+ </p>
+ </section>
+ </body>
+</document>