CloneSet961


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5201.000method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15395
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeJavaObject.java
25377
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeOther.java
Next
Last
Clone Instance
1
Line Count
5
Source Line
395
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeJavaObject.java

/**
 * When updating the database, generate a string form of this object value
 * that can be used in the WHERE clause to match the value in the database.
 * A return value of null means that this column cannot be used in the WHERE
 * clause, while a return of "null" (or "is null", etc) means that the column
 * can be used in the WHERE clause and the value is actually a null value.
 * This function must also include the column label so that its output
 * is of the form:
 *      "columnName = value"
 * or
 *      "columnName is null"
 * or whatever is appropriate for this column in the database.
 */
public String getWhereClauseValue(Object value, ISQLDatabaseMetaData md) {
  if (value == null || value.toString() == null)
    return _colDef.getLabel() + " IS NULL";
  else
    return _colDef.getLabel() + "=\'" + value.toString() + "\'";
}


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

/**
 * When updating the database, generate a string form of this object value
 * that can be used in the WHERE clause to match the value in the database.
 * A return value of null means that this column cannot be used in the WHERE
 * clause, while a return of "null" (or "is null", etc) means that the column
 * can be used in the WHERE clause and the value is actually a null value.
 * This function must also include the column label so that its output
 * is of the form:
 *      "columnName = value"
 * or
 *      "columnName is null"
 * or whatever is appropriate for this column in the database.
 */
public String getWhereClauseValue(Object value, ISQLDatabaseMetaData md) {
  if (value == null || value.toString() == null)
    return _colDef.getLabel() + " IS NULL";
  else
    return _colDef.getLabel() + "=\'" + value.toString() + "\'";
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * When updating the database, generate a string form of this object value
         * that can be used in the WHERE clause to match the value in the database.
         * A return value of null means that this column cannot be used in the WHERE
         * clause, while a return of "null" (or "is null", etc) means that the column
         * can be used in the WHERE clause and the value is actually a null value.
         * This function must also include the column label so that its output
         * is of the form:
         *      "columnName = value"
         * or
         *      "columnName is null"
         * or whatever is appropriate for this column in the database.
         */
public String getWhereClauseValue(Object value, ISQLDatabaseMetaData md) {
  if (value == null || value.toString() == null)
    return _colDef.getLabel() + " IS NULL";
  else
    return _colDef.getLabel() + "=\'" + value.toString() + "\'";
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None