public Db4oBrowser(ExtObjectContainer store) : this() { _store = store; _db4oTree.Store = _store; }
public StoredClassNode(ExtObjectContainer store, StoredClass storedClass) { _store = store; _class = storedClass; Text = _class.getName(); }
public StoredClassFieldsNode(ExtObjectContainer store, StoredClass storedClass) { _store = store; _class = storedClass; Text = "Stored Fields"; }
public StoredClassParentNode(ExtObjectContainer store, StoredClass storedClass) { _store = store; _class = storedClass; Text = "Parent Class"; }
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"; }
public RootNode(ExtObjectContainer store) { _store = store; Text = "Store ID " + store.identity().getID(store); //Load child nodes immediately to seed the tree LoadChildNodes(); }
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(); }
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(); }
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); } }