CloneSet28


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
301110.975executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
130444
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBigDecimal.java
230337
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBinary.java
330436
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBlob.java
430462
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeClob.java
530442
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDate.java
630371
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDouble.java
730373
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeFloat.java
830337
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeInteger.java
930431
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTime.java
1030447
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTimestamp.java
1128380
E:/TSE/Projects-CloneDR/sql12/plugins/derby/src/net/sourceforge/squirrel_sql/plugins/derby/types/DerbyClobDataTypeComponent.java
Next
Last
Clone Instance
1
Line Count
30
Source Line
444
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBigDecimal.java

// handle cases of null
// The processing is different when nulls are allowed and when they are not.
//
if (DataTypeBigDecimal.this._isNullable) {
  // user enters something when field is null
  if (text.equals("<null>")) {
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      // delete when null => original value
      DataTypeBigDecimal.this._textComponent.restoreText();
      e.consume();
    }
    else {
      // non-delete when null => clear field and add text
      DataTypeBigDecimal.this._textComponent.updateText("");
    // fall through to normal processing of this key stroke
    }
  }
  else {
    // check for user deletes last thing in field
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      if (text.length() <= 1) {
        // about to delete last thing in field, so replace with null
        DataTypeBigDecimal.this._textComponent.updateText("<null>");
        e.consume();
      }
    }
  }
}
else {
  // field is not nullable
  //
  handleNotNullableField(text, c, e, _textComponent);
}


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

// handle cases of null
// The processing is different when nulls are allowed and when they are not.
//
if (DataTypeBinary.this._isNullable) {
  // user enters something when field is null
  if (text.equals("<null>")) {
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      // delete when null => original value
      DataTypeBinary.this._textComponent.restoreText();
      e.consume();
    }
    else {
      // non-delete when null => clear field and add text
      DataTypeBinary.this._textComponent.updateText("");
    // fall through to normal processing of this key stroke
    }
  }
  else {
    // check for user deletes last thing in field
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      if (text.length() <= 1) {
        // about to delete last thing in field, so replace with null
        DataTypeBinary.this._textComponent.updateText("<null>");
        e.consume();
      }
    }
  }
}
else {
  // field is not nullable
  //
  handleNotNullableField(text, c, e, _textComponent);
}


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

// handle cases of null
// The processing is different when nulls are allowed and when they are not.
//
if (DataTypeBlob.this._isNullable) {
  // user enters something when field is null
  if (text.equals("<null>")) {
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      // delete when null => original value
      DataTypeBlob.this._textComponent.restoreText();
      e.consume();
    }
    else {
      // non-delete when null => clear field and add text
      DataTypeBlob.this._textComponent.updateText("");
    // fall through to normal processing of this key stroke
    }
  }
  else {
    // check for user deletes last thing in field
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      if (text.length() <= 1) {
        // about to delete last thing in field, so replace with null
        DataTypeBlob.this._textComponent.updateText("<null>");
        e.consume();
      }
    }
  }
}
else {
  // field is not nullable
  //
  handleNotNullableField(text, c, e, _textComponent);
}


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

// handle cases of null
// The processing is different when nulls are allowed and when they are not.
//
if (DataTypeClob.this._isNullable) {
  // user enters something when field is null
  if (text.equals("<null>")) {
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      // delete when null => original value
      DataTypeClob.this._textComponent.restoreText();
      e.consume();
    }
    else {
      // non-delete when null => clear field and add text
      DataTypeClob.this._textComponent.updateText("");
    // fall through to normal processing of this key stroke
    }
  }
  else {
    // check for user deletes last thing in field
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      if (text.length() <= 1) {
        // about to delete last thing in field, so replace with null
        DataTypeClob.this._textComponent.updateText("<null>");
        e.consume();
      }
    }
  }
}
else {
  // field is not nullable
  //
  handleNotNullableField(text, c, e, _textComponent);
}


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

