Example #1
0
        public Db4oBrowser(ExtObjectContainer store)
            : this()
        {
            _store = store;

            _db4oTree.Store = _store;
        }
Example #2
0
        public StoredClassNode(ExtObjectContainer store, StoredClass storedClass)
        {
            _store = store;
            _class = storedClass;

            Text = _class.getName();
        }
Example #3
0
        public StoredClassFieldsNode(ExtObjectContainer store, StoredClass storedClass)
        {
            _store = store;
            _class = storedClass;

            Text = "Stored Fields";
        }
Example #4
0
        public StoredClassParentNode(ExtObjectContainer store, StoredClass storedClass)
        {
            _store = store;
            _class = storedClass;

            Text = "Parent Class";
        }
Example #5
0
        public db4oDataStore(db4oDbEngine engine, ExtObjectContainer container, String path, ILoggerFactory factory)
        {
            _engine = engine;
            _container = container;
            _path = path;

            _typeProcessor = new db4oTypeProcessor(this);

            //Here at load time, process the type information for all the types currently
            //stored in the container
            foreach (StoredClass sc in _container.storedClasses()) {
                Type storedType = Type.GetType(sc.getName());

                if (storedType != null) {
                    if (!_typeProcessor.IsAssemblyProcessed(storedType.Assembly)) {
                        _typeProcessor.ProcessAssembly(storedType.Assembly);
                    }
                }
            }

            _recursor = new ObjectRecursor(this);

            _logger = new LoggerHelper(factory.GetLogger(typeof(db4oDataStore)), Assembly.GetExecutingAssembly(), "StringConstants");

            _logger.Debug("LogMsg.DataStoreConstructed", path);
        }
        public StoredClassObjectsNode(ExtObjectContainer store, StoredClass storedClass)
        {
            _store = store;
            _class = storedClass;

            Text = "Stored Instances";
        }
Example #7
0
        public RootNode(ExtObjectContainer store)
        {
            _store = store;

            Text = "Store ID " + store.identity().getID(store);

            //Load child nodes immediately to seed the tree
            LoadChildNodes();
        }
Example #8
0
        public StoredClassObjectNode(ExtObjectContainer store, StoredClass storedClass, long id)
        {
            _store = store;
            _class = storedClass;
            _id = id;

            _obj = _store.getByID(id);
            _store.activate(_obj, 5);

            Text = "Instance #" + _id + " - " + _obj.ToString();
        }
Example #9
0
        public StoredClassFieldNode(ExtObjectContainer store, StoredClass storedClass, StoredField storedField)
        {
            _store = store;
            _class = storedClass;
            _field = storedField;

            Text = _field.getStoredType().ToString();
            if (_field.isArray()) {
                Text += "[]";
            }
            Text += " " + _field.getName();
        }
Example #10
0
        public void Dispose()
        {
            if (_container != null) {
                _logger.Debug("LogMsg.DataStoreClosing", _path);
                _container.close();
                _container = null;

                //Inform the dbengine instance
                _engine.OnDataStoreClosed(this);
                _logger.Debug("LogMsg.DataStoreClosed", _path);
            }
        }