From ff2184136dec200f90e93d22cfa91c51cc002b86 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 9 Apr 2008 13:44:28 +0000 Subject: match file to classname --- OpenSim/Data/NHibernate/Types/LLUUIDType.cs | 78 ------------------------- OpenSim/Data/NHibernate/Types/LLUUIDUserType.cs | 78 +++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 78 deletions(-) delete mode 100644 OpenSim/Data/NHibernate/Types/LLUUIDType.cs create mode 100644 OpenSim/Data/NHibernate/Types/LLUUIDUserType.cs (limited to 'OpenSim/Data/NHibernate/Types') diff --git a/OpenSim/Data/NHibernate/Types/LLUUIDType.cs b/OpenSim/Data/NHibernate/Types/LLUUIDType.cs deleted file mode 100644 index babc7fd..0000000 --- a/OpenSim/Data/NHibernate/Types/LLUUIDType.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System; -using System.Data; -using NHibernate; -using NHibernate.SqlTypes; -using NHibernate.UserTypes; -using libsecondlife; - -namespace OpenSim.Data.NHibernate -{ - [Serializable] - public class LLUUIDUserType: IUserType - { - public object Assemble(object cached, object owner) - { - return cached; - } - - public bool IUserType.Equals(object uuid1, object uuid2) - { - return uuid1.Equals(uuid2); - } - - public object DeepCopy(object uuid) - { - return uuid; - } - - public object Disassemble(object uuid) - { - return uuid; - } - - public int GetHashCode(object uuid) - { - return (uuid == null) ? 0 : uuid.GetHashCode(); - } - - public bool IsMutable - { - get { return false; } - } - - public object NullSafeGet(System.Data.IDataReader rs, string[] names, object owner) - { - object uuid = null; - - int ord = rs.GetOrdinal(names[0]); - if (!rs.IsDBNull(ord)) - { - string first = (string)rs.GetString(ord); - uuid = new LLUUID(first); - } - - return uuid; - } - - public void NullSafeSet(System.Data.IDbCommand cmd, object obj, int index) - { - LLUUID uuid = (LLUUID)obj; - ((IDataParameter)cmd.Parameters[index]).Value = uuid.ToString(); - } - - public object Replace(object original, object target, object owner) - { - return original; - } - - public Type ReturnedType - { - get { return typeof(LLUUID); } - } - - public SqlType[] SqlTypes - { - get { return new SqlType [] { NHibernateUtil.String.SqlType }; } - } - } -} diff --git a/OpenSim/Data/NHibernate/Types/LLUUIDUserType.cs b/OpenSim/Data/NHibernate/Types/LLUUIDUserType.cs new file mode 100644 index 0000000..babc7fd --- /dev/null +++ b/OpenSim/Data/NHibernate/Types/LLUUIDUserType.cs @@ -0,0 +1,78 @@ +using System; +using System.Data; +using NHibernate; +using NHibernate.SqlTypes; +using NHibernate.UserTypes; +using libsecondlife; + +namespace OpenSim.Data.NHibernate +{ + [Serializable] + public class LLUUIDUserType: IUserType + { + public object Assemble(object cached, object owner) + { + return cached; + } + + public bool IUserType.Equals(object uuid1, object uuid2) + { + return uuid1.Equals(uuid2); + } + + public object DeepCopy(object uuid) + { + return uuid; + } + + public object Disassemble(object uuid) + { + return uuid; + } + + public int GetHashCode(object uuid) + { + return (uuid == null) ? 0 : uuid.GetHashCode(); + } + + public bool IsMutable + { + get { return false; } + } + + public object NullSafeGet(System.Data.IDataReader rs, string[] names, object owner) + { + object uuid = null; + + int ord = rs.GetOrdinal(names[0]); + if (!rs.IsDBNull(ord)) + { + string first = (string)rs.GetString(ord); + uuid = new LLUUID(first); + } + + return uuid; + } + + public void NullSafeSet(System.Data.IDbCommand cmd, object obj, int index) + { + LLUUID uuid = (LLUUID)obj; + ((IDataParameter)cmd.Parameters[index]).Value = uuid.ToString(); + } + + public object Replace(object original, object target, object owner) + { + return original; + } + + public Type ReturnedType + { + get { return typeof(LLUUID); } + } + + public SqlType[] SqlTypes + { + get { return new SqlType [] { NHibernateUtil.String.SqlType }; } + } + } +} -- cgit v1.1