aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Data.SQLite/SQLiteUserData.cs27
1 files changed, 12 insertions, 15 deletions
diff --git a/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs b/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs
index d7f4b85..da27277 100644
--- a/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs
+++ b/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs
@@ -33,14 +33,11 @@ using Mono.Data.SqliteClient;
33using OpenSim.Framework; 33using OpenSim.Framework;
34using OpenSim.Framework.Console; 34using OpenSim.Framework.Console;
35 35
36
37namespace OpenSim.Framework.Data.SQLite 36namespace OpenSim.Framework.Data.SQLite
38{ 37{
39 /// <summary> 38 /// <summary>
40 /// A User storage interface for the DB4o database system 39 /// A User storage interface for the SQLite database system
41 /// </summary> 40 /// </summary>
42 ///
43
44 41
45 public class SQLiteUserData : SQLiteBase, IUserData 42 public class SQLiteUserData : SQLiteBase, IUserData
46 { 43 {
@@ -78,7 +75,7 @@ namespace OpenSim.Framework.Data.SQLite
78 /// <summary> 75 /// <summary>
79 /// Loads a specified user profile from a UUID 76 /// Loads a specified user profile from a UUID
80 /// </summary> 77 /// </summary>
81 /// <param name="uuid">The users UUID</param> 78 /// <param name="uuid">The user's UUID</param>
82 /// <returns>A user profile</returns> 79 /// <returns>A user profile</returns>
83 public UserProfileData GetUserByUUID(LLUUID uuid) 80 public UserProfileData GetUserByUUID(LLUUID uuid)
84 { 81 {
@@ -105,8 +102,8 @@ namespace OpenSim.Framework.Data.SQLite
105 /// <summary> 102 /// <summary>
106 /// Returns a user by searching for its name 103 /// Returns a user by searching for its name
107 /// </summary> 104 /// </summary>
108 /// <param name="name">The users account name</param> 105 /// <param name="name">The user's account name</param>
109 /// <returns>A matching users profile</returns> 106 /// <returns>A matching user profile</returns>
110 public UserProfileData GetUserByName(string name) 107 public UserProfileData GetUserByName(string name)
111 { 108 {
112 return GetUserByName(name.Split(' ')[0], name.Split(' ')[1]); 109 return GetUserByName(name.Split(' ')[0], name.Split(' ')[1]);
@@ -115,9 +112,9 @@ namespace OpenSim.Framework.Data.SQLite
115 /// <summary> 112 /// <summary>
116 /// Returns a user by searching for its name 113 /// Returns a user by searching for its name
117 /// </summary> 114 /// </summary>
118 /// <param name="fname">The first part of the users account name</param> 115 /// <param name="fname">The first part of the user's account name</param>
119 /// <param name="lname">The second part of the users account name</param> 116 /// <param name="lname">The second part of the user's account name</param>
120 /// <returns>A matching users profile</returns> 117 /// <returns>A matching user profile</returns>
121 public UserProfileData GetUserByName(string fname, string lname) 118 public UserProfileData GetUserByName(string fname, string lname)
122 { 119 {
123 string select = "surname = '" + lname + "' and username = '" + fname + "'"; 120 string select = "surname = '" + lname + "' and username = '" + fname + "'";
@@ -191,8 +188,8 @@ namespace OpenSim.Framework.Data.SQLite
191 /// <summary> 188 /// <summary>
192 /// Returns a user by UUID direct 189 /// Returns a user by UUID direct
193 /// </summary> 190 /// </summary>
194 /// <param name="uuid">The users account ID</param> 191 /// <param name="uuid">The user's account ID</param>
195 /// <returns>A matching users profile</returns> 192 /// <returns>A matching user profile</returns>
196 public UserAgentData GetAgentByUUID(LLUUID uuid) 193 public UserAgentData GetAgentByUUID(LLUUID uuid)
197 { 194 {
198 try 195 try
@@ -209,7 +206,7 @@ namespace OpenSim.Framework.Data.SQLite
209 /// Returns a session by account name 206 /// Returns a session by account name
210 /// </summary> 207 /// </summary>
211 /// <param name="name">The account name</param> 208 /// <param name="name">The account name</param>
212 /// <returns>The users session agent</returns> 209 /// <returns>The user's session agent</returns>
213 public UserAgentData GetAgentByName(string name) 210 public UserAgentData GetAgentByName(string name)
214 { 211 {
215 return GetAgentByName(name.Split(' ')[0], name.Split(' ')[1]); 212 return GetAgentByName(name.Split(' ')[0], name.Split(' ')[1]);
@@ -218,8 +215,8 @@ namespace OpenSim.Framework.Data.SQLite
218 /// <summary> 215 /// <summary>
219 /// Returns a session by account name 216 /// Returns a session by account name
220 /// </summary> 217 /// </summary>
221 /// <param name="fname">The first part of the users account name</param> 218 /// <param name="fname">The first part of the user's account name</param>
222 /// <param name="lname">The second part of the users account name</param> 219 /// <param name="lname">The second part of the user's account name</param>
223 /// <returns>A user agent</returns> 220 /// <returns>A user agent</returns>
224 public UserAgentData GetAgentByName(string fname, string lname) 221 public UserAgentData GetAgentByName(string fname, string lname)
225 { 222 {