// handle cases of null
// The processing is different when nulls are allowed and when they are not.
//
if (DataTypeDate.this._isNullable) {
  // user enters something when field is null
  if (text.equals("<null>")) {
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      // delete when null => original value
      DataTypeDate.this._textComponent.restoreText();
      e.consume();
    }
    else {
      // non-delete when null => clear field and add text
      DataTypeDate.this._textComponent.updateText("");
    // fall through to normal processing of this key stroke
    }
  }
  else {
    // check for user deletes last thing in field
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      if (text.length() <= 1) {
        // about to delete last thing in field, so replace with null
        DataTypeDate.this._textComponent.updateText("<null>");
        e.consume();
      }
    }
  }
}
else {
  // field is not nullable
  //
  handleNotNullableField(text, c, e, _textComponent);
}


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

// handle cases of null
// The processing is different when nulls are allowed and when they are not.
//
if (DataTypeDouble.this._isNullable) {
  // user enters something when field is null
  if (text.equals("<null>")) {
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      // delete when null => original value
      DataTypeDouble.this._textComponent.restoreText();
      e.consume();
    }
    else {
      // non-delete when null => clear field and add text
      DataTypeDouble.this._textComponent.updateText("");
    // fall through to normal processing of this key stroke
    }
  }
  else {
    // check for user deletes last thing in field
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      if (text.length() <= 1) {
        // about to delete last thing in field, so replace with null
        DataTypeDouble.this._textComponent.updateText("<null>");
        e.consume();
      }
    }
  }
}
else {
  // field is not nullable
  //
  handleNotNullableField(text, c, e, _textComponent);
}


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

// handle cases of null
// The processing is different when nulls are allowed and when they are not.
//
if (DataTypeFloat.this._isNullable) {
  // user enters something when field is null
  if (text.equals("<null>")) {
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      // delete when null => original value
      DataTypeFloat.this._textComponent.restoreText();
      e.consume();
    }
    else {
      // non-delete when null => clear field and add text
      DataTypeFloat.this._textComponent.updateText("");
    // fall through to normal processing of this key stroke
    }
  }
  else {
    // check for user deletes last thing in field
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      if (text.length() <= 1) {
        // about to delete last thing in field, so replace with null
        DataTypeFloat.this._textComponent.updateText("<null>");
        e.consume();
      }
    }
  }
}
else {
  // field is not nullable
  //
  handleNotNullableField(text, c, e, _textComponent);
}


Next
Previous
Clone Instance
8
Line Count
30
Source Line
337
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeInteger.java

// handle cases of null
// The processing is different when nulls are allowed and when they are not.
//
if (DataTypeInteger.this._isNullable) {
  // user enters something when field is null
  if (text.equals("<null>")) {
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      // delete when null => original value
      DataTypeInteger.this._textComponent.restoreText();
      e.consume();
    }
    else {
      // non-delete when null => clear field and add text
      DataTypeInteger.this._textComponent.updateText("");
    // fall through to normal processing of this key stroke
    }
  }
  else {
    // check for user deletes last thing in field
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      if (text.length() <= 1) {
        // about to delete last thing in field, so replace with null
        DataTypeInteger.this._textComponent.updateText("<null>");
        e.consume();
      }
    }
  }
}
else {
  // field is not nullable
  //
  handleNotNullableField(text, c, e, _textComponent);
}


Next
Previous
Clone Instance
9
Line Count
30
Source Line
431
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTime.java

// handle cases of null
// The processing is different when nulls are allowed and when they are not.
//
if (DataTypeTime.this._isNullable) {
  // user enters something when field is null
  if (text.equals("<null>")) {
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      // delete when null => original value
      DataTypeTime.this._textComponent.restoreText();
      e.consume();
    }
    else {
      // non-delete when null => clear field and add text
      DataTypeTime.this._textComponent.updateText("");
    // fall through to normal processing of this key stroke
    }
  }
  else {
    // check for user deletes last thing in field
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      if (text.length() <= 1) {
        // about to delete last thing in field, so replace with null
        DataTypeTime.this._textComponent.updateText("<null>");
        e.consume();
      }
    }
  }
}
else {
  // field is not nullable
  //
  handleNotNullableField(text, c, e, _textComponent);
}


