]> source.dussan.org Git - jackcess.git/commitdiff
tweak example
authorJames Ahlborn <jtahlborn@yahoo.com>
Mon, 18 Jan 2021 17:17:48 +0000 (17:17 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Mon, 18 Jan 2021 17:17:48 +0000 (17:17 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/modules@1352 f203690c-595d-4dc9-a70b-905162fa7fd2

src/site/xdoc/index.xml

index 6cef4a62fcc4ad71cb33e8b43dbe65dae284d745..9a9d7a16e976fab36987f5155a81c38c04dffd81 100644 (file)
@@ -89,10 +89,8 @@ if(row != null) {
           <li>Creating a new table and writing data into it:
             <source>Database db = DatabaseBuilder.create(Database.FileFormat.V2000, new File("new.mdb"));
 Table newTable = new TableBuilder("NewTable")
-  .addColumn(new ColumnBuilder("a")
-             .setSQLType(Types.INTEGER))
-  .addColumn(new ColumnBuilder("b")
-             .setSQLType(Types.VARCHAR))
+  .addColumn(new ColumnBuilder("a", DataType.LONG))
+  .addColumn(new ColumnBuilder("b", DataType.TEXT))
   .toTable(db);
 newTable.addRow(1, "foo");
 </source>