From f8ccf00f1cd8b99a2012558ded7de01ffcff7e35 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Thu, 26 Jun 2008 20:25:57 +0000 Subject: Apply patch from bug #1609 -- Documentation for Data/MSSQL. Thanks kerunix_Flan! --- OpenSim/Data/MSSQL/MSSQLInventoryData.cs | 38 +++++++++++++++++++++++++++----- 1 file changed, 33 insertions(+), 5 deletions(-) (limited to 'OpenSim/Data/MSSQL/MSSQLInventoryData.cs') diff --git a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs index b92eeab..3177325 100644 --- a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs +++ b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs @@ -37,7 +37,7 @@ using OpenSim.Framework; namespace OpenSim.Data.MSSQL { /// - /// A MySQL interface for the inventory server + /// A MSSQL interface for the inventory server /// public class MSSQLInventoryData : IInventoryData { @@ -59,6 +59,11 @@ namespace OpenSim.Data.MSSQL /// private MSSQLManager database; + /// + /// Loads and initialises the MSSQL inventory storage interface + /// + /// connect string + /// use mssql_connection.ini public void Initialise(string connect) { // TODO: actually use the provided connect string @@ -77,6 +82,10 @@ namespace OpenSim.Data.MSSQL #region Test and initialization code + /// + /// Execute "CreateFoldersTable.sql" if tableName == null + /// + /// the table name private void UpgradeFoldersTable(string tableName) { // null as the version, indicates that the table didn't exist @@ -88,6 +97,10 @@ namespace OpenSim.Data.MSSQL } } + /// + /// Execute "CreateItemsTable.sql" if tableName = null + /// + /// the table name private void UpgradeItemsTable(string tableName) { // null as the version, indicates that the table didn't exist @@ -99,6 +112,9 @@ namespace OpenSim.Data.MSSQL } } + /// + /// + /// private void TestTables() { Dictionary tableList = new Dictionary(); @@ -117,7 +133,7 @@ namespace OpenSim.Data.MSSQL /// /// The name of this DB provider /// - /// Name of DB provider + /// A string containing the name of the DB provider public string getName() { return "MSSQL Inventory Data Interface"; @@ -215,7 +231,11 @@ namespace OpenSim.Data.MSSQL } } - // see InventoryItemBase.getUserRootFolder + /// + /// see InventoryItemBase.getUserRootFolder + /// + /// the User UUID + /// public InventoryFolderBase getUserRootFolder(LLUUID user) { try @@ -549,9 +569,9 @@ namespace OpenSim.Data.MSSQL } /// - /// + /// Delete an item in inventory database /// - /// + /// the item UUID public void deleteInventoryItem(LLUUID itemID) { try @@ -690,6 +710,10 @@ namespace OpenSim.Data.MSSQL return folders; } + /// + /// Delete a folder in inventory databasae + /// + /// the folder UUID protected void deleteOneFolder(LLUUID folderID) { try @@ -708,6 +732,10 @@ namespace OpenSim.Data.MSSQL } } + /// + /// Delete an item in inventory database + /// + /// the item ID protected void deleteItemsInFolder(LLUUID folderID) { try -- cgit v1.1