CloneSet161


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
53201.000class_member_declarations[11]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15316
src/NHibernate.Test/NHSpecificTest/NH1355/UserTypeTimestamp.cs
25312
src/NHibernate.Test/VersionTest/Db/MsSQL/BinaryTimestamp.cs
Clone Instance
1
Line Count
53
Source Line
16
Source File
src/NHibernate.Test/NHSpecificTest/NH1355/UserTypeTimestamp.cs

                #region IUserVersionType Members
                public object Next(object current, ISessionImplementor session)
                {
                        return current;
                }

                public object Seed(ISessionImplementor session)
                {
                        return new byte[8];
                }

                public object Assemble(object cached, object owner)
                {
                        return DeepCopy(cached);
                }

                public object DeepCopy(object value)
                {
                        return value;
                }

                public object Disassemble(object value)
                {
                        return DeepCopy(value);
                }

                public int GetHashCode(object x)
                {
                        return x.GetHashCode();
                }

                public bool IsMutable
                {
                        get { return false;
                            }
                }

                public object NullSafeGet(IDataReader rs, string[] names, object owner)
                {
                        return rs.GetValue(rs.GetOrdinal(names[0]));
                }

                public void NullSafeSet(IDbCommand cmd, object value, int index)
                {
                        NHibernateUtil.Binary.NullSafeSet(cmd, value, index);
                }

                public object Replace(object original, object target, object owner)
                {
                        return original;
                }

                public System.Type ReturnedType
                {
                        get { return typeof( byte[]);
                            }
                }



Clone Instance
2
Line Count
53
Source Line
12
Source File
src/NHibernate.Test/VersionTest/Db/MsSQL/BinaryTimestamp.cs

                #region IUserVersionType Members
                public object Next(object current, ISessionImplementor session)
                {
                        return current;
                }

                public object Seed(ISessionImplementor session)
                {
                        return new byte[8];
                }

                public object Assemble(object cached, object owner)
                {
                        return DeepCopy(cached);
                }

                public object DeepCopy(object value)
                {
                        return value;
                }

                public object Disassemble(object value)
                {
                        return DeepCopy(value);
                }

                public int GetHashCode(object x)
                {
                        return x.GetHashCode();
                }

                public bool IsMutable
                {
                        get { return false;
                            }
                }

                public object NullSafeGet(IDataReader rs, string[] names, object owner)
                {
                        return rs.GetValue(rs.GetOrdinal(names[0]));
                }

                public void NullSafeSet(IDbCommand cmd, object value, int index)
                {
                        NHibernateUtil.Binary.NullSafeSet(cmd, value, index);
                }

                public object Replace(object original, object target, object owner)
                {
                        return original;
                }

                public System.Type ReturnedType
                {
                        get { return typeof( byte[]);
                            }
                }



Clone AbstractionParameter Count: 0Parameter Bindings

#region IUserVersionType Members
public object Next(object current, ISessionImplementor session)
{
   return current;
}

public object Seed(ISessionImplementor session)
{
   return new byte[8];
}

public object Assemble(object cached, object owner)
{
   return DeepCopy(cached);
}

public object DeepCopy(object value)
{
   return value;
}

public object Disassemble(object value)
{
   return DeepCopy(value);
}

public int GetHashCode(object x)
{
   return x.GetHashCode();
}

public bool IsMutable
{
   get
   {
      return false;
   }
}

public object NullSafeGet(IDataReader rs, string[] names, object owner)
{
   return rs.GetValue(rs.GetOrdinal(names[0]));
}

public void NullSafeSet(IDbCommand cmd, object value, int index)
{
   NHibernateUtil.Binary.NullSafeSet(cmd, value, index);
}

public object Replace(object original, object target, object owner)
{
   return original;
}

public System.Type ReturnedType
{
   get
   {
      return typeof(byte[]);
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None