CloneSet19


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
77750.964class_member_declarations[13]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17728
src/NHibernate/Type/Int16Type.cs
27728
src/NHibernate/Type/Int32Type.cs
37728
src/NHibernate/Type/Int64Type.cs
47728
src/NHibernate/Type/SByteType.cs
57728
src/NHibernate/Type/UInt16Type.cs
67728
src/NHibernate/Type/UInt32Type.cs
77727
src/NHibernate/Type/UInt64Type.cs
Clone Instance
1
Line Count
77
Source Line
28
Source File
src/NHibernate/Type/Int16Type.cs

                private static readonly Int16 ZERO = 0;

                public override object Get(IDataReader rs, int index)
                {
                        try
                        {
                                return Convert.ToInt16(rs[index]);
                        }
                        catch (Exception ex)
                        {
                                throw new FormatException(string.Format("Input string '{0}' was not in the correct format.", rs[index]), ex);
                        }
                }

                public override object Get(IDataReader rs, string name)
                {
                        try
                        {
                                return Convert.ToInt16(rs[name]);
                        }
                        catch (Exception ex)
                        {
                                throw new FormatException(string.Format("Input string '{0}' was not in the correct format.", rs[name]), ex);
                        }
                }

                public override System.Type ReturnedClass
                {
                        get { return typeof(Int16);
                            }
                }

                public override void Set(IDbCommand rs, object value, int index)
                {
                        ((IDataParameter)rs.Parameters[index]).Value = value;
                }

                public object StringToObject(string xml)
                {
                        return FromStringValue(xml);
                }

                public override object FromStringValue(string xml)
                {
                        return Int16.Parse(xml);
                }

                #region IVersionType Members
                public virtual object Next(object current, ISessionImplementor session)
                {
                        return (Int16)((Int16)current + 1);
                }

                public virtual object Seed(ISessionImplementor session)
                {
                        return (Int16)1;
                }

                public IComparer Comparator
                {
                        get { return Comparer<Int16>.Default;
                            }
                }

                #endregion
                public override System.Type PrimitiveClass
                {
                        get { return typeof( Int16);
                            }
                }

                public override object DefaultValue
                {
                        get { return ZERO;
                            }
                }

                public override string ObjectToSQLString(object value, Dialect.Dialect dialect)
                {
                        return value.ToString();
                }



Clone Instance
2
Line Count
77
Source Line
28
Source File
src/NHibernate/Type/Int32Type.cs

                private static readonly Int32 ZERO = 0;

                public override object Get(IDataReader rs, int index)
                {
                        try
                        {
                                return Convert.ToInt32(rs[index]);
                        }
                        catch (Exception ex)
                        {
                                throw new FormatException(string.Format("Input string '{0}' was not in the correct format.", rs[index]), ex);
                        }
                }

                public override object Get(IDataReader rs, string name)
                {
                        try
                        {
                                return Convert.ToInt32(rs[name]);
                        }
                        catch (Exception ex)
                        {
                                throw new FormatException(string.Format("Input string '{0}' was not in the correct format.", rs[name]), ex);
                        }
                }

                public override System.Type ReturnedClass
                {
                        get { return typeof(Int32);
                            }
                }

                public override void Set(IDbCommand rs, object value, int index)
                {
                        ((IDataParameter)rs.Parameters[index]).Value = value;
                }

                public object StringToObject(string xml)
                {
                        return FromStringValue(xml);
                }

                public override object FromStringValue(string xml)
                {
                        return Int32.Parse(xml);
                }

                #region IVersionType Members
                public virtual object Next(object current, ISessionImplementor session)
                {
                        return (Int32)current + 1;
                }

                public virtual object Seed(ISessionImplementor session)
                {
                        return 1;
                }

                public IComparer Comparator
                {
                        get { return Comparer<Int32>.Default;
                            }
                }

                #endregion
                public override System.Type PrimitiveClass
                {
                        get { return typeof(Int32);
                            }
                }

                public override object DefaultValue
                {
                        get { return ZERO;
                            }
                }

                public override string ObjectToSQLString(object value, Dialect.Dialect dialect)
                {
                        return value.ToString();
                }



