diff options
author | Adam Frisby | 2007-07-19 00:29:50 +0000 |
---|---|---|
committer | Adam Frisby | 2007-07-19 00:29:50 +0000 |
commit | f29acf95b0f8ac99a4a59e833186a543d73f9624 (patch) | |
tree | 78a5dc95478dc86797c164811719010b46dbec92 /OpenSim/Region/Storage/LocalStorageDb4o | |
parent | * Removing more compiler warnings (diff) | |
download | opensim-SC-f29acf95b0f8ac99a4a59e833186a543d73f9624.zip opensim-SC-f29acf95b0f8ac99a4a59e833186a543d73f9624.tar.gz opensim-SC-f29acf95b0f8ac99a4a59e833186a543d73f9624.tar.bz2 opensim-SC-f29acf95b0f8ac99a4a59e833186a543d73f9624.tar.xz |
* Removed yet more compiler warnings
* Dropped old ILocalStorage storage engines.
Diffstat (limited to 'OpenSim/Region/Storage/LocalStorageDb4o')
5 files changed, 0 insertions, 456 deletions
diff --git a/OpenSim/Region/Storage/LocalStorageDb4o/AssemblyInfo.cs b/OpenSim/Region/Storage/LocalStorageDb4o/AssemblyInfo.cs deleted file mode 100644 index a3aac18..0000000 --- a/OpenSim/Region/Storage/LocalStorageDb4o/AssemblyInfo.cs +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://www.openmetaverse.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions are met: | ||
7 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSim Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | * | ||
27 | */ | ||
28 | using System.Reflection; | ||
29 | using System.Runtime.InteropServices; | ||
30 | // Information about this assembly is defined by the following | ||
31 | // attributes. | ||
32 | // | ||
33 | // change them to the information which is associated with the assembly | ||
34 | // you compile. | ||
35 | |||
36 | [assembly: AssemblyTitle("Db4LocalStorage")] | ||
37 | [assembly: AssemblyDescription("")] | ||
38 | [assembly: AssemblyConfiguration("")] | ||
39 | [assembly: AssemblyCompany("")] | ||
40 | [assembly: AssemblyProduct("Db4LocalStorage")] | ||
41 | [assembly: AssemblyCopyright("")] | ||
42 | [assembly: AssemblyTrademark("")] | ||
43 | [assembly: AssemblyCulture("")] | ||
44 | |||
45 | // This sets the default COM visibility of types in the assembly to invisible. | ||
46 | // If you need to expose a type to COM, use [ComVisible(true)] on that type. | ||
47 | [assembly: ComVisible(false)] | ||
48 | |||
49 | // The assembly version has following format : | ||
50 | // | ||
51 | // Major.Minor.Build.Revision | ||
52 | // | ||
53 | // You can specify all values by your own or you can build default build and revision | ||
54 | // numbers with the '*' character (the default): | ||
55 | |||
56 | [assembly: AssemblyVersion("1.0.*")] | ||
diff --git a/OpenSim/Region/Storage/LocalStorageDb4o/Db4LocalStorage.cs b/OpenSim/Region/Storage/LocalStorageDb4o/Db4LocalStorage.cs deleted file mode 100644 index 5dc5a3b..0000000 --- a/OpenSim/Region/Storage/LocalStorageDb4o/Db4LocalStorage.cs +++ /dev/null | |||
@@ -1,267 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://www.openmetaverse.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions are met: | ||
7 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSim Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | * | ||
27 | */ | ||
28 | using System; | ||
29 | using Db4objects.Db4o; | ||
30 | using libsecondlife; | ||
31 | using OpenSim.Framework.Console; | ||
32 | using OpenSim.Framework.Interfaces; | ||
33 | using OpenSim.Framework.Types; | ||
34 | |||
35 | namespace OpenSim.Region.Storage.LocalStorageDb4o | ||
36 | { | ||
37 | /// <summary> | ||
38 | /// | ||
39 | /// </summary> | ||
40 | public class Db4LocalStorage : ILocalStorage | ||
41 | { | ||
42 | private IObjectContainer db; | ||
43 | private string datastore; | ||
44 | |||
45 | public Db4LocalStorage() | ||
46 | { | ||
47 | |||
48 | } | ||
49 | |||
50 | public void Initialise(string dfile) | ||
51 | { | ||
52 | MainLog.Instance.Warn("Db4LocalStorage Opening " + dfile); | ||
53 | datastore = dfile; | ||
54 | try | ||
55 | { | ||
56 | db = Db4oFactory.OpenFile(datastore); | ||
57 | MainLog.Instance.Verbose("Db4LocalStorage creation"); | ||
58 | } | ||
59 | catch (Exception e) | ||
60 | { | ||
61 | db.Close(); | ||
62 | MainLog.Instance.Warn("Db4LocalStorage :Constructor - Exception occured"); | ||
63 | MainLog.Instance.Warn(e.ToString()); | ||
64 | } | ||
65 | } | ||
66 | |||
67 | public void StorePrim(PrimData prim) | ||
68 | { | ||
69 | IObjectSet result = db.Query(new UUIDPrimQuery(prim.FullID)); | ||
70 | if (result.Count > 0) | ||
71 | { | ||
72 | //prim already in storage | ||
73 | //so update it | ||
74 | PrimData found = (PrimData)result.Next(); | ||
75 | found.PathBegin = prim.PathBegin; | ||
76 | found.PathCurve = prim.PathCurve; | ||
77 | found.PathEnd = prim.PathEnd; | ||
78 | found.PathRadiusOffset = prim.PathRadiusOffset; | ||
79 | found.PathRevolutions = prim.PathRevolutions; | ||
80 | found.PathScaleX = prim.PathScaleX; | ||
81 | found.PathScaleY = prim.PathScaleY; | ||
82 | found.PathShearX = prim.PathShearX; | ||
83 | found.PathShearY = prim.PathShearY; | ||
84 | found.PathSkew = prim.PathSkew; | ||
85 | found.PathTaperX = prim.PathTaperX; | ||
86 | found.PathTaperY = prim.PathTaperY; | ||
87 | found.PathTwist = prim.PathTwist; | ||
88 | found.PathTwistBegin = prim.PathTwistBegin; | ||
89 | found.PCode = prim.PCode; | ||
90 | found.ProfileBegin = prim.ProfileBegin; | ||
91 | found.ProfileCurve = prim.ProfileCurve; | ||
92 | found.ProfileEnd = prim.ProfileEnd; | ||
93 | found.ProfileHollow = prim.ProfileHollow; | ||
94 | found.Position = prim.Position; | ||
95 | found.Rotation = prim.Rotation; | ||
96 | found.TextureEntry = prim.TextureEntry; | ||
97 | db.Set(found); | ||
98 | db.Commit(); | ||
99 | } | ||
100 | else | ||
101 | { | ||
102 | //not in storage | ||
103 | db.Set(prim); | ||
104 | db.Commit(); | ||
105 | } | ||
106 | } | ||
107 | |||
108 | public void RemovePrim(LLUUID primID) | ||
109 | { | ||
110 | IObjectSet result = db.Query(new UUIDPrimQuery(primID)); | ||
111 | if (result.Count > 0) | ||
112 | { | ||
113 | PrimData found = (PrimData)result.Next(); | ||
114 | db.Delete(found); | ||
115 | } | ||
116 | } | ||
117 | |||
118 | |||
119 | public void LoadPrimitives(ILocalStorageReceiver receiver) | ||
120 | { | ||
121 | IObjectSet result = db.Get(typeof(PrimData)); | ||
122 | MainLog.Instance.Verbose("Db4LocalStorage.cs: LoadPrimitives() - number of prims in storages is " + result.Count); | ||
123 | foreach (PrimData prim in result) | ||
124 | { | ||
125 | receiver.PrimFromStorage(prim); | ||
126 | } | ||
127 | } | ||
128 | |||
129 | public float[] LoadWorld() | ||
130 | { | ||
131 | MainLog.Instance.Verbose("LoadWorld() - Loading world...."); | ||
132 | float[] heightmap = null; | ||
133 | MainLog.Instance.Verbose("LoadWorld() - Looking for a heightmap in local DB"); | ||
134 | IObjectSet world_result = db.Get(typeof(MapStorage)); | ||
135 | if (world_result.Count > 0) | ||
136 | { | ||
137 | MainLog.Instance.Verbose("LoadWorld() - Found a heightmap in local database, loading"); | ||
138 | MapStorage map = (MapStorage)world_result.Next(); | ||
139 | //blank.LandMap = map.Map; | ||
140 | heightmap = map.Map; | ||
141 | } | ||
142 | return heightmap; | ||
143 | } | ||
144 | |||
145 | public void SaveMap(float[] heightmap) | ||
146 | { | ||
147 | IObjectSet world_result = db.Get(typeof(MapStorage)); | ||
148 | if (world_result.Count > 0) | ||
149 | { | ||
150 | MainLog.Instance.Verbose("SaveWorld() - updating saved copy of heightmap in local database"); | ||
151 | MapStorage map = (MapStorage)world_result.Next(); | ||
152 | db.Delete(map); | ||
153 | } | ||
154 | MapStorage map1 = new MapStorage(); | ||
155 | map1.Map = heightmap; //OpenSim_Main.local_world.LandMap; | ||
156 | db.Set(map1); | ||
157 | db.Commit(); | ||
158 | } | ||
159 | |||
160 | public void SaveLandObject(LandData landObject) | ||
161 | { | ||
162 | IObjectSet result = db.Query(new UUIDLandQuery(landObject.globalID)); | ||
163 | if (result.Count > 0) | ||
164 | { | ||
165 | //Old Land | ||
166 | LandData updateLand = (LandData)result.Next(); | ||
167 | updateLand.AABBMax = landObject.AABBMax; | ||
168 | updateLand.AABBMin = landObject.AABBMin; | ||
169 | updateLand.area = landObject.area; | ||
170 | updateLand.auctionID = landObject.auctionID; | ||
171 | updateLand.authBuyerID = landObject.authBuyerID; | ||
172 | updateLand.category = landObject.category; | ||
173 | updateLand.claimDate = landObject.claimDate; | ||
174 | updateLand.claimPrice = landObject.claimPrice; | ||
175 | updateLand.groupID = landObject.groupID; | ||
176 | updateLand.groupPrims = landObject.groupPrims; | ||
177 | updateLand.isGroupOwned = landObject.isGroupOwned; | ||
178 | updateLand.landingType = landObject.landingType; | ||
179 | updateLand.mediaAutoScale = landObject.mediaAutoScale; | ||
180 | updateLand.mediaID = landObject.mediaID; | ||
181 | updateLand.mediaURL = landObject.mediaURL; | ||
182 | updateLand.musicURL = landObject.musicURL; | ||
183 | updateLand.localID = landObject.localID; | ||
184 | updateLand.ownerID = landObject.ownerID; | ||
185 | updateLand.passHours = landObject.passHours; | ||
186 | updateLand.passPrice = landObject.passPrice; | ||
187 | updateLand.landBitmapByteArray = (byte[])landObject.landBitmapByteArray.Clone(); | ||
188 | updateLand.landDesc = landObject.landDesc; | ||
189 | updateLand.landFlags = landObject.landFlags; | ||
190 | updateLand.landName = landObject.landName; | ||
191 | updateLand.landStatus = landObject.landStatus; | ||
192 | updateLand.salePrice = landObject.salePrice; | ||
193 | updateLand.snapshotID = landObject.snapshotID; | ||
194 | updateLand.userLocation = landObject.userLocation; | ||
195 | updateLand.userLookAt = landObject.userLookAt; | ||
196 | |||
197 | db.Set(updateLand); | ||
198 | } | ||
199 | else | ||
200 | { | ||
201 | db.Set(landObject); | ||
202 | } | ||
203 | db.Commit(); | ||
204 | } | ||
205 | |||
206 | public void SaveLandObjects(LandData[] landObject_data) | ||
207 | { | ||
208 | MainLog.Instance.Notice("Land Backup: Saving Lands..."); | ||
209 | int i; | ||
210 | for (i = 0; i < landObject_data.GetLength(0); i++) | ||
211 | { | ||
212 | |||
213 | SaveLandObject(landObject_data[i]); | ||
214 | |||
215 | } | ||
216 | MainLog.Instance.Notice("Land Backup: Land Save Complete"); | ||
217 | } | ||
218 | |||
219 | public void RemoveLandObject(LandData landObject) | ||
220 | { | ||
221 | IObjectSet result = db.Query(new UUIDLandQuery(landObject.globalID)); | ||
222 | if (result.Count > 0) | ||
223 | { | ||
224 | db.Delete(result[0]); | ||
225 | } | ||
226 | db.Commit(); | ||
227 | } | ||
228 | public void RemoveAllLandObjects() | ||
229 | { | ||
230 | MainLog.Instance.Notice("Land Backup: Removing all land objects..."); | ||
231 | IObjectSet result = db.Get(typeof(LandData)); | ||
232 | if (result.Count > 0) | ||
233 | { | ||
234 | foreach (LandData landData in result) | ||
235 | { | ||
236 | RemoveLandObject(landData); | ||
237 | } | ||
238 | } | ||
239 | } | ||
240 | |||
241 | public void LoadLandObjects(ILocalStorageLandObjectReceiver recv) | ||
242 | { | ||
243 | MainLog.Instance.Notice("Land Backup: Loading Lands..."); | ||
244 | IObjectSet result = db.Get(typeof(LandData)); | ||
245 | if (result.Count > 0) | ||
246 | { | ||
247 | MainLog.Instance.Notice("Land Backup: Lands exist in database."); | ||
248 | foreach (LandData landData in result) | ||
249 | { | ||
250 | |||
251 | recv.LandFromStorage(landData); | ||
252 | } | ||
253 | } | ||
254 | else | ||
255 | { | ||
256 | MainLog.Instance.Notice("Land Backup: No landObjects exist. Creating basic landObject."); | ||
257 | recv.NoLandDataFromStorage(); | ||
258 | } | ||
259 | MainLog.Instance.Notice("Land Backup: Lands Restored"); | ||
260 | } | ||
261 | public void ShutDown() | ||
262 | { | ||
263 | db.Commit(); | ||
264 | db.Close(); | ||
265 | } | ||
266 | } | ||
267 | } \ No newline at end of file | ||
diff --git a/OpenSim/Region/Storage/LocalStorageDb4o/MapStorage.cs b/OpenSim/Region/Storage/LocalStorageDb4o/MapStorage.cs deleted file mode 100644 index 3a5dd19..0000000 --- a/OpenSim/Region/Storage/LocalStorageDb4o/MapStorage.cs +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://www.openmetaverse.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions are met: | ||
7 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSim Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | * | ||
27 | */ | ||
28 | namespace OpenSim.Region.Storage.LocalStorageDb4o | ||
29 | { | ||
30 | public class MapStorage | ||
31 | { | ||
32 | public float[] Map; | ||
33 | |||
34 | public MapStorage() | ||
35 | { | ||
36 | |||
37 | } | ||
38 | } | ||
39 | } \ No newline at end of file | ||
diff --git a/OpenSim/Region/Storage/LocalStorageDb4o/UUIDLandQuery.cs b/OpenSim/Region/Storage/LocalStorageDb4o/UUIDLandQuery.cs deleted file mode 100644 index 6c5b2fb..0000000 --- a/OpenSim/Region/Storage/LocalStorageDb4o/UUIDLandQuery.cs +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://www.openmetaverse.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions are met: | ||
7 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSim Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | * | ||
27 | */ | ||
28 | using Db4objects.Db4o.Query; | ||
29 | using libsecondlife; | ||
30 | using OpenSim.Framework.Types; | ||
31 | |||
32 | namespace OpenSim.Region.Storage.LocalStorageDb4o | ||
33 | { | ||
34 | public class UUIDLandQuery : Predicate | ||
35 | { | ||
36 | private LLUUID globalIDSearch; | ||
37 | |||
38 | public UUIDLandQuery(LLUUID find) | ||
39 | { | ||
40 | globalIDSearch = find; | ||
41 | } | ||
42 | public bool Match(LandData land) | ||
43 | { | ||
44 | return (land.globalID == globalIDSearch); | ||
45 | } | ||
46 | } | ||
47 | } | ||
diff --git a/OpenSim/Region/Storage/LocalStorageDb4o/UUIDPrimQuery.cs b/OpenSim/Region/Storage/LocalStorageDb4o/UUIDPrimQuery.cs deleted file mode 100644 index d5077ff..0000000 --- a/OpenSim/Region/Storage/LocalStorageDb4o/UUIDPrimQuery.cs +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://www.openmetaverse.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions are met: | ||
7 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSim Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | * | ||
27 | */ | ||
28 | using Db4objects.Db4o.Query; | ||
29 | using libsecondlife; | ||
30 | using OpenSim.Framework.Types; | ||
31 | |||
32 | namespace OpenSim.Region.Storage.LocalStorageDb4o | ||
33 | { | ||
34 | public class UUIDPrimQuery : Predicate | ||
35 | { | ||
36 | private LLUUID _findID; | ||
37 | |||
38 | public UUIDPrimQuery(LLUUID find) | ||
39 | { | ||
40 | _findID = find; | ||
41 | } | ||
42 | public bool Match(PrimData prim) | ||
43 | { | ||
44 | return (prim.FullID == _findID); | ||
45 | } | ||
46 | } | ||
47 | } | ||