CloneSet719


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5310.986method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15585
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBlob.java
25613
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeClob.java
35457
E:/TSE/Projects-CloneDR/sql12/plugins/derby/src/net/sourceforge/squirrel_sql/plugins/derby/types/DerbyClobDataTypeComponent.java
Next
Last
Clone Instance
1
Line Count
5
Source Line
585
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBlob.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 || ((BlobDescriptor) value).getData() == null)
    return _colDef.getLabel() + " IS NULL";
  else
    return ""; // BLOB cannot be used in WHERE clause
}


Next
Previous
Clone Instance
2
Line Count
5
Source Line
613
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeClob.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 || ((ClobDescriptor) value).getData() == null)
    return _colDef.getLabel() + " IS NULL";
  else
    return ""; // CLOB cannot be used in WHERE clause
}


First
Previous
Clone Instance
3
Line Count
5
Source Line
457
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/derby/src/net/sourceforge/squirrel_sql/plugins/derby/types/DerbyClobDataTypeComponent.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 || ((DerbyClobDescriptor) value).getData() == null)
    return _colDef.getLabel() + " IS NULL";
  else
    return ""; // CLOB cannot be used in WHERE clause
}


Clone AbstractionParameter Count: 1Parameter 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.
    */
/**
         * 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 || (( [[#variable1cc6e8e0]]) value).getData() == null)
    return _colDef.getLabel() + " IS NULL";
  else
    return ""; // CLOB cannot be used in WHERE clause // BLOB cannot be used in WHERE clause
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1cc6e8e0]]
BlobDescriptor 
12[[#1cc6e8e0]]
ClobDescriptor 
13[[#1cc6e8e0]]
DerbyClobDescriptor