예제 #1
0
 private void Store(object obj, IDrsUUID uuid, long version)
 {
     if (obj == null)
     {
         throw new Exception();
     }
     _storedObjects[obj] = new TransientReplicationProvider.ObjectInfo(uuid, version);
 }
예제 #2
0
        public virtual void TransientProviderSpecificStore(object obj)
        {
            //TODO ak: this implementation of vvv is copied from Hibernate, which works.
            // However, vvv should be supposed to be replaced by getCurrentVersion(), but that wouldn't work. Find out
            long vvv = new TimeStampIdGenerator(_lastReplicationVersion).Generate();

            TransientReplicationProvider.ObjectInfo info = GetInfo(obj);
            if (info == null)
            {
                Store(obj, new DrsUUIDImpl(new Db4oUUID(_timeStampIdGenerator.Generate(), _signature
                                                        .GetSignature())), vvv);
            }
            else
            {
                info._version = vvv;
            }
        }
		private void Store(object obj, IDrsUUID uuid, long version)
		{
			if (obj == null)
			{
				throw new Exception();
			}
			_storedObjects[obj] = new TransientReplicationProvider.ObjectInfo(uuid, version);
		}