DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Private Attributes | List of all members
Deveel.Data.Caching.TableCellCache.CacheKey Class Reference
Inheritance diagram for Deveel.Data.Caching.TableCellCache.CacheKey:

Public Member Functions

 CacheKey (string database, int tableId, int row, short column)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
bool Equals (CacheKey other)
 
 CacheKey (int tableId, int row, short column)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
bool Equals (CacheKey other)
 

Private Attributes

readonly string database
 
readonly short column
 
readonly int row
 
readonly int tableId
 

Detailed Description

Definition at line 207 of file TableCellCache.cs.

Constructor & Destructor Documentation

Deveel.Data.Caching.TableCellCache.CacheKey.CacheKey ( string  database,
int  tableId,
int  row,
short  column 
)
inline

Definition at line 213 of file TableCellCache.cs.

Deveel.Data.Caching.TableCellCache.CacheKey.CacheKey ( int  tableId,
int  row,
short  column 
)
inline

Definition at line 178 of file TableCellCache.old.cs.

Member Function Documentation

override bool Deveel.Data.Caching.TableCellCache.CacheKey.Equals ( object  obj)
inline

Definition at line 184 of file TableCellCache.old.cs.

184  {
185  return Equals((CacheKey) obj);
186  }
CacheKey(string database, int tableId, int row, short column)
bool Deveel.Data.Caching.TableCellCache.CacheKey.Equals ( CacheKey  other)
inline

Definition at line 193 of file TableCellCache.old.cs.

193  {
194  return row == other.row &&
195  column == other.column &&
196  tableId == other.tableId;
197  }
override bool Deveel.Data.Caching.TableCellCache.CacheKey.Equals ( object  obj)
inline

Definition at line 220 of file TableCellCache.cs.

220  {
221  return Equals((CacheKey)obj);
222  }
CacheKey(string database, int tableId, int row, short column)
bool Deveel.Data.Caching.TableCellCache.CacheKey.Equals ( CacheKey  other)
inline

Definition at line 229 of file TableCellCache.cs.

229  {
230  return database.Equals(other.database) &&
231  row == other.row &&
232  column == other.column &&
233  tableId == other.tableId;
234  }
override int Deveel.Data.Caching.TableCellCache.CacheKey.GetHashCode ( )
inline

Definition at line 188 of file TableCellCache.old.cs.

188  {
189  // Yicks - this one is the best by far!
190  return (((int)column + tableId + (row * 189977)) * 50021) << 4;
191  }
override int Deveel.Data.Caching.TableCellCache.CacheKey.GetHashCode ( )
inline

Definition at line 224 of file TableCellCache.cs.

224  {
225  // Yicks - this one is the best by far!
226  return (database.GetHashCode() + (((int)column + tableId + (row * 189977)) * 50021) << 4);
227  }

Member Data Documentation

readonly short Deveel.Data.Caching.TableCellCache.CacheKey.column
private

Definition at line 209 of file TableCellCache.cs.

readonly string Deveel.Data.Caching.TableCellCache.CacheKey.database
private

Definition at line 208 of file TableCellCache.cs.

readonly int Deveel.Data.Caching.TableCellCache.CacheKey.row
private

Definition at line 210 of file TableCellCache.cs.

readonly int Deveel.Data.Caching.TableCellCache.CacheKey.tableId
private

Definition at line 211 of file TableCellCache.cs.


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