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