CloneSet171


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10630.969method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110392
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBoolean.java
27409
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeByte.java
37453
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDouble.java
47455
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeFloat.java
57408
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeLong.java
67409
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeShort.java
Next
Last
Clone Instance
1
Line Count
10
Source Line
392
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBoolean.java

/**
 * When updating the database, insert the appropriate datatype into the prepared statment at the given
 * variable position.
 */
public void setPreparedStatementValue(PreparedStatement pstmt, Object value, int position) throws java.sql.SQLException {
  if (value == null) {
    pstmt.setNull(position, _colDef.getSqlType());
  }
  else {
    pstmt.setBoolean(position, ((Boolean) value).booleanValue());
  }
}


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

/**
 * When updating the database, insert the appropriate datatype into the
 * prepared statment at the given variable position.
 */
public void setPreparedStatementValue(PreparedStatement pstmt, Object value, int position) throws java.sql.SQLException {
  if (value == null) {
    pstmt.setNull(position, _colDef.getSqlType());
  }
  else {
    pstmt.setInt(position, ((Byte) value).intValue());
  }
}


Next
Previous
Clone Instance
3
Line Count
7
Source Line
453
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDouble.java

/**
 * When updating the database, insert the appropriate datatype into the
 * prepared statment at the given variable position.
 */
public void setPreparedStatementValue(PreparedStatement pstmt, Object value, int position) throws java.sql.SQLException {
  if (value == null) {
    pstmt.setNull(position, _colDef.getSqlType());
  }
  else {
    pstmt.setDouble(position, ((Double) value).floatValue());
  }
}


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

/**
 * When updating the database, insert the appropriate datatype into the
 * prepared statment at the given variable position.
 */
public void setPreparedStatementValue(PreparedStatement pstmt, Object value, int position) throws java.sql.SQLException {
  if (value == null) {
    pstmt.setNull(position, _colDef.getSqlType());
  }
  else {
    pstmt.setFloat(position, ((Float) value).floatValue());
  }
}


Next
Previous
Clone Instance
5
Line Count
7
Source Line
408
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeLong.java

/**
 * When updating the database, insert the appropriate datatype into the
 * prepared statment at the given variable position.
 */
public void setPreparedStatementValue(PreparedStatement pstmt, Object value, int position) throws java.sql.SQLException {
  if (value == null) {
    pstmt.setNull(position, _colDef.getSqlType());
  }
  else {
    pstmt.setLong(position, ((Long) value).longValue());
  }
}


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

/**
 * When updating the database, insert the appropriate datatype into the
 * prepared statment at the given variable position.
 */
public void setPreparedStatementValue(PreparedStatement pstmt, Object value, int position) throws java.sql.SQLException {
  if (value == null) {
    pstmt.setNull(position, _colDef.getSqlType());
  }
  else {
    pstmt.setInt(position, ((Short) value).intValue());
  }
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * When updating the database, insert the appropriate datatype into the prepared statment at the given
         * variable position.
         */
/**
    * When updating the database, insert the appropriate datatype into the
    * prepared statment at the given variable position.
    */
/**
         * When updating the database, insert the appropriate datatype into the
         * prepared statment at the given variable position.
         */
public void setPreparedStatementValue(PreparedStatement pstmt, Object value, int position) throws java.sql.SQLException {
  if (value == null) {
    pstmt.setNull(position, _colDef.getSqlType());
  }
  else {
    pstmt. [[#variable18d02120]](position, (( [[#variable18d02080]]) value). [[#variable18d07fc0]]());
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18d02120]]
setBoolean 
12[[#18d02120]]
setInt 
13[[#18d02120]]
setDouble 
14[[#18d02120]]
setFloat 
15[[#18d02120]]
setLong 
16[[#18d02120]]
setInt 
21[[#18d02080]]
Boolean 
22[[#18d02080]]
Byte 
23[[#18d02080]]
Double 
24[[#18d02080]]
Float 
25[[#18d02080]]
Long 
26[[#18d02080]]
Short 
31[[#18d07fc0]]
booleanValue 
32[[#18d07fc0]]
intValue 
33[[#18d07fc0]]
floatValue 
34[[#18d07fc0]]
floatValue 
35[[#18d07fc0]]
longValue 
36[[#18d07fc0]]
intValue