Changeset 414 for GearsORM/trunk/docs/files/GearsORM-Model-js.html
- Timestamp:
- 03/22/08 14:40:09 (10 months ago)
- Files:
-
- 1 modified
-
GearsORM/trunk/docs/files/GearsORM-Model-js.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
GearsORM/trunk/docs/files/GearsORM-Model-js.html
r329 r414 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> 2 2 3 <html><head><title>GearsORM.Model.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.Model.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><!-- 4 if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> 5 5 6 <!-- Generated by Natural Docs, version Development Release 02-10-2007 (1.35 base)-->6 <!-- Generated by Natural Docs, version 1.35 --> 7 7 <!-- http://www.naturaldocs.org --> 8 8 9 9 <!-- saved from url=(0026)http://www.naturaldocs.org --> 10 10 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 id=MSelected>Model.js</div></div><div class=MEntry><div class=MFile><a href="GearsORM-ResultIterator-js.html">ResultIterator.js</a></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> 11 12 13 <td class=ContentSection valign=top><div class=CFile id=MainTopic><div class=CTopic><h1 class=CTitle><a name="GearsORM.Model.js"></a>GearsORM.<span class=HB> </span>Model.js</h1><div class=CBody><p class=CParagraph>Contains GearsORM.Model a metaclass used to define models</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.Model.js" >GearsORM.<span class=HB> </span>Model.js</a></div></div></td><td class=SDescriptionSize><div class=SMain><div class=SDescription>Contains GearsORM.Model a metaclass used to define models</div></div></td></tr><tr><td><div class=SClass><div class=SEntry><a href="#GearsORM.Model" >GearsORM.<span class=HB> </span>Model</a></div></div></td><td><div class=SClass><div class=SDescription>a metaclass to define models that represent database tables. </div></div></td></tr><tr><td><div class=SClass><div class=SEntry><a href="#GearsORM.Model.model" >GearsORM.<span class=HB> </span>Model.<span class=HB> </span>model</a></div></div></td><td><div class=SClass><div class=SDescription>represent a model instance</div></div></td></tr><tr><td><div class=SGroup><div class=SEntry><div class=SIndent1><a href="#GearsORM.Model.model.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.Model.model.remove" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">remove</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>remove the instance from the database</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#GearsORM.Model.model.save" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">save</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2></div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#GearsORM.Model.model._updateInsert" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">_updateInsert</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>do the actual insert/update,used by save method.</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#GearsORM.Model.model.refresh" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">refresh</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>refresh the model data from database.</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#GearsORM.Model.model._populateFromResult" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">_populateFromResult</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>populate the instance from a ResultSet.</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#GearsORM.Model.model.count" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">count</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>do a COUNT on the model</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#GearsORM.Model.model.select" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">select</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>do a SELECT on the model</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#GearsORM.Model.model.remove" id=link8 onMouseOver="ShowTip(event, 'tt1', 'link8')" onMouseOut="HideTip('tt1')">remove</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>do a DELETE on the model</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#GearsORM.Model.model.createTable" id=link9 onMouseOver="ShowTip(event, 'tt8', 'link9')" onMouseOut="HideTip('tt8')">createTable</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>create the table for this model,creating triggers for forigenkeys and creating many-to-many tables if needed.</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#GearsORM.Model.model.dropTable" id=link10 onMouseOver="ShowTip(event, 'tt9', 'link10')" onMouseOut="HideTip('tt9')">dropTable</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>drop the table and all associate triggers.</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#GearsORM.Model.model.createTriggers" id=link11 onMouseOver="ShowTip(event, 'tt10', 'link11')" onMouseOut="HideTip('tt10')">createTriggers</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>create triggers to inforce forigenkeys.</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#GearsORM.Model.model.dropTriggers" id=link12 onMouseOver="ShowTip(event, 'tt11', 'link12')" onMouseOut="HideTip('tt11')">dropTriggers</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>drop triggers related to the table.</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#GearsORM.Model.model.load" id=link13 onMouseOver="ShowTip(event, 'tt12', 'link13')" onMouseOut="HideTip('tt12')">load</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>load objects from a array to the database.</div></div></div></td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div> 12 14 15 <div class=CClass><div class=CTopic><h2 class=CTitle><a name="GearsORM.Model"></a>GearsORM.<span class=HB> </span>Model</h2><div class=CBody><p class=CParagraph>a metaclass to define models that represent database tables. a metaclass is a class in which the instances are also classes.</p><h4 class=CHeading>Constructor</h4><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>options</td><td class=CDLDescription>a object used to describe the model look like this: { name : “Name of the model table”, fields: { name_of_the_field:a_instance_of_GearsORM.Fields.* } }</td></tr></table></div></div></div> 13 16 14 <div id=Content><div class="CFile CTopic" id=MainTopic><h1 class=CTitle><a name="GearsORM.Model.js"></a>GearsORM.<span class=HB> </span>Model.js</h1><div class=CBody><p class=CParagraph>Contains GearsORM.Model a metaclass used to define models</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.Model.js" >GearsORM.<span class=HB> </span>Model.js</a></td><td class=SDescription>Contains GearsORM.Model a metaclass used to define models</td></tr><tr class="SClass"><td class=SEntry><a href="#GearsORM.Model" >GearsORM.<span class=HB> </span>Model</a></td><td class=SDescription>a metaclass to define models that represent database tables. </td></tr><tr class="SClass"><td class=SEntry><a href="#GearsORM.Model.model" >GearsORM.<span class=HB> </span>Model.<span class=HB> </span>model</a></td><td class=SDescription>represent a model instance</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#GearsORM.Model.model.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#GearsORM.Model.model.remove" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">remove</a></td><td class=SDescription>remove the instance from the database</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#GearsORM.Model.model.save" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">save</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#GearsORM.Model.model._updateInsert" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">_updateInsert</a></td><td class=SDescription>do the actual insert/update,used by save method.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#GearsORM.Model.model.refresh" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">refresh</a></td><td class=SDescription>refresh the model data from database.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#GearsORM.Model.model._populateFromResult" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">_populateFromResult</a></td><td class=SDescription>populate the instance from a ResultSet.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#GearsORM.Model.model.count" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">count</a></td><td class=SDescription>do a COUNT on the model</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#GearsORM.Model.model.select" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">select</a></td><td class=SDescription>do a SELECT on the model</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#GearsORM.Model.model.remove" id=link8 onMouseOver="ShowTip(event, 'tt1', 'link8')" onMouseOut="HideTip('tt1')">remove</a></td><td class=SDescription>do a DELETE on the model</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#GearsORM.Model.model.createTable" id=link9 onMouseOver="ShowTip(event, 'tt8', 'link9')" onMouseOut="HideTip('tt8')">createTable</a></td><td class=SDescription>create the table for this model,creating triggers for forigenkeys and creating many-to-many tables if needed.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#GearsORM.Model.model.dropTable" id=link10 onMouseOver="ShowTip(event, 'tt9', 'link10')" onMouseOut="HideTip('tt9')">dropTable</a></td><td class=SDescription>drop the table and all associate triggers.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#GearsORM.Model.model.createTriggers" id=link11 onMouseOver="ShowTip(event, 'tt10', 'link11')" onMouseOut="HideTip('tt10')">createTriggers</a></td><td class=SDescription>create triggers to inforce forigenkeys.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#GearsORM.Model.model.dropTriggers" id=link12 onMouseOver="ShowTip(event, 'tt11', 'link12')" onMouseOut="HideTip('tt11')">dropTriggers</a></td><td class=SDescription>drop triggers related to the table.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#GearsORM.Model.model.load" id=link13 onMouseOver="ShowTip(event, 'tt12', 'link13')" onMouseOut="HideTip('tt12')">load</a></td><td class=SDescription>load objects from a array to the database.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div>17 <div class=CClass><div class=CTopic><h2 class=CTitle><a name="GearsORM.Model.model"></a>GearsORM.<span class=HB> </span>Model.<span class=HB> </span>model</h2><div class=CBody><p class=CParagraph>represent a model instance</p><h4 class=CHeading>Constructor</h4><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>valuesOrRowID</td><td class=CDLDescription>(optional)a object used to initialize the model instance with values or it can be the id of the row,in that case it will do a select to retrive the model data.</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.Model.model.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.Model.model.remove" id=link14 onMouseOver="ShowTip(event, 'tt1', 'link14')" onMouseOut="HideTip('tt1')">remove</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>remove the instance from the database</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#GearsORM.Model.model.save" id=link15 onMouseOver="ShowTip(event, 'tt2', 'link15')" onMouseOut="HideTip('tt2')">save</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1></div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#GearsORM.Model.model._updateInsert" id=link16 onMouseOver="ShowTip(event, 'tt3', 'link16')" onMouseOut="HideTip('tt3')">_updateInsert</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>do the actual insert/update,used by save method.</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#GearsORM.Model.model.refresh" id=link17 onMouseOver="ShowTip(event, 'tt4', 'link17')" onMouseOut="HideTip('tt4')">refresh</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>refresh the model data from database.</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#GearsORM.Model.model._populateFromResult" id=link18 onMouseOver="ShowTip(event, 'tt5', 'link18')" onMouseOut="HideTip('tt5')">_populateFromResult</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>populate the instance from a ResultSet.</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#GearsORM.Model.model.count" id=link19 onMouseOver="ShowTip(event, 'tt6', 'link19')" onMouseOut="HideTip('tt6')">count</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>do a COUNT on the model</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#GearsORM.Model.model.select" id=link20 onMouseOver="ShowTip(event, 'tt7', 'link20')" onMouseOut="HideTip('tt7')">select</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>do a SELECT on the model</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#GearsORM.Model.model.remove" id=link21 onMouseOver="ShowTip(event, 'tt1', 'link21')" onMouseOut="HideTip('tt1')">remove</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>do a DELETE on the model</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#GearsORM.Model.model.createTable" id=link22 onMouseOver="ShowTip(event, 'tt8', 'link22')" onMouseOut="HideTip('tt8')">createTable</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>create the table for this model,creating triggers for forigenkeys and creating many-to-many tables if needed.</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#GearsORM.Model.model.dropTable" id=link23 onMouseOver="ShowTip(event, 'tt9', 'link23')" onMouseOut="HideTip('tt9')">dropTable</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>drop the table and all associate triggers.</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#GearsORM.Model.model.createTriggers" id=link24 onMouseOver="ShowTip(event, 'tt10', 'link24')" onMouseOut="HideTip('tt10')">createTriggers</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>create triggers to inforce forigenkeys.</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#GearsORM.Model.model.dropTriggers" id=link25 onMouseOver="ShowTip(event, 'tt11', 'link25')" onMouseOut="HideTip('tt11')">dropTriggers</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>drop triggers related to the table.</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#GearsORM.Model.model.load" id=link26 onMouseOver="ShowTip(event, 'tt12', 'link26')" onMouseOut="HideTip('tt12')">load</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>load objects from a array to the database.</div></div></div></td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div> 15 18 16 <div class= "CClass CTopic"><h2 class=CTitle><a name="GearsORM.Model"></a>GearsORM.<span class=HB> </span>Model</h2><div class=CBody><p class=CParagraph>a metaclass to define models that represent database tables. a metaclass is a class in which the instances are also classes.</p><h4 class=CHeading>Constructor</h4><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>options</td><td class=CDLDescription>a object used to describe the model look like this: { name : “Name of the model table”, fields: { name_of_the_field:a_instance_of_GearsORM.Fields.* } }</td></tr></table></div></div>19 <div class=CGroup><div class=CTopic><h3 class=CTitle><a name="GearsORM.Model.model.Functions"></a>Functions</h3></div></div> 17 20 18 <div class= "CClass CTopic"><h2 class=CTitle><a name="GearsORM.Model.model"></a>GearsORM.<span class=HB> </span>Model.<span class=HB> </span>model</h2><div class=CBody><p class=CParagraph>represent a model instance</p><h4 class=CHeading>Constructor</h4><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>valuesOrRowID</td><td class=CDLDescription>(optional)a object used to initialize the model instance with values or it can be the id of the row,in that case it will do a select to retrive the model data.</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.Model.model.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#GearsORM.Model.model.remove" id=link14 onMouseOver="ShowTip(event, 'tt1', 'link14')" onMouseOut="HideTip('tt1')">remove</a></td><td class=SDescription>remove the instance from the database</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#GearsORM.Model.model.save" id=link15 onMouseOver="ShowTip(event, 'tt2', 'link15')" onMouseOut="HideTip('tt2')">save</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#GearsORM.Model.model._updateInsert" id=link16 onMouseOver="ShowTip(event, 'tt3', 'link16')" onMouseOut="HideTip('tt3')">_updateInsert</a></td><td class=SDescription>do the actual insert/update,used by save method.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#GearsORM.Model.model.refresh" id=link17 onMouseOver="ShowTip(event, 'tt4', 'link17')" onMouseOut="HideTip('tt4')">refresh</a></td><td class=SDescription>refresh the model data from database.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#GearsORM.Model.model._populateFromResult" id=link18 onMouseOver="ShowTip(event, 'tt5', 'link18')" onMouseOut="HideTip('tt5')">_populateFromResult</a></td><td class=SDescription>populate the instance from a ResultSet.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#GearsORM.Model.model.count" id=link19 onMouseOver="ShowTip(event, 'tt6', 'link19')" onMouseOut="HideTip('tt6')">count</a></td><td class=SDescription>do a COUNT on the model</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#GearsORM.Model.model.select" id=link20 onMouseOver="ShowTip(event, 'tt7', 'link20')" onMouseOut="HideTip('tt7')">select</a></td><td class=SDescription>do a SELECT on the model</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#GearsORM.Model.model.remove" id=link21 onMouseOver="ShowTip(event, 'tt1', 'link21')" onMouseOut="HideTip('tt1')">remove</a></td><td class=SDescription>do a DELETE on the model</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#GearsORM.Model.model.createTable" id=link22 onMouseOver="ShowTip(event, 'tt8', 'link22')" onMouseOut="HideTip('tt8')">createTable</a></td><td class=SDescription>create the table for this model,creating triggers for forigenkeys and creating many-to-many tables if needed.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#GearsORM.Model.model.dropTable" id=link23 onMouseOver="ShowTip(event, 'tt9', 'link23')" onMouseOut="HideTip('tt9')">dropTable</a></td><td class=SDescription>drop the table and all associate triggers.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#GearsORM.Model.model.createTriggers" id=link24 onMouseOver="ShowTip(event, 'tt10', 'link24')" onMouseOut="HideTip('tt10')">createTriggers</a></td><td class=SDescription>create triggers to inforce forigenkeys.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#GearsORM.Model.model.dropTriggers" id=link25 onMouseOver="ShowTip(event, 'tt11', 'link25')" onMouseOut="HideTip('tt11')">dropTriggers</a></td><td class=SDescription>drop triggers related to the table.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#GearsORM.Model.model.load" id=link26 onMouseOver="ShowTip(event, 'tt12', 'link26')" onMouseOut="HideTip('tt12')">load</a></td><td class=SDescription>load objects from a array to the database.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div>21 <div class=CFunction><div class=CTopic><h3 class=CTitle><a name="GearsORM.Model.model.remove"></a>remove</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>remove:function()</td></tr></table></blockquote><p class=CParagraph>remove the instance from the database</p></div></div></div> 19 22 20 <div class= "CGroup CTopic"><h3 class=CTitle><a name="GearsORM.Model.model.Functions"></a>Functions</h3></div>23 <div class=CFunction><div class=CTopic><h3 class=CTitle><a name="GearsORM.Model.model.save"></a>save</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>save:function()</td></tr></table></blockquote><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>save the instance to the database,if the instance is not in the database</td><td class=CDLDescription>it will be created. if it is already in the database it will be updated.</td></tr></table></div></div></div> 21 24 22 <div class= "CFunction CTopic"><h3 class=CTitle><a name="GearsORM.Model.model.remove"></a>remove</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>remove:function()</td></tr></table></blockquote><p class=CParagraph>remove the instance from the database</p></div></div>25 <div class=CFunction><div class=CTopic><h3 class=CTitle><a name="GearsORM.Model.model._updateInsert"></a>_updateInsert</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>_updateInsert:function(</td><td class=PParameter nowrap>update</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>do the actual insert/update,used by save method.</p></div></div></div> 23 26 24 <div class= "CFunction CTopic"><h3 class=CTitle><a name="GearsORM.Model.model.save"></a>save</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>save:function()</td></tr></table></blockquote><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>save the instance to the database,if the instance is not in the database</td><td class=CDLDescription>it will be created. if it is already in the database it will be updated.</td></tr></table></div></div>27 <div class=CFunction><div class=CTopic><h3 class=CTitle><a name="GearsORM.Model.model.refresh"></a>refresh</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>refresh:function()</td></tr></table></blockquote><p class=CParagraph>refresh the model data from database.</p></div></div></div> 25 28 26 <div class= "CFunction CTopic"><h3 class=CTitle><a name="GearsORM.Model.model._updateInsert"></a>_updateInsert</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>_updateInsert:function(</td><td class=PParameter nowrap>update</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>do the actual insert/update,used by save method.</p></div></div>29 <div class=CFunction><div class=CTopic><h3 class=CTitle><a name="GearsORM.Model.model._populateFromResult"></a>_populateFromResult</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>_populateFromResult:function(</td><td class=PParameter nowrap>result</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>populate the instance from a 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>a ResultSet that used to populate the instance.</td></tr></table></div></div></div> 27 30 28 <div class= "CFunction CTopic"><h3 class=CTitle><a name="GearsORM.Model.model.refresh"></a>refresh</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>refresh:function()</td></tr></table></blockquote><p class=CParagraph>refresh the model data from database.</p></div></div>31 <div class=CFunction><div class=CTopic><h3 class=CTitle><a name="GearsORM.Model.model.count"></a>count</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>count:function(</td><td class=PParameter nowrap>whereExpression,</td></tr><tr><td></td><td class=PParameter nowrap>params</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>do a COUNT on the model</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>whereExpression</td><td class=CDLDescription>a SQL expression to be used as the WHERE clause.</td></tr><tr><td class=CDLEntry>params</td><td class=CDLDescription>bind parameters used in the SQL expression.</td></tr></table><h4 class=CHeading>Returns</h4><p class=CParagraph>how much objects(rows) match the where expression</p></div></div></div> 29 32 30 <div class= "CFunction CTopic"><h3 class=CTitle><a name="GearsORM.Model.model._populateFromResult"></a>_populateFromResult</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>_populateFromResult:function(</td><td class=PParameter nowrap>result</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>populate the instance from a 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>a ResultSet that used to populate the instance.</td></tr></table></div></div>33 <div class=CFunction><div class=CTopic><h3 class=CTitle><a name="GearsORM.Model.model.select"></a>select</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>select:function(</td><td class=PParameter nowrap>whereExpression,</td></tr><tr><td></td><td class=PParameter nowrap>params</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>do a SELECT on the model</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>whereExpression</td><td class=CDLDescription>a SQL expression to be used as the WHERE clause.</td></tr><tr><td class=CDLEntry>params</td><td class=CDLDescription>bind parameters used in the SQL expression.</td></tr></table><h4 class=CHeading>Returns</h4><p class=CParagraph>a new ResultIterator to iterate the ResultSet</p></div></div></div> 31 34 32 <div class= "CFunction CTopic"><h3 class=CTitle><a name="GearsORM.Model.model.count"></a>count</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>count:function(</td><td class=PParameter nowrap>whereExpression,</td></tr><tr><td></td><td class=PParameter nowrap>params</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>do a COUNT on the model</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>whereExpression</td><td class=CDLDescription>a SQL expression to be used as the WHERE clause.</td></tr><tr><td class=CDLEntry>params</td><td class=CDLDescription>bind parameters used in the SQL expression.</td></tr></table><h4 class=CHeading>Returns</h4><p class=CParagraph>how much objects(rows) match the where expression</p></div></div>35 <div class=CFunction><div class=CTopic><h3 class=CTitle><a name="GearsORM.Model.model.remove"></a>remove</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>remove:function(</td><td class=PParameter nowrap>whereExpression,</td></tr><tr><td></td><td class=PParameter nowrap>params</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>do a DELETE on the model</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>whereExpression</td><td class=CDLDescription>a SQL expression to be used as the WHERE clause.</td></tr><tr><td class=CDLEntry>params</td><td class=CDLDescription>bind parameters used in the SQL expression.</td></tr></table></div></div></div> 33 36 34 <div class= "CFunction CTopic"><h3 class=CTitle><a name="GearsORM.Model.model.select"></a>select</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>select:function(</td><td class=PParameter nowrap>whereExpression,</td></tr><tr><td></td><td class=PParameter nowrap>params</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>do a SELECT on the model</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>whereExpression</td><td class=CDLDescription>a SQL expression to be used as the WHERE clause.</td></tr><tr><td class=CDLEntry>params</td><td class=CDLDescription>bind parameters used in the SQL expression.</td></tr></table><h4 class=CHeading>Returns</h4><p class=CParagraph>a new ResultIterator to iterate the ResultSet</p></div></div>37 <div class=CFunction><div class=CTopic><h3 class=CTitle><a name="GearsORM.Model.model.createTable"></a>createTable</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>createTable:function()</td></tr></table></blockquote><p class=CParagraph>create the table for this model,creating triggers for forigenkeys and creating many-to-many tables if needed.</p></div></div></div> 35 38 36 <div class= "CFunction CTopic"><h3 class=CTitle><a name="GearsORM.Model.model.remove"></a>remove</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>remove:function(</td><td class=PParameter nowrap>whereExpression,</td></tr><tr><td></td><td class=PParameter nowrap>params</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>do a DELETE on the model</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>whereExpression</td><td class=CDLDescription>a SQL expression to be used as the WHERE clause.</td></tr><tr><td class=CDLEntry>params</td><td class=CDLDescription>bind parameters used in the SQL expression.</td></tr></table></div></div>39 <div class=CFunction><div class=CTopic><h3 class=CTitle><a name="GearsORM.Model.model.dropTable"></a>dropTable</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>dropTable:function()</td></tr></table></blockquote><p class=CParagraph>drop the table and all associate triggers.</p></div></div></div> 37 40 38 <div class= "CFunction CTopic"><h3 class=CTitle><a name="GearsORM.Model.model.createTable"></a>createTable</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>createTable:function()</td></tr></table></blockquote><p class=CParagraph>create the table for this model,creating triggers for forigenkeys and creating many-to-many tables if needed.</p></div></div>41 <div class=CFunction><div class=CTopic><h3 class=CTitle><a name="GearsORM.Model.model.createTriggers"></a>createTriggers</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>createTriggers:function()</td></tr></table></blockquote><p class=CParagraph>create triggers to inforce forigenkeys.</p></div></div></div> 39 42 40 <div class= "CFunction CTopic"><h3 class=CTitle><a name="GearsORM.Model.model.dropTable"></a>dropTable</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>dropTable:function()</td></tr></table></blockquote><p class=CParagraph>drop the table and all associate triggers.</p></div></div>43 <div class=CFunction><div class=CTopic><h3 class=CTitle><a name="GearsORM.Model.model.dropTriggers"></a>dropTriggers</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>dropTriggers:function()</td></tr></table></blockquote><p class=CParagraph>drop triggers related to the table.</p></div></div></div> 41 44 42 <div class= "CFunction CTopic"><h3 class=CTitle><a name="GearsORM.Model.model.createTriggers"></a>createTriggers</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>createTriggers:function()</td></tr></table></blockquote><p class=CParagraph>create triggers to inforce forigenkeys.</p></div></div>45 <div class=CFunction><div class=CTopic><h3 class=CTitle><a name="GearsORM.Model.model.load"></a>load</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>load:function(</td><td class=PParameter nowrap>objects,</td></tr><tr><td></td><td class=PParameter nowrap>save</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>load objects from a array to the database.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>objects</td><td class=CDLDescription>a array of objects or one object to be saved in the database.</td></tr><tr><td class=CDLEntry>save</td><td class=CDLDescription>if set to true all the objects will be saved to the database.</td></tr></table><h4 class=CHeading>Returns</h4><p class=CParagraph>return all the objects mapped using the model class.</p></div></div></div> 43 46 44 < div class="CFunction CTopic"><h3 class=CTitle><a name="GearsORM.Model.model.dropTriggers"></a>dropTriggers</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>dropTriggers:function()</td></tr></table></blockquote><p class=CParagraph>drop triggers related to the table.</p></div></div>47 </td> 45 48 46 <div class="CFunction CTopic"><h3 class=CTitle><a name="GearsORM.Model.model.load"></a>load</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>load:function(</td><td class=PParameter nowrap>objects,</td></tr><tr><td></td><td class=PParameter nowrap>save</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>load objects from a array to the database.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>objects</td><td class=CDLDescription>a array of objects or one object to be saved in the database.</td></tr><tr><td class=CDLEntry>save</td><td class=CDLDescription>if set to true all the objects will be saved to the database.</td></tr></table><h4 class=CHeading>Returns</h4><p class=CParagraph>return all the objects mapped using the model class.</p></div></div> 47 48 </div><!--Content--> 49 50 51 <div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer--> 52 53 54 <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" id=MSelected>GearsORM.<span class=HB> </span>Model.js</div><div class="MFile MEntry"><a href="GearsORM-ResultIterator-js.html">GearsORM.<span class=HB> </span>ResultIterator.js</a></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"><!-- 55 var searchPanel = new SearchPanel("searchPanel", "HTML", "../search"); 56 --></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--> 57 58 59 49 </tr></table><div class=Footer><!--START_ND_FOOTER-->Generated by <a href="http://www.naturaldocs.org">Natural Docs</a><!--END_ND_FOOTER--></div> 60 50 <!--START_ND_TOOLTIPS--> 61 51 <div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>remove:function()</td></tr></table></blockquote>remove the instance from the database</div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>save:function()</td></tr></table></blockquote></div></div><div class=CToolTip id="tt3"><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>_updateInsert:function(</td><td class=PParameter nowrap>update</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>do the actual insert/update,used by save method.</div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>refresh:function()</td></tr></table></blockquote>refresh the model data from database.</div></div><div class=CToolTip id="tt5"><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>_populateFromResult:function(</td><td class=PParameter nowrap>result</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>populate the instance from a ResultSet.</div></div><div class=CToolTip id="tt6"><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>count:function(</td><td class=PParameter nowrap>whereExpression,</td></tr><tr><td></td><td class=PParameter nowrap>params</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>do a COUNT on the model</div></div><div class=CToolTip id="tt7"><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>select:function(</td><td class=PParameter nowrap>whereExpression,</td></tr><tr><td></td><td class=PParameter nowrap>params</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>do a SELECT on the model</div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>createTable:function()</td></tr></table></blockquote>create the table for this model,creating triggers for forigenkeys and creating many-to-many tables if needed.</div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>dropTable:function()</td></tr></table></blockquote>drop the table and all associate triggers.</div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>createTriggers:function()</td></tr></table></blockquote>create triggers to inforce forigenkeys.</div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>dropTriggers:function()</td></tr></table></blockquote>drop triggers related to the table.</div></div><div class=CToolTip id="tt12"><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>load:function(</td><td class=PParameter nowrap>objects,</td></tr><tr><td></td><td class=PParameter nowrap>save</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>load objects from a array to the database.</div></div><!--END_ND_TOOLTIPS--> 62 52 63 64 65 66 53 <script language=JavaScript><!-- 67 54 if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
