CloneSet838


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10230.957method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110193
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/SQLUtilities.java
210211
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/SQLUtilities.java
Next
Last
Clone Instance
1
Line Count
10
Source Line
193
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/SQLUtilities.java

public static ForeignKeyInfo[] getImportedKeys(ITableInfo ti, SQLDatabaseMetaData md) throws SQLException {
  ForeignKeyInfo[] result = ti.getImportedKeys();
  if (result == null) {
    result = md.getImportedKeysInfo(ti);
    // Avoid the hit next time
    ti.setImportedKeys(result);
  }
  return result;
}


First
Previous
Clone Instance
2
Line Count
10
Source Line
211
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/SQLUtilities.java

/**
 * @param ti
 * @param md
 * @return
 * @throws SQLException
 */
public static ForeignKeyInfo[] getExportedKeys(ITableInfo ti, SQLDatabaseMetaData md) throws SQLException {
  ForeignKeyInfo[] result = ti.getExportedKeys();
  if (result == null) {
    result = md.getExportedKeysInfo(ti);
    // Avoid the hit next time
    ti.setExportedKeys(result);
  }
  return result;
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * @param ti
         * @param md
         * @return
         * @throws SQLException
         */
public static ForeignKeyInfo[]  [[#variable1cd10a40]](ITableInfo ti, SQLDatabaseMetaData md) throws SQLException {
  ForeignKeyInfo[] result = ti. [[#variable1cd10a40]]();
  if (result == null) {
    result = md. [[#variable1cd109c0]](ti);
    // Avoid the hit next time
    ti. [[#variable1cd10960]](result);
  }
  return result;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1cd10a40]]
getImportedKeys 
12[[#1cd10a40]]
getExportedKeys 
21[[#1cd109c0]]
getImportedKeysInfo 
22[[#1cd109c0]]
getExportedKeysInfo 
31[[#1cd10960]]
setImportedKeys 
32[[#1cd10960]]
setExportedKeys