CloneSet312


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21230.989namespace_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12167
src/NHibernate/Dialect/Schema/SQLiteMetaData.cs
221102
src/NHibernate/Dialect/Schema/SybaseAnywhereMetaData.cs
Clone Instance
1
Line Count
21
Source Line
67
Source File
src/NHibernate/Dialect/Schema/SQLiteMetaData.cs

        public class SQLiteColumnMetaData : AbstractColumnMetaData
        {
                public SQLiteColumnMetaData(DataRow rs) : base(rs)
                {
                        Name = Convert.ToString(rs["COLUMN_NAME"]);
                        object objValue = rs["CHARACTER_MAXIMUM_LENGTH"];
                        if (objValue != DBNull.Value)
                        {
                                ColumnSize = Convert.ToInt32(objValue);
                        }
                        objValue = rs["NUMERIC_PRECISION"];
                        if (objValue != DBNull.Value)
                        {
                                NumericalPrecision = Convert.ToInt32(objValue);
                        }
                        Nullable = Convert.ToString(rs["IS_NULLABLE"]);
                        TypeName = Convert.ToString(rs["DATA_TYPE"]);
                }

        }


Clone Instance
2
Line Count
21
Source Line
102
Source File
src/NHibernate/Dialect/Schema/SybaseAnywhereMetaData.cs

        public class SybaseAnywhereColumnMetaData : AbstractColumnMetaData
        {
                public SybaseAnywhereColumnMetaData(DataRow rs) : base(rs)
                {
                        Name = Convert.ToString(rs["COLUMN_NAME"]);
                        object objValue = rs["COLUMN_SIZE"];
                        if (objValue != DBNull.Value)
                        {
                                ColumnSize = Convert.ToInt32(objValue);
                        }
                        objValue = rs["PRECISION"];
                        if (objValue != DBNull.Value)
                        {
                                NumericalPrecision = Convert.ToInt32(objValue);
                        }
                        Nullable = Convert.ToString(rs["IS_NULLABLE"]);
                        TypeName = Convert.ToString(rs["DATA_TYPE"]);
                }

        }


Clone AbstractionParameter Count: 3Parameter Bindings

public class [[#variable5f777260]]: AbstractColumnMetaData
{
   public [[#variable5f777260]](DataRow rs): base(rs)
   {
      Name = Convert.ToString(rs["COLUMN_NAME"]);
      object objValue = rs[ [[#variable5f777100]]];
      if (objValue != DBNull.Value)
      {
         ColumnSize = Convert.ToInt32(objValue);
      }
      objValue = rs[ [[#variable5f7770a0]]];
      if (objValue != DBNull.Value)
      {
         NumericalPrecision = Convert.ToInt32(objValue);
      }
      Nullable = Convert.ToString(rs["IS_NULLABLE"]);
      TypeName = Convert.ToString(rs["DATA_TYPE"]);
   }

}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5f777260]]
SybaseAnywhereColumnMetaData 
12[[#5f777260]]
SQLiteColumnMetaData 
21[[#5f777100]]
"COLUMN_SIZE" 
22[[#5f777100]]
"CHARACTER_MAXIMUM_LENGTH" 
31[[#5f7770a0]]
"PRECISION" 
32[[#5f7770a0]]
"NUMERIC_PRECISION"