aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSean Dague2007-09-28 10:23:48 +0000
committerSean Dague2007-09-28 10:23:48 +0000
commit77354612ffb3f2558c0fa0fb766f9eb43478ccd7 (patch)
treecd0a52ea6e1cd2c790c1b43d05e3498fc7617884
parentthis should fix 443 and compile! (diff)
downloadopensim-SC-77354612ffb3f2558c0fa0fb766f9eb43478ccd7.zip
opensim-SC-77354612ffb3f2558c0fa0fb766f9eb43478ccd7.tar.gz
opensim-SC-77354612ffb3f2558c0fa0fb766f9eb43478ccd7.tar.bz2
opensim-SC-77354612ffb3f2558c0fa0fb766f9eb43478ccd7.tar.xz
implement getInventoryItem and getInventoryFolder (not
sure why these weren't implemented previously)
-rw-r--r--OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs20
1 files changed, 15 insertions, 5 deletions
diff --git a/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs b/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs
index d3d752f..4639e09 100644
--- a/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs
+++ b/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs
@@ -64,7 +64,7 @@ namespace OpenSim.Framework.Data.SQLite
64 return; 64 return;
65 } 65 }
66 66
67 public InventoryItemBase BuildItem(DataRow row) 67 public InventoryItemBase buildItem(DataRow row)
68 { 68 {
69 InventoryItemBase item = new InventoryItemBase(); 69 InventoryItemBase item = new InventoryItemBase();
70 item.inventoryID = new LLUUID((string)row["UUID"]); 70 item.inventoryID = new LLUUID((string)row["UUID"]);
@@ -182,7 +182,7 @@ namespace OpenSim.Framework.Data.SQLite
182 DataRow[] rows = inventoryItemTable.Select(selectExp); 182 DataRow[] rows = inventoryItemTable.Select(selectExp);
183 foreach (DataRow row in rows) 183 foreach (DataRow row in rows)
184 { 184 {
185 retval.Add(BuildItem(row)); 185 retval.Add(buildItem(row));
186 } 186 }
187 187
188 return retval; 188 return retval;
@@ -211,7 +211,7 @@ namespace OpenSim.Framework.Data.SQLite
211 DataRow[] rows = inventoryFolderTable.Select(selectExp); 211 DataRow[] rows = inventoryFolderTable.Select(selectExp);
212 foreach (DataRow row in rows) 212 foreach (DataRow row in rows)
213 { 213 {
214 folders.Add(this.buildFolder(row)); 214 folders.Add(buildFolder(row));
215 } 215 }
216 216
217 if (folders.Count == 1) 217 if (folders.Count == 1)
@@ -260,7 +260,12 @@ namespace OpenSim.Framework.Data.SQLite
260 /// <returns>A class containing item information</returns> 260 /// <returns>A class containing item information</returns>
261 public InventoryItemBase getInventoryItem(LLUUID item) 261 public InventoryItemBase getInventoryItem(LLUUID item)
262 { 262 {
263 return null; 263 DataRow row = ds.Tables["inventoryitems"].Rows.Find(item);
264 if (row != null) {
265 return buildItem(row);
266 } else {
267 return null;
268 }
264 } 269 }
265 270
266 /// <summary> 271 /// <summary>
@@ -270,7 +275,12 @@ namespace OpenSim.Framework.Data.SQLite
270 /// <returns>A class containing folder information</returns> 275 /// <returns>A class containing folder information</returns>
271 public InventoryFolderBase getInventoryFolder(LLUUID folder) 276 public InventoryFolderBase getInventoryFolder(LLUUID folder)
272 { 277 {
273 return null; 278 DataRow row = ds.Tables["inventoryfolders"].Rows.Find(folder);
279 if (row != null) {
280 return buildFolder(row);
281 } else {
282 return null;
283 }
274 } 284 }
275 285
276 /// <summary> 286 /// <summary>