diff options
author | Sean Dague | 2008-05-15 18:42:27 +0000 |
---|---|---|
committer | Sean Dague | 2008-05-15 18:42:27 +0000 |
commit | 4ff4475d02a26805749897bc62feddcc21b1c5da (patch) | |
tree | 0507ff54842f641d6f0e2664d02ac81e67190a97 /OpenSim/Data/NHibernate/NHibernateUserData.cs | |
parent | add the rest of my UserAppearance created methods to (diff) | |
download | opensim-SC-4ff4475d02a26805749897bc62feddcc21b1c5da.zip opensim-SC-4ff4475d02a26805749897bc62feddcc21b1c5da.tar.gz opensim-SC-4ff4475d02a26805749897bc62feddcc21b1c5da.tar.bz2 opensim-SC-4ff4475d02a26805749897bc62feddcc21b1c5da.tar.xz |
remove my UserAppearance object, switch all code to use
AvatarAppearance instead.
Diffstat (limited to 'OpenSim/Data/NHibernate/NHibernateUserData.cs')
-rw-r--r-- | OpenSim/Data/NHibernate/NHibernateUserData.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Data/NHibernate/NHibernateUserData.cs b/OpenSim/Data/NHibernate/NHibernateUserData.cs index 43d8c32..81af4d4 100644 --- a/OpenSim/Data/NHibernate/NHibernateUserData.cs +++ b/OpenSim/Data/NHibernate/NHibernateUserData.cs | |||
@@ -306,29 +306,29 @@ namespace OpenSim.Data.NHibernate | |||
306 | 306 | ||
307 | /// Appearance | 307 | /// Appearance |
308 | /// TODO: stubs for now to get us to a compiling state gently | 308 | /// TODO: stubs for now to get us to a compiling state gently |
309 | override public UserAppearance GetUserAppearance(LLUUID user) | 309 | override public AvatarAppearance GetUserAppearance(LLUUID user) |
310 | { | 310 | { |
311 | UserAppearance appearance; | 311 | AvatarAppearance appearance; |
312 | // TODO: I'm sure I'll have to do something silly here | 312 | // TODO: I'm sure I'll have to do something silly here |
313 | using (ISession session = factory.OpenSession()) | 313 | using (ISession session = factory.OpenSession()) |
314 | { | 314 | { |
315 | appearance = session.Load(typeof(UserAppearance), user) as UserAppearance; | 315 | appearance = session.Load(typeof(AvatarAppearance), user) as AvatarAppearance; |
316 | } | 316 | } |
317 | return appearance; | 317 | return appearance; |
318 | } | 318 | } |
319 | 319 | ||
320 | private bool ExistsAppearance(LLUUID uuid) | 320 | private bool ExistsAppearance(LLUUID uuid) |
321 | { | 321 | { |
322 | UserAppearance appearance; | 322 | AvatarAppearance appearance; |
323 | using (ISession session = factory.OpenSession()) | 323 | using (ISession session = factory.OpenSession()) |
324 | { | 324 | { |
325 | appearance = session.Load(typeof(UserAppearance), uuid) as UserAppearance; | 325 | appearance = session.Load(typeof(AvatarAppearance), uuid) as AvatarAppearance; |
326 | } | 326 | } |
327 | return (appearance == null) ? false : true; | 327 | return (appearance == null) ? false : true; |
328 | } | 328 | } |
329 | 329 | ||
330 | 330 | ||
331 | override public void UpdateUserAppearance(LLUUID user, UserAppearance appearance) | 331 | override public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance) |
332 | { | 332 | { |
333 | bool exists = ExistsAppearance(user); | 333 | bool exists = ExistsAppearance(user); |
334 | using (ISession session = factory.OpenSession()) | 334 | using (ISession session = factory.OpenSession()) |