Ejemplo n.º 1
0
        public virtual void Put(Transaction trans, int objectId, long version)
        {
            var te = new TimestampEntry
                         (objectId, version);

            IdToTimestamp().Add(trans, te);
            TimestampToId().Add(trans, te);
        }
Ejemplo n.º 2
0
 private void AddTimestamp(Transaction trans, IEnumerator it, long commitTimestamp
                           )
 {
     while (it.MoveNext())
     {
         var objInfo = (IObjectInfo)it.Current;
         var te      = new TimestampEntry
                           ((int)objInfo.GetInternalID(), commitTimestamp);
         var oldEntry = (TimestampEntry
                         )_enclosing._idToTimestamp.Remove(trans, te);
         if (oldEntry != null)
         {
             _enclosing._timestampToId.Remove(trans, oldEntry);
         }
         if (commitTimestamp != 0)
         {
             _enclosing._idToTimestamp.Add(trans, te);
             _enclosing._timestampToId.Add(trans, te);
         }
     }
 }
Ejemplo n.º 3
0
 private void AddTimestamp(Transaction trans, IEnumerator it, long commitTimestamp
     )
 {
     while (it.MoveNext())
     {
         var objInfo = (IObjectInfo) it.Current;
         var te = new TimestampEntry
             ((int) objInfo.GetInternalID(), commitTimestamp);
         var oldEntry = (TimestampEntry
             ) _enclosing._idToTimestamp.Remove(trans, te);
         if (oldEntry != null)
         {
             _enclosing._timestampToId.Remove(trans, oldEntry);
         }
         if (commitTimestamp != 0)
         {
             _enclosing._idToTimestamp.Add(trans, te);
             _enclosing._timestampToId.Add(trans, te);
         }
     }
 }
Ejemplo n.º 4
0
 public virtual void Put(Transaction trans, int objectId, long version)
 {
     var te = new TimestampEntry
         (objectId, version);
     IdToTimestamp().Add(trans, te);
     TimestampToId().Add(trans, te);
 }