[html5] r1052 - /

whatwg at whatwg.org whatwg at whatwg.org
Fri Oct 12 00:13:16 PDT 2007


Author: ianh
Date: 2007-10-12 00:13:15 -0700 (Fri, 12 Oct 2007)
New Revision: 1052

Modified:
   index
   source
Log:
[] (0) Change 'rows' from an Array to a custom object.

Modified: index
===================================================================
--- index	2007-10-12 05:36:26 UTC (rev 1051)
+++ index	2007-10-12 07:13:15 UTC (rev 1052)
@@ -30310,22 +30310,15 @@
    href="#sqlresultset">SQLResultSet</a></code> object.
 
   <pre class=idl>interface <dfn id=sqlresultset>SQLResultSet</dfn> {
-  readonly attribute Array <a href="#rows1" title=dom-SQLResultSet-rows>rows</a>;
   readonly attribute int <a href="#insertid" title=dom-SQLResultSet-insertId>insertId</a>;
   readonly attribute int <a href="#rowsaffected" title=dom-SQLResultSet-rowsAffected>rowsAffected</a>;
   readonly attribute unsigned int <span title=dom-SQLResultSet-errorCode>errorCode</span>;
   readonly attribute DOMString <a href="#error2" title=dom-SQLResultSet-error>error</a>;
+
+  // the actual data
+  readonly attribute <a href="#sqlresultsetrowlist">SQLResultSetRowList</a> <a href="#rows1" title=dom-SQLResultSet-rows>rows</a>;
 };</pre>
 
-  <p>The <dfn id=rows1 title=dom-SQLResultSet-rows><code>rows</code></dfn>
-   attribute must return a native array of objects, one per row returned, in
-   the order returned by the database. Each object returned must have one
-   property per column, enumerating in the order that these columns were
-   returned by the database. Each property must have the name of the column
-   as it was returned by the database. If the SQL statement failed, then
-   <code title=dom-SQLResultSet-rows><a href="#rows1">rows</a></code> must
-   return null.
-
   <p>The <dfn id=insertid
    title=dom-SQLResultSet-insertId><code>insertId</code></dfn> attribute must
    return the row ID of the row that the <code><a
@@ -30386,6 +30379,40 @@
    language, describing the error encountered by the last statement. If there
    was no error, the attribute's value must be the empty string.
 
+  <p>The <dfn id=rows1 title=dom-SQLResultSet-rows><code>rows</code></dfn>
+   attribute must return a <code><a
+   href="#sqlresultsetrowlist">SQLResultSetRowList</a></code> representing
+   the rows returned, in the order returned by the database. If no rows were
+   returned, then the object will be empty. If the SQL statement failed, then
+   <code title=dom-SQLResultSet-rows><a href="#rows1">rows</a></code> must
+   return null.
+
+  <pre
+   class=idl>interface <dfn id=sqlresultsetrowlist>SQLResultSetRowList</dfn> {
+  readonly attribute unsigned long <a href="#length9" title=dom-SQLResultSetRowList-length>length</a>;
+  <code>DOMObject</code> <a href="#itemindex5" title=dom-SQLResultSetRowList-item>item</a>(in unsigned long index);
+};</pre>
+
+  <p><code><a href="#sqlresultsetrowlist">SQLResultSetRowList</a></code>
+   objects have a <dfn id=length9
+   title=dom-SQLResultSetRowList-length><code>length</code></dfn> attribute
+   that must return the number of rows it represents (the number of rows
+   returned by the database).
+
+  <p>The <dfn id=itemindex5
+   title=dom-SQLResultSetRowList-item><code>item(<var
+   title="">index</var>)</code></dfn> attribute must return the row with the
+   given index <var title="">index</var>. If there is no such row, then the
+   method must raise an <code>INDEX_SIZE_ERR</code> exception.
+
+  <p>Each row must be represented by a native ordered dictionary data type.
+   In the ECMAScript binding, this must be <code><a
+   href="#object">Object</a></code>. Each row object must have one property
+   (or dictionary entry) per column, with those properties enumerating in the
+   order that these columns were returned by the database. Each property must
+   have the name of the column and the value of the cell, as they were
+   returned by the database.
+
   <h4 id=privacy><span class=secno>4.11.5. </span>Privacy</h4>
 
   <p>In contrast with the <code title=dom-globalStorage><a
@@ -33266,7 +33293,7 @@
   void <a href="#clearundo" title=dom-UndoManager-clearUndo>clearUndo</a>();
   void <a href="#clearredo" title=dom-UndoManager-clearRedo>clearRedo</a>();
   DOMObject <a href="#itemn" title=dom-UndoManager-item>item</a>(in unsigned long index);
-  readonly attribute unsigned long <a href="#length9" title=dom-UndoManager-length>length</a>;
+  readonly attribute unsigned long <a href="#length10" title=dom-UndoManager-length>length</a>;
   readonly attribute unsigned long <a href="#position0" title=dom-UndoManager-position>position</a>;
 };</pre>
 
