aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLAssetData.cs
diff options
context:
space:
mode:
authorJeff Ames2008-06-26 01:12:28 +0000
committerJeff Ames2008-06-26 01:12:28 +0000
commit8a0a0f9bb563f2cb7ec823587e13e3f4483d3a68 (patch)
tree2891fe56398b57e5e9a78fffea9f01c171594bf8 /OpenSim/Data/MySQL/MySQLAssetData.cs
parentSeparate POS classes into mutiple files. (diff)
downloadopensim-SC_OLD-8a0a0f9bb563f2cb7ec823587e13e3f4483d3a68.zip
opensim-SC_OLD-8a0a0f9bb563f2cb7ec823587e13e3f4483d3a68.tar.gz
opensim-SC_OLD-8a0a0f9bb563f2cb7ec823587e13e3f4483d3a68.tar.bz2
opensim-SC_OLD-8a0a0f9bb563f2cb7ec823587e13e3f4483d3a68.tar.xz
Add patch from bug #1596 - adds Doxygen documentation in OpenSim.Data.MySQL files. Thanks kerunix_Flan!
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/MySQL/MySQLAssetData.cs37
1 files changed, 36 insertions, 1 deletions
diff --git a/OpenSim/Data/MySQL/MySQLAssetData.cs b/OpenSim/Data/MySQL/MySQLAssetData.cs
index 3cda5b8..a29e11b 100644
--- a/OpenSim/Data/MySQL/MySQLAssetData.cs
+++ b/OpenSim/Data/MySQL/MySQLAssetData.cs
@@ -44,6 +44,13 @@ namespace OpenSim.Data.MySQL
44 44
45 #region IPlugin Members 45 #region IPlugin Members
46 46
47 /// <summary>
48 /// Initialises Asset interface
49 /// Loads and initialises the MySQL storage plugin
50 /// Warns and uses the obsolete mysql_connection.ini if connect string is empty.
51 /// Check for migration
52 /// </summary>
53 /// <param name="connect">connect string.</param>
47 override public void Initialise(string connect) 54 override public void Initialise(string connect)
48 { 55 {
49 // TODO: This will let you pass in the connect string in 56 // TODO: This will let you pass in the connect string in
@@ -70,6 +77,11 @@ namespace OpenSim.Data.MySQL
70 m.Update(); 77 m.Update();
71 } 78 }
72 79
80 /// <summary>
81 /// uses the obsolete mysql_connection.ini
82 /// </summary>
83 /// <param name="connect">connect string.</param>
84 /// <remarks>Probably deprecated and shouldn't be used</remarks>
73 override public void Initialise() 85 override public void Initialise()
74 { 86 {
75 IniFile GridDataMySqlFile = new IniFile("mysql_connection.ini"); 87 IniFile GridDataMySqlFile = new IniFile("mysql_connection.ini");
@@ -116,6 +128,11 @@ namespace OpenSim.Data.MySQL
116 m.Version = 1; 128 m.Version = 1;
117 } 129 }
118 130
131 /// <summary>
132 ///
133 /// </summary>
134 /// <param name="assetID"></param>
135 /// <returns></returns>
119 override public AssetBase FetchAsset(LLUUID assetID) 136 override public AssetBase FetchAsset(LLUUID assetID)
120 { 137 {
121 AssetBase asset = null; 138 AssetBase asset = null;
@@ -157,6 +174,10 @@ namespace OpenSim.Data.MySQL
157 return asset; 174 return asset;
158 } 175 }
159 176
177 /// <summary>
178 ///
179 /// </summary>
180 /// <param name="asset"></param>
160 override public void CreateAsset(AssetBase asset) 181 override public void CreateAsset(AssetBase asset)
161 { 182 {
162 lock (_dbConnection) 183 lock (_dbConnection)
@@ -202,11 +223,20 @@ namespace OpenSim.Data.MySQL
202 } 223 }
203 } 224 }
204 225
226 /// <summary>
227 ///
228 /// </summary>
229 /// <param name="asset"></param>
205 override public void UpdateAsset(AssetBase asset) 230 override public void UpdateAsset(AssetBase asset)
206 { 231 {
207 CreateAsset(asset); 232 CreateAsset(asset);
208 } 233 }
209 234
235 /// <summary>
236 ///
237 /// </summary>
238 /// <param name="uuid"></param>
239 /// <returns></returns>
210 override public bool ExistsAsset(LLUUID uuid) 240 override public bool ExistsAsset(LLUUID uuid)
211 { 241 {
212 bool assetExists = false; 242 bool assetExists = false;
@@ -254,12 +284,17 @@ namespace OpenSim.Data.MySQL
254 284
255 #endregion 285 #endregion
256 286
257 287 /// <summary>
288 /// database provider version
289 /// </summary>
258 override public string Version 290 override public string Version
259 { 291 {
260 get { return _dbConnection.getVersion(); } 292 get { return _dbConnection.getVersion(); }
261 } 293 }
262 294
295 /// <summary>
296 /// The name of this DB provider
297 /// </summary>
263 override public string Name 298 override public string Name
264 { 299 {
265 get { return "MySQL Asset storage engine"; } 300 get { return "MySQL Asset storage engine"; }