From 64f98b1d1067fbaa4d7cf2a825e682f845c600a7 Mon Sep 17 00:00:00 2001
From: James Ahlborn
@@ -68,17 +74,71 @@
Where's the data? While a Cursor
is the best way to interact with the data in a Table, for the sake
- of simplicity when just getting started we will use the simplified
+ of simplicity when just getting started, we will use the simplified
iteration provided by the Table class itself. When reading row
data, it is generally provided as a Map<String,Object>
where the keys are the column
names and the values are the strongly typed column values.
+ So, what's in a row? Well, let's assume your "Test" table is + defined in the following way in Access: +
++++
++ +Field Name Data Type ++ +ID AutoNumber (Long Integer) ++ +Name Text ++ +Salary Currency ++ +StartDate Date/Time +
+ Then, given a row of data, we could inspect the various Columns and + their values like so: +
+ ++ As you can see in this example (and as previously mentioned), the + row values are strongly typed Java objects. In Jackcess, the + column types are represented by a Java enum named DataType. + The DataType javadoc details the Java types used to return row + values as well as the value types which are acceptable inputs for + new rows (more on this later). One other thing to note in this + example is that the column names in the row Map are case + sensitive strings. +