2003-09-17 21:56:59 +00:00
<Type Name= "DataModelHash" FullName= "Gda.DataModelHash" >
<TypeSignature Language= "C#" Value= "public class DataModelHash : Gda.DataModel, IWrapper, IDisposable" Maintainer= "auto" />
<AssemblyInfo >
<AssemblyName > gda-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2003-09-17 21:56:59 +00:00
<AssemblyVersion > 0.0.0.0</AssemblyVersion>
<AssemblyCulture > neutral</AssemblyCulture>
<Attributes />
</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 >
<Interface >
<InterfaceName > GLib.IWrapper</InterfaceName>
</Interface>
<Interface >
<InterfaceName > System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes />
<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>
<Member MemberName= "Finalize" >
2003-10-13 22:55:58 +00:00
<MemberSignature Language= "C#" Value= "protected override void Finalize ();" />
2003-09-17 21:56:59 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > To be added</summary>
<remarks > To be added</remarks>
</Docs>
</Member>
<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>
<returns > a <see cref= "T:Gda.DataModelHash" /> </returns>
<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
<returns > a <see cref= "T:Gda.DataModelHash" /> </returns>
<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>
<returns > a <see cref= "T:System.Int32" /> must be greater than or equal to 0</returns>
<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>
2003-12-24 01:35:30 +00:00
<returns > a <see cref= "T:GLib.GType" /> </returns>
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>
<returns > a <see cref= "T:Gda.DataModelHash" /> </returns>
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>
</Member>
</Members>
</Type>