From 1121a214b9258487dae0d84dad1a0b495d2f80bd Mon Sep 17 00:00:00 2001
From: Melanie Thielker
Date: Sat, 21 Mar 2009 17:46:58 +0000
Subject: Add a QueryItem method to the inventory subsystem. Currently
implemented for MySQL only, stubs for the others. This allows updating the
cache with a single item from the database.
---
OpenSim/Data/IInventoryData.cs | 6 ++++++
OpenSim/Data/MSSQL/MSSQLInventoryData.cs | 5 +++++
OpenSim/Data/MySQL/MySQLInventoryData.cs | 5 +++++
OpenSim/Data/NHibernate/NHibernateInventoryData.cs | 5 +++++
OpenSim/Data/SQLite/SQLiteInventoryStore.cs | 5 +++++
5 files changed, 26 insertions(+)
(limited to 'OpenSim/Data')
diff --git a/OpenSim/Data/IInventoryData.cs b/OpenSim/Data/IInventoryData.cs
index 03b1cbe..84a857c 100644
--- a/OpenSim/Data/IInventoryData.cs
+++ b/OpenSim/Data/IInventoryData.cs
@@ -109,6 +109,12 @@ namespace OpenSim.Data
void deleteInventoryItem(UUID item);
///
+ ///
+ ///
+ ///
+ InventoryItemBase queryInventoryItem(UUID item);
+
+ ///
/// Adds a new folder specified by folder
///
/// The inventory folder
diff --git a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs
index 348682c..3d25ed0 100644
--- a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs
@@ -530,6 +530,11 @@ namespace OpenSim.Data.MSSQL
}
}
+ public InventoryItemBase queryInventoryItem(UUID itemID)
+ {
+ return null;
+ }
+
///
/// Returns all activated gesture-items in the inventory of the specified avatar.
///
diff --git a/OpenSim/Data/MySQL/MySQLInventoryData.cs b/OpenSim/Data/MySQL/MySQLInventoryData.cs
index 7d29061..1a6f068 100644
--- a/OpenSim/Data/MySQL/MySQLInventoryData.cs
+++ b/OpenSim/Data/MySQL/MySQLInventoryData.cs
@@ -539,6 +539,11 @@ namespace OpenSim.Data.MySQL
}
}
+ public InventoryItemBase queryInventoryItem(UUID itemID)
+ {
+ return getInventoryItem(itemID);
+ }
+
///
/// Creates a new inventory folder
///
diff --git a/OpenSim/Data/NHibernate/NHibernateInventoryData.cs b/OpenSim/Data/NHibernate/NHibernateInventoryData.cs
index 612ab59..74f6eae 100644
--- a/OpenSim/Data/NHibernate/NHibernateInventoryData.cs
+++ b/OpenSim/Data/NHibernate/NHibernateInventoryData.cs
@@ -177,6 +177,11 @@ namespace OpenSim.Data.NHibernate
}
+ public InventoryItemBase queryInventoryItem(UUID itemID)
+ {
+ return null;
+ }
+
///
/// Returns an inventory folder by its UUID
///
diff --git a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
index 6391c6d..3be320f 100644
--- a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
+++ b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
@@ -618,6 +618,11 @@ namespace OpenSim.Data.SQLite
}
}
+ public InventoryItemBase queryInventoryItem(UUID itemID)
+ {
+ return null;
+ }
+
///
/// Delete all items in the specified folder
///
--
cgit v1.1