Clone Instance
3
Line Count
77
Source Line
28
Source File
src/NHibernate/Type/Int64Type.cs

                private static readonly Int64 ZERO = 0;

                public override object Get(IDataReader rs, int index)
                {
                        try
                        {
                                return Convert.ToInt64(rs[index]);
                        }
                        catch (Exception ex)
                        {
                                throw new FormatException(string.Format("Input string '{0}' was not in the correct format.", rs[index]), ex);
                        }
                }

                public override object Get(IDataReader rs, string name)
                {
                        try
                        {
                                return Convert.ToInt64(rs[name]);
                        }
                        catch (Exception ex)
                        {
                                throw new FormatException(string.Format("Input string '{0}' was not in the correct format.", rs[name]), ex);
                        }
                }

                public override System.Type ReturnedClass
                {
                        get { return typeof(Int64);
                            }
                }

                public override void Set(IDbCommand rs, object value, int index)
                {
                        ((IDataParameter)rs.Parameters[index]).Value = value;
                }

                public object StringToObject(string xml)
                {
                        return FromStringValue(xml);
                }

                public override object FromStringValue(string xml)
                {
                        return Int64.Parse(xml);
                }

                #region IVersionType Members
                public virtual object Next(object current, ISessionImplementor session)
                {
                        return (Int64)current + 1L;
                }

                public virtual object Seed(ISessionImplementor session)
                {
                        return 1L;
                }

                public IComparer Comparator
                {
                        get { return Comparer<Int64>.Default;
                            }
                }

                #endregion
                public override System.Type PrimitiveClass
                {
                        get { return typeof(Int64);
                            }
                }

                public override object DefaultValue
                {
                        get { return ZERO;
                            }
                }

                public override string ObjectToSQLString(object value, Dialect.Dialect dialect)
                {
                        return value.ToString();
                }



Clone Instance
4
Line Count
77
Source Line
28
Source File
src/NHibernate/Type/SByteType.cs

                private static readonly SByte ZERO = 0;

                public override object Get(IDataReader rs, int index)
                {
                        try
                        {
                                return Convert.ToSByte(rs[index]);
                        }
                        catch (Exception ex)
                        {
                                throw new FormatException(string.Format("Input string '{0}' was not in the correct format.", rs[index]), ex);
                        }
                }

                public override object Get(IDataReader rs, string name)
                {
                        try
                        {
                                return Convert.ToSByte(rs[name]);
                        }
                        catch (Exception ex)
                        {
                                throw new FormatException(string.Format("Input string '{0}' was not in the correct format.", rs[name]), ex);
                        }
                }

                public override System.Type ReturnedClass
                {
                        get { return typeof(SByte);
                            }
                }

                public override void Set(IDbCommand rs, object value, int index)
                {
                        ((IDataParameter)rs.Parameters[index]).Value = value;
                }

                public object StringToObject(string xml)
                {
                        return FromStringValue(xml);
                }

                public override object FromStringValue(string xml)
                {
                        return SByte.Parse(xml);
                }

                #region IVersionType Members
                public virtual object Next(object current, ISessionImplementor session)
                {
                        return (SByte)((SByte)current + 1);
                }

                public virtual object Seed(ISessionImplementor session)
                {
                        return (SByte)1;
                }

                public IComparer Comparator
                {
                        get { return Comparer<SByte>.Default;
                            }
                }

                #endregion
                public override System.Type PrimitiveClass
                {
                        get { return typeof(SByte);
                            }
                }

                public override object DefaultValue
                {
                        get { return ZERO;
                            }
                }

                public override string ObjectToSQLString(object value, Dialect.Dialect dialect)
                {
                        return value.ToString();
                }



