CloneSet892


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7230.966method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17416
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDouble.java
27418
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeFloat.java
Next
Last
Clone Instance
1
Line Count
7
Source Line
416
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDouble.java

/*
  * DataBase-related functions
  */
/**
 * On input from the DB, read the data from the ResultSet into the appropriate
 * type of object to be stored in the table cell.
 */
public Object readResultSet(ResultSet rs, int index, boolean limitDataRead) throws java.sql.SQLException {
  double data = rs.getDouble(index);
  if (rs.wasNull())
    return null;
  else
    return new Double(data);
}


First
Previous
Clone Instance
2
Line Count
7
Source Line
418
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeFloat.java

/*
  * DataBase-related functions
  */
/**
 * On input from the DB, read the data from the ResultSet into the appropriate
 * type of object to be stored in the table cell.
 */
public Object readResultSet(ResultSet rs, int index, boolean limitDataRead) throws java.sql.SQLException {
  float data = rs.getFloat(index);
  if (rs.wasNull())
    return null;
  else
    return new Float(data);
}


Clone AbstractionParameter Count: 3Parameter Bindings

/*
     * DataBase-related functions
     */
/**
     * On input from the DB, read the data from the ResultSet into the appropriate
     * type of object to be stored in the table cell.
     */
public Object readResultSet(ResultSet rs, int index, boolean limitDataRead) throws java.sql.SQLException {
   [[#variable1cd00b60]] data = rs. [[#variable1cd00ae0]](index);
  if (rs.wasNull())
    return null;
  else
    return new [[#variable1cd00a80]](data);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1cd00b60]]
double 
12[[#1cd00b60]]
float 
21[[#1cd00ae0]]
getDouble 
22[[#1cd00ae0]]
getFloat 
31[[#1cd00a80]]
Double 
32[[#1cd00a80]]
Float