diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2008-01-10 21:02:44 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2008-01-10 21:02:44 +0000 |
commit | 498237758c3156811636f25dcb6231bab52d4759 (patch) | |
tree | d5c832fe8ce24ce04dfd6c9a4558840bdc493ef7 /src/site/xdoc/index.xml | |
parent | fd4edb5f654f4f6e913c4f657d295365b401a694 (diff) | |
download | jackcess-498237758c3156811636f25dcb6231bab52d4759.tar.gz jackcess-498237758c3156811636f25dcb6231bab52d4759.zip |
use source instead of pre tag
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@211 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/site/xdoc/index.xml')
-rw-r--r-- | src/site/xdoc/index.xml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml index 3a07c6d..cd99600 100644 --- a/src/site/xdoc/index.xml +++ b/src/site/xdoc/index.xml @@ -23,10 +23,10 @@ <p> <ul> <li>Displaying the contents of a table: - <pre>System.out.println(Database.open(new File("my.mdb")).getTable("MyTable").display());</pre> + <source>System.out.println(Database.open(new File("my.mdb")).getTable("MyTable").display());</source> </li> <li>Creating a new table and writing data into it: - <pre>Database db = Database.create(new File("new.mdb")); + <source>Database db = Database.create(new File("new.mdb")); Column a = new Column(); a.setName("a"); a.setSQLType(Types.INTEGER); @@ -35,14 +35,14 @@ 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> +newTable.addRow(new Object[] {1, "foo"});</source> </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> + <source>Database.open(new File("my.mdb")).copyTable("Imported", resultSet);</source> </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> + <source>Database.open(new File("my.mdb")).importFile("Imported2", new File("my.csv"), ",");</source> </li> </ul> </p> |