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

Public Member Functions

bool Equals (CellKey other)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Package Functions

 CellKey (string database, CellId cellId)
 

Properties

string Database [get]
 
RowId RowId [get]
 
int ColumnOffset [get]
 

Private Attributes

readonly string database
 
readonly CellId cellId
 

Detailed Description

Definition at line 23 of file CellKey.cs.

Constructor & Destructor Documentation

Deveel.Data.Caching.CellKey.CellKey ( string  database,
CellId  cellId 
)
inlinepackage

Definition at line 27 of file CellKey.cs.

27  {
28  if (String.IsNullOrEmpty(database))
29  throw new ArgumentNullException("database");
30 
31  if (cellId.RowId.IsNull)
32  throw new ArgumentException("Null ROWID in key.","cellId");
33  if (cellId.ColumnOffset < 0)
34  throw new ArgumentOutOfRangeException("cellId", "The column offset in the key is smaller than zero.");
35 
36  this.database = database;
37  this.cellId = cellId;
38  }
bool IsNull
Gets a boolean value indicating if the object equivales to a NULL.
Definition: RowId.cs:64
A long string in the system.
readonly CellId cellId
Definition: CellKey.cs:25
readonly string database
Definition: CellKey.cs:24

Member Function Documentation

bool Deveel.Data.Caching.CellKey.Equals ( CellKey  other)
inline

Definition at line 52 of file CellKey.cs.

52  {
53  if (other == null)
54  return false;
55 
56  return String.Equals(database, other.database) &&
57  cellId.Equals(other.cellId);
58  }
A long string in the system.
readonly CellId cellId
Definition: CellKey.cs:25
readonly string database
Definition: CellKey.cs:24
bool Equals(CellId other)
Definition: CellId.cs:35
override bool Deveel.Data.Caching.CellKey.Equals ( object  obj)
inline

Definition at line 60 of file CellKey.cs.

60  {
61  var other = obj as CellKey;
62  return Equals(other);
63  }
bool Equals(CellKey other)
Definition: CellKey.cs:52
CellKey(string database, CellId cellId)
Definition: CellKey.cs:27
override int Deveel.Data.Caching.CellKey.GetHashCode ( )
inline

Definition at line 65 of file CellKey.cs.

65  {
66  unchecked {
67  return ((database != null ? database.GetHashCode() : 0)*397) ^ cellId.GetHashCode();
68  }
69  }
readonly CellId cellId
Definition: CellKey.cs:25
readonly string database
Definition: CellKey.cs:24
override int GetHashCode()
Definition: CellId.cs:47

Member Data Documentation

readonly CellId Deveel.Data.Caching.CellKey.cellId
private

Definition at line 25 of file CellKey.cs.

readonly string Deveel.Data.Caching.CellKey.database
private

Definition at line 24 of file CellKey.cs.

Property Documentation

int Deveel.Data.Caching.CellKey.ColumnOffset
get

Definition at line 48 of file CellKey.cs.

string Deveel.Data.Caching.CellKey.Database
get

Definition at line 40 of file CellKey.cs.

RowId Deveel.Data.Caching.CellKey.RowId
get

Definition at line 44 of file CellKey.cs.


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