public virtual NeoDatis.Btree.IBTree LoadBTree(object id) { nbLoadTree++; NeoDatis.Odb.OID oid = (NeoDatis.Odb.OID)id; try { if (NeoDatis.Odb.OdbConfiguration.IsDebugEnabled(LogId)) { NeoDatis.Tool.DLogger.Debug("Loading btree with id " + oid); } if (oid == NeoDatis.Odb.Impl.Core.Layers.Layer3.Engine.StorageEngineConstant.NullObjectId) { throw new NeoDatis.Odb.ODBRuntimeException(NeoDatis.Btree.BTreeError.InvalidIdForBtree .AddParameter(NeoDatis.Odb.Impl.Core.Layers.Layer3.Engine.StorageEngineConstant. NullObjectId)); } tree = (NeoDatis.Btree.IBTree)engine.GetObjectFromOid(oid); tree.SetId(oid); tree.SetPersister(this); NeoDatis.Btree.IBTreeNode root = tree.GetRoot(); root.SetBTree(tree); return(tree); } catch (System.Exception e) { throw new NeoDatis.Odb.ODBRuntimeException(NeoDatis.Btree.BTreeError.InternalError , e); } }
public virtual NeoDatis.Btree.IBTree LoadBTree(object id) { nbLoadTree++; NeoDatis.Odb.OID oid = (NeoDatis.Odb.OID)id; try { if (NeoDatis.Odb.OdbConfiguration.IsDebugEnabled(LogId)) { NeoDatis.Tool.DLogger.Debug("Loading btree with id " + oid); } if (oid == NeoDatis.Odb.Impl.Core.Layers.Layer3.Engine.StorageEngineConstant.NullObjectId) { throw new NeoDatis.Odb.ODBRuntimeException(NeoDatis.Btree.BTreeError.InvalidIdForBtree .AddParameter(NeoDatis.Odb.Impl.Core.Layers.Layer3.Engine.StorageEngineConstant. NullObjectId)); } tree = (NeoDatis.Btree.IBTree)engine.GetObjectFromOid(oid); tree.SetId(oid); tree.SetPersister(this); NeoDatis.Btree.IBTreeNode root = tree.GetRoot(); root.SetBTree(tree); return tree; } catch (System.Exception e) { throw new NeoDatis.Odb.ODBRuntimeException(NeoDatis.Btree.BTreeError.InternalError , e); } }