CloneSet196


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
35201.000statement_sequence[11]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1391707
E:/TSE/Projects-CloneDR/sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/util/DBUtil.java
235618
E:/TSE/Projects-CloneDR/sql12/plugins/dbdiff/src/net/sourceforge/squirrel_sql/plugins/dbdiff/util/DBUtil.java
Next
Last
Clone Instance
1
Line Count
39
Source Line
1707
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/util/DBUtil.java

boolean useSchema = true;
boolean useCatalog = true;
try {
  useCatalog = md.supportsCatalogsInTableDefinitions();
}
catch (SQLException
       e) {
  log.info("Encountered unexpected exception while attempting to " + "determine if catalogs are used in table definitions");
}
try {
  useSchema = md.supportsSchemasInTableDefinitions();
}
catch (SQLException
       e) {
  log.info("Encountered unexpected exception while attempting to " + "determine if schemas are used in table definitions");
}
if ( !useCatalog && !useSchema) {
  return object;
}
if ((catalog == null || catalog.equals("")) && (schema == null || schema.equals(""))) {
  return object;
}
StringBuilder result = new StringBuilder();
if (useCatalog && catalog != null && !catalog.equals("")) {
  result.append(catalog);
  result.append(getCatSep(session));
}
if (useSchema && schema != null && !schema.equals("")) {
  result.append(schema);
  result.append(".");
}
result.append(object);
return result.toString();


First
Previous
Clone Instance
2
Line Count
35
Source Line
618
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/dbdiff/src/net/sourceforge/squirrel_sql/plugins/dbdiff/util/DBUtil.java

boolean useSchema = true;
boolean useCatalog = true;
try {
  useCatalog = md.supportsCatalogsInTableDefinitions();
}
catch (SQLException
       e) {
  log.info("Encountered unexpected exception while attempting to " + "determine if catalogs are used in table definitions");
}
try {
  useSchema = md.supportsSchemasInTableDefinitions();
}
catch (SQLException
       e) {
  log.info("Encountered unexpected exception while attempting to " + "determine if schemas are used in table definitions");
}
if ( !useCatalog && !useSchema) {
  return object;
}
if ((catalog == null || catalog.equals("")) && (schema == null || schema.equals(""))) {
  return object;
}
StringBuilder result = new StringBuilder();
if (useCatalog && catalog != null && !catalog.equals("")) {
  result.append(catalog);
  result.append(getCatSep(session));
}
if (useSchema && schema != null && !schema.equals("")) {
  result.append(schema);
  result.append(".");
}
result.append(object);
return result.toString();


Clone AbstractionParameter Count: 0Parameter Bindings

boolean useSchema = true;
boolean useCatalog = true;
try {
  useCatalog = md.supportsCatalogsInTableDefinitions();
}
catch (SQLException
       e) {
  log.info("Encountered unexpected exception while attempting to " + "determine if catalogs are used in table definitions");
}
try {
  useSchema = md.supportsSchemasInTableDefinitions();
}
catch (SQLException
       e) {
  log.info("Encountered unexpected exception while attempting to " + "determine if schemas are used in table definitions");
}
if ( !useCatalog && !useSchema) {
  return object;
}
if ((catalog == null || catalog.equals("")) && (schema == null || schema.equals(""))) {
  return object;
}
StringBuilder result = new StringBuilder();
if (useCatalog && catalog != null && !catalog.equals("")) {
  result.append(catalog);
  result.append(getCatSep(session));
}
if (useSchema && schema != null && !schema.equals("")) {
  result.append(schema);
  result.append(".");
}
result.append(object);
return result.toString();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None