Clone Instance
5
Line Count
77
Source Line
28
Source File
src/NHibernate/Type/UInt16Type.cs

                private static readonly UInt16 ZERO = 0;

                public override object Get(IDataReader rs, int index)
                {
                        try
                        {
                                return Convert.ToUInt16(rs[index]);
                        }
                        catch (Exception ex)
                        {
                                throw new FormatException(string.Format("Input string '{0}' was not in the correct format.", rs[index]), ex);
                        }
                }

                public override object Get(IDataReader rs, string name)
                {
                        try
                        {
                                return Convert.ToUInt16(rs[name]);
                        }
                        catch (Exception ex)
                        {
                                throw new FormatException(string.Format("Input string '{0}' was not in the correct format.", rs[name]), ex);
                        }
                }

                public override System.Type ReturnedClass
                {
                        get { return typeof(UInt16);
                            }
                }

                public override void Set(IDbCommand rs, object value, int index)
                {
                        ((IDataParameter)rs.Parameters[index]).Value = value;
                }

                public object StringToObject(string xml)
                {
                        return FromStringValue(xml);
                }

                public override object FromStringValue(string xml)
                {
                        return UInt16.Parse(xml);
                }

                #region IVersionType Members
                public virtual object Next(object current, ISessionImplementor session)
                {
                        return (UInt16)current + 1;
                }

                public virtual object Seed(ISessionImplementor session)
                {
                        return 1;
                }

                public IComparer Comparator
                {
                        get { return Comparer<UInt16>.Default;
                            }
                }

                #endregion
                public override System.Type PrimitiveClass
                {
                        get { return typeof(UInt16);
                            }
                }

                public override object DefaultValue
                {
                        get { return ZERO;
                            }
                }

                public override string ObjectToSQLString(object value, Dialect.Dialect dialect)
                {
                        return value.ToString();
                }



Clone Instance
6
Line Count
77
Source Line
28
Source File
src/NHibernate/Type/UInt32Type.cs

                private static readonly UInt32 ZERO = 0;

                public override object Get(IDataReader rs, int index)
                {
                        try
                        {
                                return Convert.ToUInt32(rs[index]);
                        }
                        catch (Exception ex)
                        {
                                throw new FormatException(string.Format("Input string '{0}' was not in the correct format.", rs[index]), ex);
                        }
                }

                public override object Get(IDataReader rs, string name)
                {
                        try
                        {
                                return Convert.ToUInt32(rs[name]);
                        }
                        catch (Exception ex)
                        {
                                throw new FormatException(string.Format("Input string '{0}' was not in the correct format.", rs[name]), ex);
                        }
                }

                public override System.Type ReturnedClass
                {
                        get { return typeof(UInt32);
                            }
                }

                public override void Set(IDbCommand rs, object value, int index)
                {
                        ((IDataParameter)rs.Parameters[index]).Value = value;
                }

                public object StringToObject(string xml)
                {
                        return FromStringValue(xml);
                }

                public override object FromStringValue(string xml)
                {
                        return UInt32.Parse(xml);
                }

                #region IVersionType Members
                public virtual object Next(object current, ISessionImplementor session)
                {
                        return (UInt32)current + 1;
                }

                public virtual object Seed(ISessionImplementor session)
                {
                        return 1;
                }

                public IComparer Comparator
                {
                        get { return Comparer<UInt32>.Default;
                            }
                }

                #endregion
                public override System.Type PrimitiveClass
                {
                        get { return typeof(UInt32);
                            }
                }

                public override object DefaultValue
                {
                        get { return ZERO;
                            }
                }

                public override string ObjectToSQLString(object value, Dialect.Dialect dialect)
                {
                        return value.ToString();
                }



Clone Instance
7
Line Count
77
Source Line
27
Source File
src/NHibernate/Type/UInt64Type.cs

                private static readonly UInt32 ZERO = 0;

                public override object Get(IDataReader rs, int index)
                {
                        try
                        {
                                return Convert.ToUInt64(rs[index]);
                        }
                        catch (Exception ex)
                        {
                                throw new FormatException(string.Format("Input string '{0}' was not in the correct format.", rs[index]), ex);
                        }
                }

                public override object Get(IDataReader rs, string name)
                {
                        try
                        {
                                return Convert.ToUInt64(rs[name]);
                        }
                        catch (Exception ex)
                        {
                                throw new FormatException(string.Format("Input string '{0}' was not in the correct format.", rs[name]), ex);
                        }
                }

                public override System.Type ReturnedClass
                {
                        get { return typeof(UInt64);
                            }
                }

                public override void Set(IDbCommand rs, object value, int index)
                {
                        ((IDataParameter)rs.Parameters[index]).Value = value;
                }

                public object StringToObject(string xml)
                {
                        return FromStringValue(xml);
                }

                public override object FromStringValue(string xml)
                {
                        return UInt64.Parse(xml);
                }

                #region IVersionType Members
                public virtual object Next(object current, ISessionImplementor session)
                {
                        return (UInt64)current + 1;
                }

                public virtual object Seed(ISessionImplementor session)
                {
                        return 1;
                }

                public IComparer Comparator
                {
                        get { return Comparer<UInt64>.Default;
                            }
                }

                #endregion
                public override System.Type PrimitiveClass
                {
                        get { return typeof(UInt64);
                            }
                }

                public override object DefaultValue
                {
                        get { return ZERO;
                            }
                }

                public override string ObjectToSQLString(object value, Dialect.Dialect dialect)
                {
                        return value.ToString();
                }



