19 namespace Deveel.Data.Store {
31 public struct ObjectId : IEquatable<ObjectId> {
41 throw new ArgumentOutOfRangeException(
"storeId");
43 throw new ArgumentOutOfRangeException(
"id");
56 public int StoreId {
get;
private set; }
65 public long Id {
get;
private set; }
68 public override bool Equals(
object obj) {
74 return unchecked ((
int)(StoreId*47 ^ Id));
79 return StoreId == other.
StoreId &&
85 return String.Format(
"0x{0:X}:{1:X}", StoreId, Id);
long Id
Gets the unique identifier of the object within the containing store.
override int GetHashCode()
override string ToString()
bool Equals(ObjectId other)
A unique identifier of an object within a database system, that is composed by a reference to the sto...
int StoreId
Gets the unique identifier of the store that contains the object.
ObjectId(int storeId, long id)
Constructs the ObjectId with the given references to the store and the address.
override bool Equals(object obj)