aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MSSQL/MSSQLInventoryData.cs
diff options
context:
space:
mode:
authorJeff Ames2008-06-26 20:25:57 +0000
committerJeff Ames2008-06-26 20:25:57 +0000
commitf8ccf00f1cd8b99a2012558ded7de01ffcff7e35 (patch)
tree0aa16acb4bd909a9c746557ae068180ba681bbf0 /OpenSim/Data/MSSQL/MSSQLInventoryData.cs
parentApply patch from bug #1606 -- Documentation for Data/Null, Data/Base. Thanks... (diff)
downloadopensim-SC_OLD-f8ccf00f1cd8b99a2012558ded7de01ffcff7e35.zip
opensim-SC_OLD-f8ccf00f1cd8b99a2012558ded7de01ffcff7e35.tar.gz
opensim-SC_OLD-f8ccf00f1cd8b99a2012558ded7de01ffcff7e35.tar.bz2
opensim-SC_OLD-f8ccf00f1cd8b99a2012558ded7de01ffcff7e35.tar.xz
Apply patch from bug #1609 -- Documentation for Data/MSSQL. Thanks kerunix_Flan!
Diffstat (limited to 'OpenSim/Data/MSSQL/MSSQLInventoryData.cs')
-rw-r--r--OpenSim/Data/MSSQL/MSSQLInventoryData.cs38
1 files changed, 33 insertions, 5 deletions
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;
37namespace OpenSim.Data.MSSQL 37namespace OpenSim.Data.MSSQL
38{ 38{
39 /// <summary> 39 /// <summary>
40 /// A MySQL interface for the inventory server 40 /// A MSSQL interface for the inventory server
41 /// </summary> 41 /// </summary>
42 public class MSSQLInventoryData : IInventoryData 42 public class MSSQLInventoryData : IInventoryData
43 { 43 {
@@ -59,6 +59,11 @@ namespace OpenSim.Data.MSSQL
59 /// </summary> 59 /// </summary>
60 private MSSQLManager database; 60 private MSSQLManager database;
61 61
62 /// <summary>
63 /// Loads and initialises the MSSQL inventory storage interface
64 /// </summary>
65 /// <param name="connect">connect string</param>
66 /// <remarks>use mssql_connection.ini</remarks>
62 public void Initialise(string connect) 67 public void Initialise(string connect)
63 { 68 {
64 // TODO: actually use the provided connect string 69 // TODO: actually use the provided connect string
@@ -77,6 +82,10 @@ namespace OpenSim.Data.MSSQL
77 82
78 #region Test and initialization code 83 #region Test and initialization code
79 84
85 /// <summary>
86 /// Execute "CreateFoldersTable.sql" if tableName == null
87 /// </summary>
88 /// <param name="tableName">the table name</param>
80 private void UpgradeFoldersTable(string tableName) 89 private void UpgradeFoldersTable(string tableName)
81 { 90 {
82 // null as the version, indicates that the table didn't exist 91 // null as the version, indicates that the table didn't exist
@@ -88,6 +97,10 @@ namespace OpenSim.Data.MSSQL
88 } 97 }
89 } 98 }
90 99
100 /// <summary>
101 /// Execute "CreateItemsTable.sql" if tableName = null
102 /// </summary>
103 /// <param name="tableName">the table name</param>
91 private void UpgradeItemsTable(string tableName) 104 private void UpgradeItemsTable(string tableName)
92 { 105 {
93 // null as the version, indicates that the table didn't exist 106 // null as the version, indicates that the table didn't exist
@@ -99,6 +112,9 @@ namespace OpenSim.Data.MSSQL
99 } 112 }
100 } 113 }
101 114
115 /// <summary>
116 ///
117 /// </summary>
102 private void TestTables() 118 private void TestTables()
103 { 119 {
104 Dictionary<string, string> tableList = new Dictionary<string, string>(); 120 Dictionary<string, string> tableList = new Dictionary<string, string>();
@@ -117,7 +133,7 @@ namespace OpenSim.Data.MSSQL
117 /// <summary> 133 /// <summary>
118 /// The name of this DB provider 134 /// The name of this DB provider
119 /// </summary> 135 /// </summary>
120 /// <returns>Name of DB provider</returns> 136 /// <returns>A string containing the name of the DB provider</returns>
121 public string getName() 137 public string getName()
122 { 138 {
123 return "MSSQL Inventory Data Interface"; 139 return "MSSQL Inventory Data Interface";
@@ -215,7 +231,11 @@ namespace OpenSim.Data.MSSQL
215 } 231 }
216 } 232 }
217 233
218 // see InventoryItemBase.getUserRootFolder 234 /// <summary>
235 /// see InventoryItemBase.getUserRootFolder
236 /// </summary>
237 /// <param name="user">the User UUID</param>
238 /// <returns></returns>
219 public InventoryFolderBase getUserRootFolder(LLUUID user) 239 public InventoryFolderBase getUserRootFolder(LLUUID user)
220 { 240 {
221 try 241 try
@@ -549,9 +569,9 @@ namespace OpenSim.Data.MSSQL
549 } 569 }
550 570
551 /// <summary> 571 /// <summary>
552 /// 572 /// Delete an item in inventory database
553 /// </summary> 573 /// </summary>
554 /// <param name="item"></param> 574 /// <param name="item">the item UUID</param>
555 public void deleteInventoryItem(LLUUID itemID) 575 public void deleteInventoryItem(LLUUID itemID)
556 { 576 {
557 try 577 try
@@ -690,6 +710,10 @@ namespace OpenSim.Data.MSSQL
690 return folders; 710 return folders;
691 } 711 }
692 712
713 /// <summary>
714 /// Delete a folder in inventory databasae
715 /// </summary>
716 /// <param name="folderID">the folder UUID</param>
693 protected void deleteOneFolder(LLUUID folderID) 717 protected void deleteOneFolder(LLUUID folderID)
694 { 718 {
695 try 719 try
@@ -708,6 +732,10 @@ namespace OpenSim.Data.MSSQL
708 } 732 }
709 } 733 }
710 734
735 /// <summary>
736 /// Delete an item in inventory database
737 /// </summary>
738 /// <param name="folderID">the item ID</param>
711 protected void deleteItemsInFolder(LLUUID folderID) 739 protected void deleteItemsInFolder(LLUUID folderID)
712 { 740 {
713 try 741 try