22 namespace Deveel.Data.Caching {
23 public sealed
class CellKey : IEquatable<CellKey> {
28 if (String.IsNullOrEmpty(database))
29 throw new ArgumentNullException(
"database");
32 throw new ArgumentException(
"Null ROWID in key.",
"cellId");
34 throw new ArgumentOutOfRangeException(
"cellId",
"The column offset in the key is smaller than zero.");
36 this.database = database;
41 get {
return database; }
45 get {
return cellId.
RowId; }
48 public int ColumnOffset {
49 get {
return cellId.ColumnOffset; }
56 return String.Equals(database, other.
database) &&
57 cellId.Equals(other.
cellId);
60 public override bool Equals(
object obj) {
67 return ((database != null ? database.GetHashCode() : 0)*397) ^ cellId.GetHashCode();
bool IsNull
Gets a boolean value indicating if the object equivales to a NULL.
bool Equals(CellKey other)
The default implementation of a database in a system.
override int GetHashCode()
RowId(int tableId, int rowNumber)
Constructs the object with the references to the given table unique ID and the number of the row with...
override bool Equals(object obj)
CellKey(string database, CellId cellId)
Defines the value of a ROWID object, that is a unique reference within a database system to a single ...