aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Base/AppearanceTableMapper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/Base/AppearanceTableMapper.cs')
-rw-r--r--OpenSim/Data/Base/AppearanceTableMapper.cs44
1 files changed, 44 insertions, 0 deletions
diff --git a/OpenSim/Data/Base/AppearanceTableMapper.cs b/OpenSim/Data/Base/AppearanceTableMapper.cs
index 60acfe0..7964880 100644
--- a/OpenSim/Data/Base/AppearanceTableMapper.cs
+++ b/OpenSim/Data/Base/AppearanceTableMapper.cs
@@ -32,6 +32,9 @@ using OpenSim.Framework;
32 32
33namespace OpenSim.Data.Base 33namespace OpenSim.Data.Base
34{ 34{
35 /// <summary>
36 ///
37 /// </summary>
35 public class AppearanceRowMapper : BaseRowMapper<AvatarAppearance> 38 public class AppearanceRowMapper : BaseRowMapper<AvatarAppearance>
36 { 39 {
37 public AppearanceRowMapper(BaseSchema schema, AvatarAppearance obj) 40 public AppearanceRowMapper(BaseSchema schema, AvatarAppearance obj)
@@ -40,6 +43,9 @@ namespace OpenSim.Data.Base
40 } 43 }
41 } 44 }
42 45
46 /// <summary>
47 ///
48 /// </summary>
43 public class AppearanceTableMapper : BaseTableMapper<AppearanceRowMapper, Guid> 49 public class AppearanceTableMapper : BaseTableMapper<AppearanceRowMapper, Guid>
44 { 50 {
45 public AppearanceTableMapper(BaseDatabaseConnector database, string tableName) 51 public AppearanceTableMapper(BaseDatabaseConnector database, string tableName)
@@ -186,28 +192,55 @@ namespace OpenSim.Data.Base
186 192
187 } 193 }
188 194
195 /// <summary>
196 ///
197 /// </summary>
198 /// <param name="userID"></param>
199 /// <param name="appearance"></param>
200 /// <returns></returns>
189 public bool Add(Guid userID, AvatarAppearance appearance) 201 public bool Add(Guid userID, AvatarAppearance appearance)
190 { 202 {
191 AppearanceRowMapper mapper = CreateRowMapper(appearance); 203 AppearanceRowMapper mapper = CreateRowMapper(appearance);
192 return Add(mapper); 204 return Add(mapper);
193 } 205 }
194 206
207 /// <summary>
208 ///
209 /// </summary>
210 /// <param name="userID"></param>
211 /// <param name="appearance"></param>
212 /// <returns></returns>
195 public bool Update(Guid userID, AvatarAppearance appearance) 213 public bool Update(Guid userID, AvatarAppearance appearance)
196 { 214 {
197 AppearanceRowMapper mapper = CreateRowMapper(appearance); 215 AppearanceRowMapper mapper = CreateRowMapper(appearance);
198 return Update(appearance.Owner.UUID, mapper); 216 return Update(appearance.Owner.UUID, mapper);
199 } 217 }
200 218
219 /// <summary>
220 ///
221 /// </summary>
222 /// <param name="appearance"></param>
223 /// <returns></returns>
201 protected AppearanceRowMapper CreateRowMapper(AvatarAppearance appearance) 224 protected AppearanceRowMapper CreateRowMapper(AvatarAppearance appearance)
202 { 225 {
203 return new AppearanceRowMapper(m_schema, appearance); 226 return new AppearanceRowMapper(m_schema, appearance);
204 } 227 }
205 228
229 /// <summary>
230 ///
231 /// </summary>
232 /// <returns></returns>
206 protected AppearanceRowMapper CreateRowMapper() 233 protected AppearanceRowMapper CreateRowMapper()
207 { 234 {
208 return CreateRowMapper(new AvatarAppearance()); 235 return CreateRowMapper(new AvatarAppearance());
209 } 236 }
210 237
238 /// <summary>
239 ///
240 /// </summary>
241 /// <param name="reader"></param>
242 /// <param name="appearance"></param>
243 /// <returns></returns>
211 protected AppearanceRowMapper FromReader(BaseDataReader reader, AvatarAppearance appearance) 244 protected AppearanceRowMapper FromReader(BaseDataReader reader, AvatarAppearance appearance)
212 { 245 {
213 AppearanceRowMapper mapper = CreateRowMapper(appearance); 246 AppearanceRowMapper mapper = CreateRowMapper(appearance);
@@ -215,6 +248,11 @@ namespace OpenSim.Data.Base
215 return mapper; 248 return mapper;
216 } 249 }
217 250
251 /// <summary>
252 ///
253 /// </summary>
254 /// <param name="reader"></param>
255 /// <returns></returns>
218 public override AppearanceRowMapper FromReader(BaseDataReader reader) 256 public override AppearanceRowMapper FromReader(BaseDataReader reader)
219 { 257 {
220 AppearanceRowMapper mapper = CreateRowMapper(); 258 AppearanceRowMapper mapper = CreateRowMapper();
@@ -222,6 +260,12 @@ namespace OpenSim.Data.Base
222 return mapper; 260 return mapper;
223 } 261 }
224 262
263 /// <summary>
264 ///
265 /// </summary>
266 /// <param name="presenceID"></param>
267 /// <param name="val"></param>
268 /// <returns></returns>
225 public bool TryGetValue(Guid presenceID, out AvatarAppearance val) 269 public bool TryGetValue(Guid presenceID, out AvatarAppearance val)
226 { 270 {
227 AppearanceRowMapper mapper; 271 AppearanceRowMapper mapper;