Show
Ignore:
Timestamp:
03/22/08 14:40:09 (10 months ago)
Author:
uriel
Message:

*updated docs
*changed version to 0.2.1

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • GearsORM/trunk/docs/files/GearsORM-ResultIterator-js.html

    r329 r414  
    11<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> 
    22 
    3 <html><head><title>GearsORM.ResultIterator.js</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/searchdata.js"></script></head><body id=ContentPage onLoad="NDOnLoad()"><script language=JavaScript><!-- 
    4 if (browserType) {document.write("<div id=" + browserType + ">");if (browserVer) {document.write("<div id=" + browserVer + ">"); }}// --></script> 
     3<html><head><title>GearsORM.ResultIterator.js</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class=UnframedPage onLoad="NDOnLoad()"><script language=JavaScript><!-- 
     4if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> 
    55 
    6 <!--  Generated by Natural Docs, version Development Release 02-10-2007 (1.35 base) --> 
     6<!--  Generated by Natural Docs, version 1.35 --> 
    77<!--  http://www.naturaldocs.org  --> 
    88 
    99<!-- saved from url=(0026)http://www.naturaldocs.org --> 
    1010 
     11<table border=0 cellspacing=0 cellpadding=0 width=100%><tr><td class=MenuSection valign=top><!--START_ND_MENU--><div class=MEntry><div class=MFile><a href="GearsORM-Events-js.html">Events.js</a></div></div><div class=MEntry><div class=MFile><a href="GearsORM-Fields-js.html">Fields.js</a></div></div><div class=MEntry><div class=MFile><a href="GearsORM-Introspection-js.html">Introspection.js</a></div></div><div class=MEntry><div class=MFile><a href="GearsORM-js.html">js</a></div></div><div class=MEntry><div class=MFile><a href="GearsORM-Model-js.html">Model.js</a></div></div><div class=MEntry><div class=MFile id=MSelected>ResultIterator.js</div></div><div class=MEntry><div class=MFile><a href="GearsORM-Sql-js.html">Sql.js</a></div></div><div class=MEntry><div class=MFile><a href="GearsORM-Transaction-js.html">Transaction.js</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MIndex><a href="../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Files.html">Files</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Functions.html">Functions</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Properties.html">Properties</a></div></div></div></div></div><!--END_ND_MENU--></td> 
    1112 
     13<td class=ContentSection valign=top><div class=CFile id=MainTopic><div class=CTopic><h1 class=CTitle><a name="GearsORM.ResultIterator.js"></a>GearsORM.<span class=HB> </span>ResultIterator.js</h1><div class=CBody><p class=CParagraph>Contains the ResultIterator class.</p><h4 class=CHeading>License</h4><p class=CParagraph>MIT-style license.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr><td class=SEntrySize><div class=SMain><div class=SEntry><a href="#GearsORM.ResultIterator.js" >GearsORM.<span class=HB> </span>ResultIterator.js</a></div></div></td><td class=SDescriptionSize><div class=SMain><div class=SDescription>Contains the ResultIterator class.</div></div></td></tr><tr><td><div class=SClass><div class=SEntry><a href="#GearsORM.ResultIterator" >GearsORM.<span class=HB> </span>ResultIterator</a></div></div></td><td><div class=SClass><div class=SDescription>a iterator on a Google Gears ResultSet</div></div></td></tr><tr><td><div class=SGroup><div class=SEntry><div class=SIndent1><a href="#GearsORM.ResultIterator.Functions" >Functions</a></div></div></div></td><td><div class=SGroup><div class=SDescription><div class=SIndent1></div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#GearsORM.ResultIterator.next" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">next</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>return the next row in the ResultSet as a model instance,if it is the last row it will return false.</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#GearsORM.ResultIterator.each" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">each</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>a function to iterate the ResultSet like ruby each.</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#GearsORM.ResultIterator.close" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">close</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>close the ResultSet,this will be done automaticlly if the ResultSet is iterated to the end. </div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#GearsORM.ResultIterator.getOne" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">getOne</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>return the first row of the ResultSet,will return false if the ResultSet is empty.</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#GearsORM.ResultIterator.toArray" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">toArray</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>return the ResultSet as Array of model instances</div></div></div></td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div> 
    1214 
     15<div class=CClass><div class=CTopic><h2 class=CTitle><a name="GearsORM.ResultIterator"></a>GearsORM.<span class=HB> </span>ResultIterator</h2><div class=CBody><p class=CParagraph>a iterator on a Google Gears ResultSet</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>result</td><td class=CDLDescription>the ResultSet to iterate</td></tr><tr><td class=CDLEntry>modelClass</td><td class=CDLDescription>the model class used to map the results</td></tr></table><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr><td class=SEntrySize><div class=SGroup><div class=SEntry><a href="#GearsORM.ResultIterator.Functions" >Functions</a></div></div></td><td class=SDescriptionSize><div class=SGroup><div class=SDescription></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#GearsORM.ResultIterator.next" id=link6 onMouseOver="ShowTip(event, 'tt1', 'link6')" onMouseOut="HideTip('tt1')">next</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>return the next row in the ResultSet as a model instance,if it is the last row it will return false.</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#GearsORM.ResultIterator.each" id=link7 onMouseOver="ShowTip(event, 'tt2', 'link7')" onMouseOut="HideTip('tt2')">each</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>a function to iterate the ResultSet like ruby each.</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#GearsORM.ResultIterator.close" id=link8 onMouseOver="ShowTip(event, 'tt3', 'link8')" onMouseOut="HideTip('tt3')">close</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>close the ResultSet,this will be done automaticlly if the ResultSet is iterated to the end. </div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#GearsORM.ResultIterator.getOne" id=link9 onMouseOver="ShowTip(event, 'tt4', 'link9')" onMouseOut="HideTip('tt4')">getOne</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>return the first row of the ResultSet,will return false if the ResultSet is empty.</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#GearsORM.ResultIterator.toArray" id=link10 onMouseOver="ShowTip(event, 'tt5', 'link10')" onMouseOut="HideTip('tt5')">toArray</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>return the ResultSet as Array of model instances</div></div></div></td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div> 
    1316 
    14 <div id=Content><div class="CFile CTopic" id=MainTopic><h1 class=CTitle><a name="GearsORM.ResultIterator.js"></a>GearsORM.<span class=HB> </span>ResultIterator.js</h1><div class=CBody><p class=CParagraph>Contains the ResultIterator class.</p><h4 class=CHeading>License</h4><p class=CParagraph>MIT-style license.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBody><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#GearsORM.ResultIterator.js" >GearsORM.<span class=HB> </span>ResultIterator.js</a></td><td class=SDescription>Contains the ResultIterator class.</td></tr><tr class="SClass"><td class=SEntry><a href="#GearsORM.ResultIterator" >GearsORM.<span class=HB> </span>ResultIterator</a></td><td class=SDescription>a iterator on a Google Gears ResultSet</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#GearsORM.ResultIterator.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#GearsORM.ResultIterator.next" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">next</a></td><td class=SDescription>return the next row in the ResultSet as a model instance,if it is the last row it will return false.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#GearsORM.ResultIterator.each" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">each</a></td><td class=SDescription>a function to iterate the ResultSet like ruby each.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#GearsORM.ResultIterator.close" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">close</a></td><td class=SDescription>close the ResultSet,this will be done automaticlly if the ResultSet is iterated to the end. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#GearsORM.ResultIterator.getOne" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">getOne</a></td><td class=SDescription>return the first row of the ResultSet,will return false if the ResultSet is empty.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#GearsORM.ResultIterator.getOne" >getOne</a></td><td class=SDescription>return the ResultSet as Array of model instances</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div> 
     17<div class=CGroup><div class=CTopic><h3 class=CTitle><a name="GearsORM.ResultIterator.Functions"></a>Functions</h3></div></div> 
    1518 
    16 <div class="CClass CTopic"><h2 class=CTitle><a name="GearsORM.ResultIterator"></a>GearsORM.<span class=HB> </span>ResultIterator</h2><div class=CBody><p class=CParagraph>a iterator on a Google Gears ResultSet</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>result</td><td class=CDLDescription>the ResultSet to iterate</td></tr><tr><td class=CDLEntry>modelClass</td><td class=CDLDescription>the model class used to map the results</td></tr></table><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBody><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#GearsORM.ResultIterator.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#GearsORM.ResultIterator.next" id=link5 onMouseOver="ShowTip(event, 'tt1', 'link5')" onMouseOut="HideTip('tt1')">next</a></td><td class=SDescription>return the next row in the ResultSet as a model instance,if it is the last row it will return false.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#GearsORM.ResultIterator.each" id=link6 onMouseOver="ShowTip(event, 'tt2', 'link6')" onMouseOut="HideTip('tt2')">each</a></td><td class=SDescription>a function to iterate the ResultSet like ruby each.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#GearsORM.ResultIterator.close" id=link7 onMouseOver="ShowTip(event, 'tt3', 'link7')" onMouseOut="HideTip('tt3')">close</a></td><td class=SDescription>close the ResultSet,this will be done automaticlly if the ResultSet is iterated to the end. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#GearsORM.ResultIterator.getOne" id=link8 onMouseOver="ShowTip(event, 'tt4', 'link8')" onMouseOut="HideTip('tt4')">getOne</a></td><td class=SDescription>return the first row of the ResultSet,will return false if the ResultSet is empty.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#GearsORM.ResultIterator.getOne" >getOne</a></td><td class=SDescription>return the ResultSet as Array of model instances</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div> 
     19<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="GearsORM.ResultIterator.next"></a>next</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>next:function()</td></tr></table></blockquote><p class=CParagraph>return the next row in the ResultSet as a model instance,if it is the last row it will return false.</p></div></div></div> 
    1720 
    18 <div class="CGroup CTopic"><h3 class=CTitle><a name="GearsORM.ResultIterator.Functions"></a>Functions</h3></div> 
     21<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="GearsORM.ResultIterator.each"></a>each</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>each:function(</td><td class=PParameter nowrap>fn,</td></tr><tr><td></td><td class=PParameter nowrap>bind</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>a function to iterate the ResultSet like ruby each.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>fn</td><td class=CDLDescription>function to be called for each row in the ResultSet</td></tr><tr><td class=CDLEntry>bind</td><td class=CDLDescription>this will be used as this for the function,optional</td></tr></table></div></div></div> 
    1922 
    20 <div class="CFunction CTopic"><h3 class=CTitle><a name="GearsORM.ResultIterator.next"></a>next</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>next:function()</td></tr></table></blockquote><p class=CParagraph>return the next row in the ResultSet as a model instance,if it is the last row it will return false.</p></div></div> 
     23<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="GearsORM.ResultIterator.close"></a>close</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>close:function()</td></tr></table></blockquote><p class=CParagraph>close the ResultSet,this will be done automaticlly if the ResultSet is iterated to the end. if you don`t finish iterate the ResultSet this need to be called manually.</p></div></div></div> 
    2124 
    22 <div class="CFunction CTopic"><h3 class=CTitle><a name="GearsORM.ResultIterator.each"></a>each</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>each:function(</td><td class=PParameter nowrap>fn,</td></tr><tr><td></td><td class=PParameter nowrap>bind</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>a function to iterate the ResultSet like ruby each.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>fn</td><td class=CDLDescription>function to be called for each row in the ResultSet</td></tr><tr><td class=CDLEntry>bind</td><td class=CDLDescription>this will be used as this for the function,optional</td></tr></table></div></div> 
     25<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="GearsORM.ResultIterator.getOne"></a>getOne</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>getOne:function()</td></tr></table></blockquote><p class=CParagraph>return the first row of the ResultSet,will return false if the ResultSet is empty.</p></div></div></div> 
    2326 
    24 <div class="CFunction CTopic"><h3 class=CTitle><a name="GearsORM.ResultIterator.close"></a>close</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>close:function()</td></tr></table></blockquote><p class=CParagraph>close the ResultSet,this will be done automaticlly if the ResultSet is iterated to the end. if you don`t finish iterate the ResultSet this need to be called manually.</p></div></div> 
     27<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="GearsORM.ResultIterator.toArray"></a>toArray</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>toArray:function()</td></tr></table></blockquote><p class=CParagraph>return the ResultSet as Array of model instances</p></div></div></div> 
    2528 
    26 <div class="CFunction CTopic"><h3 class=CTitle><a name="GearsORM.ResultIterator.getOne"></a>getOne</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>getOne:function()</td></tr></table></blockquote><p class=CParagraph>return the first row of the ResultSet,will return false if the ResultSet is empty.</p></div></div> 
     29</td> 
    2730 
    28 <div class="CFunction CTopic"><h3 class=CTitle><a name="GearsORM.ResultIterator.getOne"></a>getOne</h3><div class=CBody><p class=CParagraph>return the ResultSet as Array of model instances</p></div></div> 
    29  
    30 </div><!--Content--> 
    31  
    32  
    33 <div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer--> 
    34  
    35  
    36 <div id=Menu><div class="MFile MEntry"><a href="GearsORM-Fields-js.html">GearsORM.<span class=HB> </span>Fields.js</a></div><div class="MFile MEntry"><a href="GearsORM-Introspection-js.html">GearsORM.<span class=HB> </span>Introspection.js</a></div><div class="MFile MEntry"><a href="GearsORM-js.html">GearsORM.js</a></div><div class="MFile MEntry"><a href="GearsORM-Model-js.html">GearsORM.<span class=HB> </span>Model.js</a></div><div class="MFile MEntry" id=MSelected>GearsORM.<span class=HB> </span>ResultIterator.js</div><div class="MFile MEntry"><a href="GearsORM-Transaction-js.html">GearsORM.<span class=HB> </span>Transaction.js</a></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class="MIndex MEntry"><a href="../index/General.html">Everything</a></div><div class="MIndex MEntry"><a href="../index/Classes.html">Classes</a></div><div class="MIndex MEntry"><a href="../index/Files.html">Files</a></div><div class="MIndex MEntry"><a href="../index/Functions.html">Functions</a></div><div class="MIndex MEntry"><a href="../index/Properties.html">Properties</a></div></div></div><script type="text/javascript"><!-- 
    37 var searchPanel = new SearchPanel("searchPanel", "HTML", "../search"); 
    38 --></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option  id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Files">Files</option><option value="Functions">Functions</option><option value="Properties">Properties</option></select></div><div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div></div><!--Menu--> 
    39  
    40  
    41  
     31</tr></table><div class=Footer><!--START_ND_FOOTER-->Generated by <a href="http://www.naturaldocs.org">Natural Docs</a><!--END_ND_FOOTER--></div> 
    4232<!--START_ND_TOOLTIPS--> 
    43 <div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>next:function()</td></tr></table></blockquote>return the next row in the ResultSet as a model instance,if it is the last row it will return false.</div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>each:function(</td><td class=PParameter nowrap>fn,</td></tr><tr><td></td><td class=PParameter nowrap>bind</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>a function to iterate the ResultSet like ruby each.</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>close:function()</td></tr></table></blockquote>close the ResultSet,this will be done automaticlly if the ResultSet is iterated to the end. </div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>getOne:function()</td></tr></table></blockquote>return the first row of the ResultSet,will return false if the ResultSet is empty.</div></div><!--END_ND_TOOLTIPS--> 
    44  
    45  
    46  
     33<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>next:function()</td></tr></table></blockquote>return the next row in the ResultSet as a model instance,if it is the last row it will return false.</div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>each:function(</td><td class=PParameter nowrap>fn,</td></tr><tr><td></td><td class=PParameter nowrap>bind</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>a function to iterate the ResultSet like ruby each.</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>close:function()</td></tr></table></blockquote>close the ResultSet,this will be done automaticlly if the ResultSet is iterated to the end. </div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>getOne:function()</td></tr></table></blockquote>return the first row of the ResultSet,will return false if the ResultSet is empty.</div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>toArray:function()</td></tr></table></blockquote>return the ResultSet as Array of model instances</div></div><!--END_ND_TOOLTIPS--> 
    4734 
    4835<script language=JavaScript><!--