Пример #1
0
		public BTreeIdSystem(LocalObjectContainer container, IStackableIdSystem parentIdSystem
			, int maxValidId)
		{
			_container = container;
			_parentIdSystem = parentIdSystem;
			_transactionalIdSystem = container.NewTransactionalIdSystem(null, new _IClosure4_40
				(parentIdSystem));
			int persistentArrayId = parentIdSystem.ChildId();
			if (persistentArrayId == 0)
			{
				InitializeNew();
			}
			else
			{
				InitializeExisting(persistentArrayId);
			}
			_idGenerator = new SequentialIdGenerator(new _IFunction4_52(this), IdGeneratorValue
				(), _container.Handlers.LowestValidId(), maxValidId);
		}
Пример #2
0
        public BTreeIdSystem(LocalObjectContainer container, IStackableIdSystem parentIdSystem
                             , int maxValidId)
        {
            _container             = container;
            _parentIdSystem        = parentIdSystem;
            _transactionalIdSystem = container.NewTransactionalIdSystem(null, new _IClosure4_40
                                                                            (parentIdSystem));
            int persistentArrayId = parentIdSystem.ChildId();

            if (persistentArrayId == 0)
            {
                InitializeNew();
            }
            else
            {
                InitializeExisting(persistentArrayId);
            }
            _idGenerator = new SequentialIdGenerator(new _IFunction4_52(this), IdGeneratorValue
                                                         (), _container.Handlers.LowestValidId(), maxValidId);
        }
Пример #3
0
 /// <summary>for testing purposes only.</summary>
 /// <remarks>for testing purposes only.</remarks>
 public InMemoryIdSystem(LocalObjectContainer container, int maxValidId)
 {
     _container   = container;
     _idGenerator = new SequentialIdGenerator(new _IFunction4_32(this, maxValidId), _container
                                              .Handlers.LowestValidId(), maxValidId);
 }
Пример #4
0
		/// <summary>for testing purposes only.</summary>
		/// <remarks>for testing purposes only.</remarks>
		public InMemoryIdSystem(LocalObjectContainer container, int maxValidId)
		{
			_container = container;
			_idGenerator = new SequentialIdGenerator(new _IFunction4_32(this, maxValidId), _container
				.Handlers.LowestValidId(), maxValidId);
		}