diff options
author | lbsa71 | 2007-09-24 01:31:00 +0000 |
---|---|---|
committer | lbsa71 | 2007-09-24 01:31:00 +0000 |
commit | 47256cebda8f6519ab09fe66b64deb28f0702042 (patch) | |
tree | 8a1d43d087f5d69a981179cbad018d3bc74b6eb3 /OpenSim/Framework/Data.SQLite | |
parent | * minor renames (diff) | |
download | opensim-SC-47256cebda8f6519ab09fe66b64deb28f0702042.zip opensim-SC-47256cebda8f6519ab09fe66b64deb28f0702042.tar.gz opensim-SC-47256cebda8f6519ab09fe66b64deb28f0702042.tar.bz2 opensim-SC-47256cebda8f6519ab09fe66b64deb28f0702042.tar.xz |
* Renamed methods on IUserData
Diffstat (limited to 'OpenSim/Framework/Data.SQLite')
-rw-r--r-- | OpenSim/Framework/Data.SQLite/SQLiteUserData.cs | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs b/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs index 76be89c..3a13ecc 100644 --- a/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs +++ b/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs | |||
@@ -76,7 +76,7 @@ namespace OpenSim.Framework.Data.SQLite | |||
76 | /// </summary> | 76 | /// </summary> |
77 | /// <param name="uuid">The users UUID</param> | 77 | /// <param name="uuid">The users UUID</param> |
78 | /// <returns>A user profile</returns> | 78 | /// <returns>A user profile</returns> |
79 | public UserProfileData getUserByUUID(LLUUID uuid) | 79 | public UserProfileData GetUserByUUID(LLUUID uuid) |
80 | { | 80 | { |
81 | lock (ds) { | 81 | lock (ds) { |
82 | DataRow row = ds.Tables["users"].Rows.Find(uuid); | 82 | DataRow row = ds.Tables["users"].Rows.Find(uuid); |
@@ -98,9 +98,9 @@ namespace OpenSim.Framework.Data.SQLite | |||
98 | /// </summary> | 98 | /// </summary> |
99 | /// <param name="name">The users account name</param> | 99 | /// <param name="name">The users account name</param> |
100 | /// <returns>A matching users profile</returns> | 100 | /// <returns>A matching users profile</returns> |
101 | public UserProfileData getUserByName(string name) | 101 | public UserProfileData GetUserByName(string name) |
102 | { | 102 | { |
103 | return getUserByName(name.Split(' ')[0], name.Split(' ')[1]); | 103 | return GetUserByName(name.Split(' ')[0], name.Split(' ')[1]); |
104 | } | 104 | } |
105 | 105 | ||
106 | /// <summary> | 106 | /// <summary> |
@@ -109,7 +109,7 @@ namespace OpenSim.Framework.Data.SQLite | |||
109 | /// <param name="fname">The first part of the users account name</param> | 109 | /// <param name="fname">The first part of the users account name</param> |
110 | /// <param name="lname">The second part of the users account name</param> | 110 | /// <param name="lname">The second part of the users account name</param> |
111 | /// <returns>A matching users profile</returns> | 111 | /// <returns>A matching users profile</returns> |
112 | public UserProfileData getUserByName(string fname, string lname) | 112 | public UserProfileData GetUserByName(string fname, string lname) |
113 | { | 113 | { |
114 | string select = "surname = '" + lname + "' and username = '" + fname + "'"; | 114 | string select = "surname = '" + lname + "' and username = '" + fname + "'"; |
115 | lock (ds) { | 115 | lock (ds) { |
@@ -132,11 +132,11 @@ namespace OpenSim.Framework.Data.SQLite | |||
132 | /// </summary> | 132 | /// </summary> |
133 | /// <param name="uuid">The users account ID</param> | 133 | /// <param name="uuid">The users account ID</param> |
134 | /// <returns>A matching users profile</returns> | 134 | /// <returns>A matching users profile</returns> |
135 | public UserAgentData getAgentByUUID(LLUUID uuid) | 135 | public UserAgentData GetAgentByUUID(LLUUID uuid) |
136 | { | 136 | { |
137 | try | 137 | try |
138 | { | 138 | { |
139 | return getUserByUUID(uuid).currentAgent; | 139 | return GetUserByUUID(uuid).currentAgent; |
140 | } | 140 | } |
141 | catch (Exception) | 141 | catch (Exception) |
142 | { | 142 | { |
@@ -149,9 +149,9 @@ namespace OpenSim.Framework.Data.SQLite | |||
149 | /// </summary> | 149 | /// </summary> |
150 | /// <param name="name">The account name</param> | 150 | /// <param name="name">The account name</param> |
151 | /// <returns>The users session agent</returns> | 151 | /// <returns>The users session agent</returns> |
152 | public UserAgentData getAgentByName(string name) | 152 | public UserAgentData GetAgentByName(string name) |
153 | { | 153 | { |
154 | return getAgentByName(name.Split(' ')[0], name.Split(' ')[1]); | 154 | return GetAgentByName(name.Split(' ')[0], name.Split(' ')[1]); |
155 | } | 155 | } |
156 | 156 | ||
157 | /// <summary> | 157 | /// <summary> |
@@ -160,11 +160,11 @@ namespace OpenSim.Framework.Data.SQLite | |||
160 | /// <param name="fname">The first part of the users account name</param> | 160 | /// <param name="fname">The first part of the users account name</param> |
161 | /// <param name="lname">The second part of the users account name</param> | 161 | /// <param name="lname">The second part of the users account name</param> |
162 | /// <returns>A user agent</returns> | 162 | /// <returns>A user agent</returns> |
163 | public UserAgentData getAgentByName(string fname, string lname) | 163 | public UserAgentData GetAgentByName(string fname, string lname) |
164 | { | 164 | { |
165 | try | 165 | try |
166 | { | 166 | { |
167 | return getUserByName(fname,lname).currentAgent; | 167 | return GetUserByName(fname,lname).currentAgent; |
168 | } | 168 | } |
169 | catch (Exception) | 169 | catch (Exception) |
170 | { | 170 | { |
@@ -176,7 +176,7 @@ namespace OpenSim.Framework.Data.SQLite | |||
176 | /// Creates a new user profile | 176 | /// Creates a new user profile |
177 | /// </summary> | 177 | /// </summary> |
178 | /// <param name="user">The profile to add to the database</param> | 178 | /// <param name="user">The profile to add to the database</param> |
179 | public void addNewUserProfile(UserProfileData user) | 179 | public void AddNewUserProfile(UserProfileData user) |
180 | { | 180 | { |
181 | DataTable users = ds.Tables["users"]; | 181 | DataTable users = ds.Tables["users"]; |
182 | lock (ds) { | 182 | lock (ds) { |
@@ -217,10 +217,10 @@ namespace OpenSim.Framework.Data.SQLite | |||
217 | /// </summary> | 217 | /// </summary> |
218 | /// <param name="user">The profile to add to the database</param> | 218 | /// <param name="user">The profile to add to the database</param> |
219 | /// <returns>True on success, false on error</returns> | 219 | /// <returns>True on success, false on error</returns> |
220 | public bool updateUserProfile(UserProfileData user) | 220 | public bool UpdateUserProfile(UserProfileData user) |
221 | { | 221 | { |
222 | try { | 222 | try { |
223 | addNewUserProfile(user); | 223 | AddNewUserProfile(user); |
224 | return true; | 224 | return true; |
225 | } catch (Exception) { | 225 | } catch (Exception) { |
226 | return false; | 226 | return false; |
@@ -231,7 +231,7 @@ namespace OpenSim.Framework.Data.SQLite | |||
231 | /// Creates a new user agent | 231 | /// Creates a new user agent |
232 | /// </summary> | 232 | /// </summary> |
233 | /// <param name="agent">The agent to add to the database</param> | 233 | /// <param name="agent">The agent to add to the database</param> |
234 | public void addNewUserAgent(UserAgentData agent) | 234 | public void AddNewUserAgent(UserAgentData agent) |
235 | { | 235 | { |
236 | // Do nothing. yet. | 236 | // Do nothing. yet. |
237 | } | 237 | } |
@@ -243,7 +243,7 @@ namespace OpenSim.Framework.Data.SQLite | |||
243 | /// <param name="to">End account</param> | 243 | /// <param name="to">End account</param> |
244 | /// <param name="amount">The amount to move</param> | 244 | /// <param name="amount">The amount to move</param> |
245 | /// <returns>Success?</returns> | 245 | /// <returns>Success?</returns> |
246 | public bool moneyTransferRequest(LLUUID from, LLUUID to, uint amount) | 246 | public bool MoneyTransferRequest(LLUUID from, LLUUID to, uint amount) |
247 | { | 247 | { |
248 | return true; | 248 | return true; |
249 | } | 249 | } |
@@ -256,7 +256,7 @@ namespace OpenSim.Framework.Data.SQLite | |||
256 | /// <param name="to">Recievers account</param> | 256 | /// <param name="to">Recievers account</param> |
257 | /// <param name="item">Inventory item</param> | 257 | /// <param name="item">Inventory item</param> |
258 | /// <returns>Success?</returns> | 258 | /// <returns>Success?</returns> |
259 | public bool inventoryTransferRequest(LLUUID from, LLUUID to, LLUUID item) | 259 | public bool InventoryTransferRequest(LLUUID from, LLUUID to, LLUUID item) |
260 | { | 260 | { |
261 | return true; | 261 | return true; |
262 | } | 262 | } |
@@ -274,7 +274,7 @@ namespace OpenSim.Framework.Data.SQLite | |||
274 | /// Returns the version of the storage provider | 274 | /// Returns the version of the storage provider |
275 | /// </summary> | 275 | /// </summary> |
276 | /// <returns>Storage provider version</returns> | 276 | /// <returns>Storage provider version</returns> |
277 | public string getVersion() | 277 | public string GetVersion() |
278 | { | 278 | { |
279 | return "0.1"; | 279 | return "0.1"; |
280 | } | 280 | } |