Next
Previous
Clone Instance
10
Line Count
30
Source Line
447
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTimestamp.java

// handle cases of null
// The processing is different when nulls are allowed and when they are not.
//
if (DataTypeTimestamp.this._isNullable) {
  // user enters something when field is null
  if (text.equals("<null>")) {
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      // delete when null => original value
      DataTypeTimestamp.this._textComponent.restoreText();
      e.consume();
    }
    else {
      // non-delete when null => clear field and add text
      DataTypeTimestamp.this._textComponent.updateText("");
    // fall through to normal processing of this key stroke
    }
  }
  else {
    // check for user deletes last thing in field
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      if (text.length() <= 1) {
        // about to delete last thing in field, so replace with null
        DataTypeTimestamp.this._textComponent.updateText("<null>");
        e.consume();
      }
    }
  }
}
else {
  // field is not nullable
  //
  handleNotNullableField(text, c, e, _textComponent);
}


First
Previous
Clone Instance
11
Line Count
28
Source Line
380
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/derby/src/net/sourceforge/squirrel_sql/plugins/derby/types/DerbyClobDataTypeComponent.java

// handle cases of null
// The processing is different when nulls are allowed and when they are
// not.
//
if (DerbyClobDataTypeComponent.this._isNullable) {
  // user enters something when field is null
  if (text.equals("<null>")) {
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      // delete when null => original value
      DerbyClobDataTypeComponent.this._textComponent.restoreText();
      e.consume();
    }
    else {
      // non-delete when null => clear field and add text
      DerbyClobDataTypeComponent.this._textComponent.updateText("");
    // fall through to normal processing of this key stroke
    }
  }
  else {
    // check for user deletes last thing in field
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      if (text.length() <= 1) {
        // about to delete last thing in field, so replace with
        // null
        DerbyClobDataTypeComponent.this._textComponent.updateText("<null>");
        e.consume();
      }
    }
  }
}
else {
  // field is not nullable
  //
  handleNotNullableField(text, c, e, _textComponent);
}


Clone AbstractionParameter Count: 1Parameter Bindings

// handle cases of null
// The processing is different when nulls are allowed and when they are not.
// The processing is different when nulls are allowed and when they are
// not.
//
if ( [[#variable1cf01be0]].this._isNullable) {
  // user enters something when field is null
  if (text.equals("<null>")) {
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
       [[#variable1cf01be0]].this._textComponent.restoreText();
      e.consume();
    }
    else {
       [[#variable1cf01be0]].this._textComponent.updateText("");
    // fall through to normal processing of this key stroke
    }
  }
  else {
    // check for user deletes last thing in field
    if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {
      if (text.length() <= 1) {
         [[#variable1cf01be0]].this._textComponent.updateText("<null>");
        e.consume();
      }
    }
  }
}
else {
  // field is not nullable
  //
  handleNotNullableField(text, c, e, _textComponent);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1cf01be0]]
DataTypeBigDecimal 
12[[#1cf01be0]]
DataTypeBinary 
13[[#1cf01be0]]
DataTypeBlob 
14[[#1cf01be0]]
DataTypeClob 
15[[#1cf01be0]]
DataTypeDate 
16[[#1cf01be0]]
DataTypeDouble 
17[[#1cf01be0]]
DataTypeFloat 
18[[#1cf01be0]]
DataTypeInteger 
19[[#1cf01be0]]
DataTypeTime 
110[[#1cf01be0]]
DataTypeTimestamp 
111[[#1cf01be0]]
DerbyClobDataTypeComponent