From 6f2b4edfebf72dc7a2dc1df16ce628112d66de99 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Thu, 24 May 2012 14:25:39 +0000 Subject: enhance javadoc git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@624 f203690c-595d-4dc9-a70b-905162fa7fd2 --- .../com/healthmarketscience/jackcess/Table.java | 24 +++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/src/java/com/healthmarketscience/jackcess/Table.java b/src/java/com/healthmarketscience/jackcess/Table.java index 2a00126..6a6b807 100644 --- a/src/java/com/healthmarketscience/jackcess/Table.java +++ b/src/java/com/healthmarketscience/jackcess/Table.java @@ -1372,14 +1372,21 @@ public class Table } /** - * Add a single row to this table and write it to disk + * Adds a single row to this table and writes it to disk. The values are + * expected to be given in the order that the Columns are listed by the + * {@link #getColumns} method. This is by default the storage order of the + * Columns in the database, however this order can be influenced by setting + * the ColumnOrder via {@link Database#setColumnOrder} prior to opening the + * Table. The {@link #asRow} method can be used to easily convert a row Map into the + * appropriate row array for this Table. *

- * Note, if this table has an auto-number column, the value written will be - * put back into the given row array. + * Note, if this table has an auto-number column, the value generated will be + * put back into the given row array (assuming the given row array is at + * least as long as the number of Columns in this Table). * - * @param row row values for a single row. the row will be modified if - * this table contains an auto-number column, otherwise it - * will not be modified. + * @param row row values for a single row. the given row array will be + * modified if this table contains an auto-number column, + * otherwise it will not be modified. * @usage _general_method_ */ public void addRow(Object... row) throws IOException { @@ -1392,7 +1399,10 @@ public class Table * is much more efficient than calling addRow multiple times. *

* Note, if this table has an auto-number column, the values written will be - * put back into the given row arrays. + * put back into the given row arrays (assuming the given row array is at + * least as long as the number of Columns in this Table). + * + * @see #addRow(Object...) for more details on row arrays * * @param rows List of Object[] row values. the rows will be modified if * this table contains an auto-number column, otherwise they -- cgit v1.2.3