@@ -33291,7 +33318,7 @@
    entries are absent from the <a href="#undo-transaction">undo transaction
    history</a>.
 
-  <p>The <dfn id=length9
+  <p>The <dfn id=length10
    title=dom-UndoManager-length><code>length</code></dfn> attribute must
    return the number of <a href="#undo-object">undo object</a> entries in the
    <a href="#undo-transaction">undo transaction history</a>.
@@ -33315,7 +33342,7 @@
    nearest to the <a href="#current3">undo position</a>, on the "redo" side.
    If there are no <a href="#undo-object">undo object</a> entries on the
    "redo" side, then the attribute must return the same as the <code
-   title=dom-UndoManager-length><a href="#length9">length</a></code>
+   title=dom-UndoManager-length><a href="#length10">length</a></code>
    attribute. If there are no <a href="#undo-object">undo object</a> entries
    on the "undo" side of the <a href="#current3">undo position</a>, the <code
    title=dom-UndoManager-position><a href="#position0">position</a></code>
@@ -33362,7 +33389,7 @@
    href="#undo-object">undo object</a> entry with the specified <var
    title="">index</var>. If the index is less than zero or greater than or
    equal to <code title=dom-UndoManager-length><a
-   href="#length9">length</a></code> then the method must raise an
+   href="#length10">length</a></code> then the method must raise an
    <code>INDEX_SIZE_ERR</code> exception. <a href="#dom-changes">DOM
    changes</a> entries are unaffected by this method.
 

Modified: source
===================================================================
--- source	2007-10-12 05:36:26 UTC (rev 1051)
+++ source	2007-10-12 07:13:15 UTC (rev 1052)
@@ -27932,22 +27932,15 @@
   <code>SQLResultSet</code> object.</p>
 
   <pre class="idl">interface <dfn>SQLResultSet</dfn> {
-  readonly attribute Array <span title="dom-SQLResultSet-rows">rows</span>;
   readonly attribute int <span title="dom-SQLResultSet-insertId">insertId</span>;
   readonly attribute int <span title="dom-SQLResultSet-rowsAffected">rowsAffected</span>;
   readonly attribute unsigned int <span title="dom-SQLResultSet-errorCode">errorCode</span>;
   readonly attribute DOMString <span title="dom-SQLResultSet-error">error</span>;
+
+  // the actual data
+  readonly attribute <span>SQLResultSetRowList</span> <span title="dom-SQLResultSet-rows">rows</span>;
 };</pre>
 
-  <p>The <dfn title="dom-SQLResultSet-rows"><code>rows</code></dfn>
-  attribute must return a native array of objects, one per row
-  returned, in the order returned by the database. Each object
-  returned must have one property per column, enumerating in the order
-  that these columns were returned by the database. Each property must
-  have the name of the column as it was returned by the database. If
-  the SQL statement failed, then <code
-  title="dom-SQLResultSet-rows">rows</code> must return null.</p>
-
   <p>The <dfn
   title="dom-SQLResultSet-insertId"><code>insertId</code></dfn>
   attribute must return the row ID of the row that the
@@ -28009,6 +28002,39 @@
   string.</p>
 
 
+  <p>The <dfn title="dom-SQLResultSet-rows"><code>rows</code></dfn>
+  attribute must return a <code>SQLResultSetRowList</code>
+  representing the rows returned, in the order returned by the
+  database. If no rows were returned, then the object will be
+  empty. If the SQL statement failed, then <code
+  title="dom-SQLResultSet-rows">rows</code> must return null.</p>
+
+  <pre class="idl">interface <dfn>SQLResultSetRowList</dfn> {
+  readonly attribute unsigned long <span title="dom-SQLResultSetRowList-length">length</span>;
+  <code>DOMObject</code> <span title="dom-SQLResultSetRowList-item">item</span>(in unsigned long index);
+};</pre>
+
+  <p><code>SQLResultSetRowList</code> objects have a <dfn
+  title="dom-SQLResultSetRowList-length"><code>length</code></dfn>
+  attribute that must return the number of rows it represents (the
+  number of rows returned by the database).</p>
+
+  <p>The <dfn title="dom-SQLResultSetRowList-item"><code>item(<var
+  title="">index</var>)</code></dfn> attribute must return the row
+  with the given index <var title="">index</var>. If there is no such
+  row, then the method must raise an <code>INDEX_SIZE_ERR</code>
+  exception.</p>
+
+  <p>Each row must be represented by a native ordered dictionary data
+  type. In the ECMAScript binding, this must be <code>Object</code>.
+  Each row object must have one property (or dictionary entry) per
+  column, with those properties enumerating in the order that these
+  columns were returned by the database. Each property must have the
+  name of the column and the value of the cell, as they were returned
+  by the database.</p>
+
+
+
   <h4>Privacy</h4>
 
   <p>In contrast with the <code




More information about the Commit-Watchers mailing list