Clone AbstractionParameter Count: 5Parameter Bindings

private static readonly [[#variable6e525dc0]]ZERO = 0;

public override object Get(IDataReader rs, int index)
{
   try
   {
      return Convert. [[#variable54a80220]](rs[index]);
   }
   catch (Exception ex)
   {
      throw new FormatException(string.Format("Input string '{0}' was not in the correct format.", rs[index]), ex);
   }
}

public override object Get(IDataReader rs, string name)
{
   try
   {
      return Convert. [[#variable54a80220]](rs[name]);
   }
   catch (Exception ex)
   {
      throw new FormatException(string.Format("Input string '{0}' was not in the correct format.", rs[name]), ex);
   }
}

public override System.Type ReturnedClass
{
   get
   {
      return typeof( [[#variable6e525be0]]);
   }
}

public override void Set(IDbCommand rs, object value, int index)
{
   ((IDataParameter)rs.Parameters[index]).Value = value;
}

public object StringToObject(string xml)
{
   return FromStringValue(xml);
}

public override object FromStringValue(string xml)
{
   return [[#variable6e525be0]].Parse(xml);
}

#region IVersionType Members
public virtual object Next(object current, ISessionImplementor session)
{
   return [[#variable6e525c80]];
}

public virtual object Seed(ISessionImplementor session)
{
   return [[#variable6e525b60]];
}

public IComparer Comparator
{
   get
   {
      return Comparer< [[#variable6e525be0]]>.Default;
   }
}

#endregion
public override System.Type PrimitiveClass
{
   get
   {
      return typeof( [[#variable6e525be0]]);
   }
}

public override object DefaultValue
{
   get
   {
      return ZERO;
   }
}

public override string ObjectToSQLString(object value, Dialect.Dialect dialect)
{
   return value.ToString();
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6e525dc0]]
UInt32 
12[[#6e525dc0]]
Int16 
13[[#6e525dc0]]
Int32 
14[[#6e525dc0]]
Int64 
15[[#6e525dc0]]
SByte 
16[[#6e525dc0]]
UInt16 
17[[#6e525dc0]]
UInt32 
21[[#54a80220]]
ToUInt32 
22[[#54a80220]]
ToInt16 
23[[#54a80220]]
ToInt32 
24[[#54a80220]]
ToInt64 
25[[#54a80220]]
ToSByte 
26[[#54a80220]]
ToUInt16 
27[[#54a80220]]
ToUInt64 
31[[#6e525be0]]
UInt32 
32[[#6e525be0]]
Int16 
33[[#6e525be0]]
Int32 
34[[#6e525be0]]
Int64 
35[[#6e525be0]]
SByte 
36[[#6e525be0]]
UInt16 
37[[#6e525be0]]
UInt64 
41[[#6e525c80]]
(UInt32)current + 1 
42[[#6e525c80]]
(Int16)((Int16)current + 1) 
43[[#6e525c80]]
(Int32)current + 1 
44[[#6e525c80]]
(Int64)current + 1L 
45[[#6e525c80]]
(SByte)((SByte)current + 1) 
46[[#6e525c80]]
(UInt16)current + 1 
47[[#6e525c80]]
(UInt64)current + 1 
51[[#6e525b60]]
1 
52[[#6e525b60]]
(Int16)1 
53[[#6e525b60]]
1 
54[[#6e525b60]]
1L 
55[[#6e525b60]]
(SByte)1 
56[[#6e525b60]]
1 
57[[#6e525b60]]
1