From d451dddcd0e061cd5aa326cb08d6e24e08817dcc Mon Sep 17 00:00:00 2001 From: MW Date: Thu, 9 Aug 2007 17:54:22 +0000 Subject: Start of replacing the old SceneObject/Primitive classes with the new versions. PLEASE NOTE: that with this revision some prim related features may be broke for a while. (things like linking prims and the parcel prim count.) Also this revision may not work on mono, but that will be fixed soon. --- .../Storage/OpenSim.DataStore.DB4o/DB4oDataStore.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'OpenSim/Region/Storage/OpenSim.DataStore.DB4o/DB4oDataStore.cs') diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.DB4o/DB4oDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.DB4o/DB4oDataStore.cs index 06c9069..9c5e4bc 100644 --- a/OpenSim/Region/Storage/OpenSim.DataStore.DB4o/DB4oDataStore.cs +++ b/OpenSim/Region/Storage/OpenSim.DataStore.DB4o/DB4oDataStore.cs @@ -24,9 +24,9 @@ namespace OpenSim.DataStore.DB4oStorage globalIDSearch = find; } - public bool Match(SceneObject obj) + public bool Match(SceneObjectGroup obj) { - return obj.rootUUID == globalIDSearch; + return obj.UUID == globalIDSearch; } } @@ -43,7 +43,7 @@ namespace OpenSim.DataStore.DB4oStorage return; } - public void StoreObject(SceneObject obj) + public void StoreObject(SceneObjectGroup obj) { db.Set(obj); } @@ -53,21 +53,21 @@ namespace OpenSim.DataStore.DB4oStorage IObjectSet result = db.Query(new SceneObjectQuery(obj)); if (result.Count > 0) { - SceneObject item = (SceneObject)result.Next(); + SceneObjectGroup item = (SceneObjectGroup)result.Next(); db.Delete(item); } } - public List LoadObjects() + public List LoadObjects() { - IObjectSet result = db.Get(typeof(SceneObject)); - List retvals = new List(); + IObjectSet result = db.Get(typeof(SceneObjectGroup)); + List retvals = new List(); MainLog.Instance.Verbose("DATASTORE", "DB4O - LoadObjects found " + result.Count.ToString() + " objects"); foreach (Object obj in result) { - retvals.Add((SceneObject)obj); + retvals.Add((SceneObjectGroup)obj); } return retvals; -- cgit v1.1