aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MSSQL/MSSQLGridData.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/MSSQLGridData.cs
parentApply patch from bug #1606 -- Documentation for Data/Null, Data/Base. Thanks... (diff)
downloadopensim-SC-f8ccf00f1cd8b99a2012558ded7de01ffcff7e35.zip
opensim-SC-f8ccf00f1cd8b99a2012558ded7de01ffcff7e35.tar.gz
opensim-SC-f8ccf00f1cd8b99a2012558ded7de01ffcff7e35.tar.bz2
opensim-SC-f8ccf00f1cd8b99a2012558ded7de01ffcff7e35.tar.xz
Apply patch from bug #1609 -- Documentation for Data/MSSQL. Thanks kerunix_Flan!
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/MSSQL/MSSQLGridData.cs31
1 files changed, 27 insertions, 4 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLGridData.cs b/OpenSim/Data/MSSQL/MSSQLGridData.cs
index d7adb84..d67e463 100644
--- a/OpenSim/Data/MSSQL/MSSQLGridData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLGridData.cs
@@ -37,7 +37,7 @@ using log4net;
37namespace OpenSim.Data.MSSQL 37namespace OpenSim.Data.MSSQL
38{ 38{
39 /// <summary> 39 /// <summary>
40 /// A grid data interface for Microsoft SQL Server 40 /// A grid data interface for MSSQL Server
41 /// </summary> 41 /// </summary>
42 public class MSSQLGridData : GridDataBase 42 public class MSSQLGridData : GridDataBase
43 { 43 {
@@ -53,6 +53,8 @@ namespace OpenSim.Data.MSSQL
53 /// <summary> 53 /// <summary>
54 /// Initialises the Grid Interface 54 /// Initialises the Grid Interface
55 /// </summary> 55 /// </summary>
56 /// <param name="connect">connect string</param>
57 /// <remarks>use mssql_connection.ini</remarks>
56 override public void Initialise(string connect) 58 override public void Initialise(string connect)
57 { 59 {
58 // TODO: make the connect string actually do something 60 // TODO: make the connect string actually do something
@@ -77,6 +79,9 @@ namespace OpenSim.Data.MSSQL
77 TestTables(); 79 TestTables();
78 } 80 }
79 81
82 /// <summary>
83 ///
84 /// </summary>
80 private void TestTables() 85 private void TestTables()
81 { 86 {
82 IDbCommand cmd = database.Query("SELECT TOP 1 * FROM "+m_regionsTableName, new Dictionary<string, string>()); 87 IDbCommand cmd = database.Query("SELECT TOP 1 * FROM "+m_regionsTableName, new Dictionary<string, string>());
@@ -102,7 +107,7 @@ namespace OpenSim.Data.MSSQL
102 } 107 }
103 108
104 /// <summary> 109 /// <summary>
105 /// Returns the storage system name 110 /// The name of this DB provider.
106 /// </summary> 111 /// </summary>
107 /// <returns>A string containing the storage system name</returns> 112 /// <returns>A string containing the storage system name</returns>
108 override public string getName() 113 override public string getName()
@@ -111,7 +116,7 @@ namespace OpenSim.Data.MSSQL
111 } 116 }
112 117
113 /// <summary> 118 /// <summary>
114 /// Returns the storage system version 119 /// Database provider version.
115 /// </summary> 120 /// </summary>
116 /// <returns>A string containing the storage system version</returns> 121 /// <returns>A string containing the storage system version</returns>
117 override public string getVersion() 122 override public string getVersion()
@@ -120,13 +125,15 @@ namespace OpenSim.Data.MSSQL
120 } 125 }
121 126
122 /// <summary> 127 /// <summary>
128 /// NOT IMPLEMENTED,
123 /// Returns a list of regions within the specified ranges 129 /// Returns a list of regions within the specified ranges
124 /// </summary> 130 /// </summary>
125 /// <param name="a">minimum X coordinate</param> 131 /// <param name="a">minimum X coordinate</param>
126 /// <param name="b">minimum Y coordinate</param> 132 /// <param name="b">minimum Y coordinate</param>
127 /// <param name="c">maximum X coordinate</param> 133 /// <param name="c">maximum X coordinate</param>
128 /// <param name="d">maximum Y coordinate</param> 134 /// <param name="d">maximum Y coordinate</param>
129 /// <returns>An array of region profiles</returns> 135 /// <returns>null</returns>
136 /// <remarks>always return null</remarks>
130 override public RegionProfileData[] GetProfilesInRange(uint a, uint b, uint c, uint d) 137 override public RegionProfileData[] GetProfilesInRange(uint a, uint b, uint c, uint d)
131 { 138 {
132 return null; 139 return null;
@@ -240,6 +247,11 @@ namespace OpenSim.Data.MSSQL
240 } 247 }
241 } 248 }
242 249
250 /// <summary>
251 /// Update the specified region in the database
252 /// </summary>
253 /// <param name="profile">The profile to update</param>
254 /// <returns>A dataresponse enum indicating success</returns>
243 public override DataResponse UpdateProfile(RegionProfileData profile) 255 public override DataResponse UpdateProfile(RegionProfileData profile)
244 { 256 {
245 if (updateRegionRow(profile)) 257 if (updateRegionRow(profile))
@@ -252,6 +264,11 @@ namespace OpenSim.Data.MSSQL
252 } 264 }
253 } 265 }
254 266
267 /// <summary>
268 /// Update the specified region in the database
269 /// </summary>
270 /// <param name="profile">The profile to update</param>
271 /// <returns>success ?</returns>
255 public bool updateRegionRow(RegionProfileData profile) 272 public bool updateRegionRow(RegionProfileData profile)
256 { 273 {
257 //Insert new region 274 //Insert new region
@@ -425,6 +442,12 @@ namespace OpenSim.Data.MSSQL
425 return false; 442 return false;
426 } 443 }
427 444
445 /// <summary>
446 /// NOT IMPLEMENTED
447 /// </summary>
448 /// <param name="x"></param>
449 /// <param name="y"></param>
450 /// <returns>null</returns>
428 override public ReservationData GetReservationAtPoint(uint x, uint y) 451 override public ReservationData GetReservationAtPoint(uint x, uint y)
429 { 452 {
430 return null; 453 return null;