DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
CachedCell.cs
Go to the documentation of this file.
1 //
2 // Copyright 2010-2015 Deveel
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 
17 using System;
18 
19 using Deveel.Data.Sql;
20 using Deveel.Data.Sql.Tables;
21 
22 namespace Deveel.Data.Caching {
23  public sealed class CachedCell {
24  internal CachedCell(CellKey key, DataObject value) {
25  Key = key;
26  Value = value;
27  }
28 
29  public CellKey Key { get; private set; }
30 
31  public RowId RowId {
32  get { return Key.RowId; }
33  }
34 
35  public int TableId {
36  get { return RowId.TableId; }
37  }
38 
39  public long RowNumber {
40  get { return RowId.RowNumber; }
41  }
42 
43  public int ColumnOffset {
44  get { return Key.ColumnOffset; }
45  }
46 
47  public DataObject Value { get; private set; }
48 
49  public string Database {
50  get { return Key.Database; }
51  }
52  }
53 }
The default implementation of a database in a system.
Definition: Database.cs:38
Database(DatabaseSystem system, IDatabaseContext context)
Definition: Database.cs:39
int RowNumber
Gets the number of the column within the table referenced.
Definition: RowId.cs:58
RowId(int tableId, int rowNumber)
Constructs the object with the references to the given table unique ID and the number of the row with...
Definition: RowId.cs:39
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
Definition: DataObject.cs:35
Defines the value of a ROWID object, that is a unique reference within a database system to a single ...
Definition: RowId.cs:24
CachedCell(CellKey key, DataObject value)
Definition: CachedCell.cs:24
int TableId
Gets the unique identifier of the table the row is contained.
Definition: RowId.cs:53