DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Package Functions | Private Attributes | List of all members
Deveel.Data.Client.LocalRowCache.RowRef Class Reference

Used for the hash key in the cache. More...

Public Member Functions

override int GetHashCode ()
 
override bool Equals (Object ob)
 

Package Functions

 RowRef (int tableId, int row)
 

Private Attributes

readonly int tableId
 
readonly int row
 

Detailed Description

Used for the hash key in the cache.

Definition at line 212 of file LocalRowCache.cs.

Constructor & Destructor Documentation

Deveel.Data.Client.LocalRowCache.RowRef.RowRef ( int  tableId,
int  row 
)
inlinepackage

Definition at line 216 of file LocalRowCache.cs.

216  {
217  this.tableId = tableId;
218  this.row = row;
219  }

Member Function Documentation

override bool Deveel.Data.Client.LocalRowCache.RowRef.Equals ( Object  ob)
inline

Definition at line 225 of file LocalRowCache.cs.

225  {
226  var dest = (RowRef)ob;
227  return (row == dest.row && tableId == dest.tableId);
228  }
override int Deveel.Data.Client.LocalRowCache.RowRef.GetHashCode ( )
inline

Definition at line 221 of file LocalRowCache.cs.

221  {
222  return (int)tableId + (row * 35331);
223  }

Member Data Documentation

readonly int Deveel.Data.Client.LocalRowCache.RowRef.row
private

Definition at line 214 of file LocalRowCache.cs.

readonly int Deveel.Data.Client.LocalRowCache.RowRef.tableId
private

Definition at line 213 of file LocalRowCache.cs.


The documentation for this class was generated from the following file: