CloneSet188


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7620.978method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17563
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDate.java
27407
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeJavaObject.java
37389
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeOther.java
47604
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeString.java
57508
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTime.java
67530
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTimestamp.java
Next
Last
Clone Instance
1
Line Count
7
Source Line
563
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDate.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.setDate(position, ((Date) value));
  }
}


Next
Previous
Clone Instance
2
Line Count
7
Source Line
407
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeJavaObject.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.setString(position, ((String) value));
  }
}


Next
Previous
Clone Instance
3
Line Count
7
Source Line
389
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeOther.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.setString(position, ((String) value));
  }
}


Next
Previous
Clone Instance
4
Line Count
7
Source Line
604
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeString.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.setString(position, ((String) value));
  }
}


Next
Previous
Clone Instance
5
Line Count
7
Source Line
508
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTime.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.setTime(position, ((Time) value));
  }
}


First
Previous
Clone Instance
6
Line Count
7
Source Line
530
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTimestamp.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.setTimestamp(position, ((Timestamp) value));
  }
}


Clone AbstractionParameter Count: 2Parameter 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.
    */
public void setPreparedStatementValue(PreparedStatement pstmt, Object value, int position) throws java.sql.SQLException {
  if (value == null) {
    pstmt.setNull(position, _colDef.getSqlType());
  }
  else {
    pstmt. [[#variable18d20360]](position, (( [[#variable18d202e0]]) value));
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18d20360]]
setDate 
12[[#18d20360]]
setString 
13[[#18d20360]]
setString 
14[[#18d20360]]
setString 
15[[#18d20360]]
setTime 
16[[#18d20360]]
setTimestamp 
21[[#18d202e0]]
Date 
22[[#18d202e0]]
String 
23[[#18d202e0]]
String 
24[[#18d202e0]]
String 
25[[#18d202e0]]
Time 
26[[#18d202e0]]
Timestamp