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);
		}
Esempio n. 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);
        }
		public BTreeIdSystem(LocalObjectContainer container, IStackableIdSystem idSystem)
			 : this(container, idSystem, int.MaxValue)
		{
		}
			public _IClosure4_40(IStackableIdSystem parentIdSystem)
			{
				this.parentIdSystem = parentIdSystem;
			}
Esempio n. 5
0
 public BTreeIdSystem(LocalObjectContainer container, IStackableIdSystem idSystem)
     : this(container, idSystem, int.MaxValue)
 {
 }
Esempio n. 6
0
 public _IClosure4_40(IStackableIdSystem parentIdSystem)
 {
     this.parentIdSystem = parentIdSystem;
 }