2003-09-17 21:56:59 +00:00
<Type Name= "DataModelHash" FullName= "Gda.DataModelHash" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "auto" Value= "public class DataModelHash : Gda.DataModel" />
2003-09-17 21:56:59 +00:00
<AssemblyInfo >
<AssemblyName > gda-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2005-06-17 18:43:30 +00:00
<AssemblyVersion > 2.6.0.0</AssemblyVersion>
2003-09-17 21:56:59 +00:00
</AssemblyInfo>
<ThreadSafetyStatement > Gtk# is thread aware, but not thread safe; See the <link location= "node:gtk-sharp/programming/threads" > Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
<Docs >
2004-09-08 14:56:46 +00:00
<summary >
<para >
An implementation of <see cref= "T:Gda.DataModel" /> based on a hash table.
</para>
</summary>
<remarks >
<para >
Unlike <see cref= "T:Gda.DataModelArray" /> , this data model implementation stores the <see cref= "T:Gda.Row" /> in a hash table. So it only retrieves from the database backend exactly the requested rows (while in <see cref= "T:Gda.DataModelArray" /> you have to retrieve all the rows until the one requested).
</para>
</remarks>
2003-09-17 21:56:59 +00:00
</Docs>
<Base >
<BaseTypeName > Gda.DataModel</BaseTypeName>
</Base>
<Interfaces >
</Interfaces>
<Members >
<Member MemberName= "GetValueAt" >
<MemberSignature Language= "C#" Value= "public static Gda.Value GetValueAt (Gda.DataModel model, int col, int row);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gda.Value</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "model" Type= "Gda.DataModel" />
<Parameter Name= "col" Type= "System.Int32" />
<Parameter Name= "row" Type= "System.Int32" />
</Parameters>
<Docs >
2004-09-08 14:56:46 +00:00
<summary >
<para >
Retrieves the value at a specified column and row.
</para>
</summary>
2003-09-17 21:56:59 +00:00
<param name= "model" > a <see cref= "T:Gda.DataModel" /> </param>
<param name= "col" > a <see cref= "T:System.Int32" /> </param>
<param name= "row" > a <see cref= "T:System.Int32" /> </param>
<returns > a <see cref= "T:Gda.Value" /> </returns>
<remarks > To be added</remarks>
</Docs>
</Member>
<Member MemberName= "GetRow" >
<MemberSignature Language= "C#" Value= "public static Gda.Row GetRow (Gda.DataModel model, int row);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gda.Row</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "model" Type= "Gda.DataModel" />
<Parameter Name= "row" Type= "System.Int32" />
</Parameters>
<Docs >
2004-09-08 14:56:46 +00:00
<summary >
<para >
Retrieves a row from the underlying hash table.
</para>
</summary>
2003-09-17 21:56:59 +00:00
<param name= "model" > a <see cref= "T:Gda.DataModel" /> </param>
<param name= "row" > a <see cref= "T:System.Int32" /> </param>
2004-09-08 14:56:46 +00:00
<returns > a <see cref= "T:Gda.Row" /> or null if the requested row is not in the hash table.</returns>
2003-09-17 21:56:59 +00:00
<remarks > To be added</remarks>
</Docs>
</Member>
2005-05-23 20:41:51 +00:00
2003-09-17 21:56:59 +00:00
<Member MemberName= "Clear" >
<MemberSignature Language= "C#" Value= "public void Clear ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-09-08 14:56:46 +00:00
<summary >
<para >
Frees all the rows inserted in the model.
</para>
</summary>
2003-09-17 21:56:59 +00:00
<remarks > To be added</remarks>
</Docs>
</Member>
<Member MemberName= "InsertRow" >
<MemberSignature Language= "C#" Value= "public void InsertRow (int rownum, Gda.Row row);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "rownum" Type= "System.Int32" />
<Parameter Name= "row" Type= "Gda.Row" />
</Parameters>
<Docs >
2004-09-08 14:56:46 +00:00
<summary >
<para >
Inserts a row in the model.
</para>
</summary>
<param name= "rownum" > a <see cref= "T:System.Int32" /> the number of the row.</param>
<param name= "row" > a <see cref= "T:Gda.Row" /> to insert.</param>
2003-09-17 21:56:59 +00:00
<remarks > To be added</remarks>
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public DataModelHash (IntPtr raw);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
<Docs >
<summary > To be added</summary>
<param name= "raw" > a <see cref= "T:System.IntPtr" /> </param>
<remarks > To be added</remarks>
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public DataModelHash (int cols);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
<Parameter Name= "cols" Type= "System.Int32" />
</Parameters>
<Docs >
2004-09-08 14:56:46 +00:00
<summary >
<para >
Creates a new DataModelHash with cols columns.
</para>
</summary>
<param name= "cols" > a <see cref= "T:System.Int32" /> number of columns for rows in this data model.</param>
2003-09-17 21:56:59 +00:00
<remarks > To be added</remarks>
</Docs>
</Member>
2003-12-24 01:35:30 +00:00
<Member MemberName= "NColumns" >
<MemberSignature Language= "C#" Value= "public int NColumns { set; };" />
2003-09-17 21:56:59 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
2003-12-24 01:35:30 +00:00
<ReturnType > System.Int32</ReturnType>
2003-09-17 21:56:59 +00:00
</ReturnValue>
<Docs >
2004-09-08 14:56:46 +00:00
<summary >
<para >
Sets the number of columns for rows inserted in this model.
</para>
</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:System.Int32" /> must be greater than or equal to 0</value>
2004-09-08 14:56:46 +00:00
<remarks >
<para >
This property calls <see cref= "M:Gda.DataModelHash.Clear" /> to free the existing rows if any.
</para>
</remarks>
2003-09-17 21:56:59 +00:00
</Docs>
</Member>
2003-12-24 01:35:30 +00:00
<Member MemberName= "GType" >
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; };" />
2003-09-17 21:56:59 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
2003-12-24 01:35:30 +00:00
<ReturnType > GLib.GType</ReturnType>
2003-09-17 21:56:59 +00:00
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters />
2003-09-17 21:56:59 +00:00
<Docs >
2004-06-21 20:14:42 +00:00
<summary > GType Property.</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:GLib.GType" /> </value>
2004-06-21 20:14:42 +00:00
<remarks > Returns the native <see cref= "T:GLib.GType" /> value for <see cref= "T:Gda.DataModelHash" /> .</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "protected DataModelHash (GLib.GType gtype);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
<Parameter Name= "gtype" Type= "GLib.GType" />
</Parameters>
<Docs >
2004-06-21 20:33:11 +00:00
<summary > Protected Constructor.</summary>
2003-12-24 01:35:30 +00:00
<param name= "gtype" > a <see cref= "T:GLib.GType" /> </param>
2004-06-21 20:33:11 +00:00
<remarks > Chain to this constructor if you have manually registered a native <see cref= "T:GLib.GType" /> value for your subclass.</remarks>
2003-09-17 21:56:59 +00:00
</Docs>
2005-05-23 20:41:51 +00:00
<Attributes >
<Attribute >
<AttributeName > System.Obsolete(Message=null, IsError=False)</AttributeName>
</Attribute>
</Attributes> </Member>
2003-09-17 21:56:59 +00:00
</Members>
2005-05-23 20:41:51 +00:00
</Type>