CloneSet338


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12630.952method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19146
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/AxionDialectExt.java
29228
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/DB2DialectExt.java
312204
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/FrontBaseDialectExt.java
49134
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/H2DialectExt.java
512162
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/InformixDialectExt.java
612118
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/IntersystemsCacheDialectExt.java
Next
Last
Clone Instance
1
Line Count
9
Source Line
146
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/AxionDialectExt.java

/**
 * Returns boolean value indicating whether or not this dialect supports the specified database
 * product/version.
 * 
 * @param databaseProductName
 *           the name of the database as reported by DatabaseMetaData.getDatabaseProductName()
 * @param databaseProductVersion
 *           the version of the database as reported by DatabaseMetaData.getDatabaseProductVersion()
 * @return true if this dialect can be used for the specified product name and version; false otherwise.
 */
public boolean supportsProduct(String databaseProductName, String databaseProductVersion) {
  if (databaseProductName == null) {
    return false;
  }
  if (databaseProductName.trim().startsWith("Axion")) {
    // We don't yet have the need to discriminate by version.
    return true;
  }
  return false;
}


Next
Previous
Clone Instance
2
Line Count
9
Source Line
228
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/DB2DialectExt.java

/**
 * Returns boolean value indicating whether or not this dialect supports the specified database
 * product/version.
 * 
 * @param databaseProductName
 *           the name of the database as reported by DatabaseMetaData.getDatabaseProductName()
 * @param databaseProductVersion
 *           the version of the database as reported by DatabaseMetaData.getDatabaseProductVersion()
 * @return true if this dialect can be used for the specified product name and version; false otherwise.
 */
public boolean supportsProduct(String databaseProductName, String databaseProductVersion) {
  if (databaseProductName == null) {
    return false;
  }
  if (databaseProductName.trim().startsWith("DB2")) {
    // We don't yet have the need to discriminate by version.
    return true;
  }
  return false;
}


Next
Previous
Clone Instance
3
Line Count
12
Source Line
204
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/FrontBaseDialectExt.java

/**
 * Returns boolean value indicating whether or not this dialect supports the specified database
 * product/version.
 * 
 * @param databaseProductName
 *           the name of the database as reported by DatabaseMetaData.getDatabaseProductName()
 * @param databaseProductVersion
 *           the version of the database as reported by DatabaseMetaData.getDatabaseProductVersion()
 * @return true if this dialect can be used for the specified product name and version; false otherwise.
 */
public boolean supportsProduct(String databaseProductName, String databaseProductVersion) {
  if (databaseProductName == null) {
    return false;
  }
  if (databaseProductName.trim().startsWith("FrontBase")) {
    // We don't yet have the need to discriminate by version.
    return true;
  }
  return false;
}


Next
Previous
Clone Instance
4
Line Count
9
Source Line
134
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/H2DialectExt.java

/**
 * Returns boolean value indicating whether or not this dialect supports the specified database
 * product/version.
 * 
 * @param databaseProductName
 *           the name of the database as reported by DatabaseMetaData.getDatabaseProductName()
 * @param databaseProductVersion
 *           the version of the database as reported by DatabaseMetaData.getDatabaseProductVersion()
 * @return true if this dialect can be used for the specified product name and version; false otherwise.
 */
public boolean supportsProduct(String databaseProductName, String databaseProductVersion) {
  if (databaseProductName == null) {
    return false;
  }
  if (databaseProductName.trim().startsWith("H2")) {
    // We don't yet have the need to discriminate by version.
    return true;
  }
  return false;
}


Next
Previous
Clone Instance
5
Line Count
12
Source Line
162
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/InformixDialectExt.java

/**
 * Returns boolean value indicating whether or not this dialect supports the specified database
 * product/version.
 * 
 * @param databaseProductName
 *           the name of the database as reported by DatabaseMetaData.getDatabaseProductName()
 * @param databaseProductVersion
 *           the version of the database as reported by DatabaseMetaData.getDatabaseProductVersion()
 * @return true if this dialect can be used for the specified product name and version; false otherwise.
 */
public boolean supportsProduct(String databaseProductName, String databaseProductVersion) {
  if (databaseProductName == null) {
    return false;
  }
  if (databaseProductName.toLowerCase().contains("informix")) {
    // We don't yet have the need to discriminate by version.
    return true;
  }
  return false;
}


First
Previous
Clone Instance
6
Line Count
12
Source Line
118
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/IntersystemsCacheDialectExt.java

/**
 * Returns boolean value indicating whether or not this dialect supports the specified database
 * product/version.
 *
 * @param databaseProductName
 *           the name of the database as reported by DatabaseMetaData.getDatabaseProductName()
 * @param databaseProductVersion
 *           the version of the database as reported by DatabaseMetaData.getDatabaseProductVersion()
 * @return true if this dialect can be used for the specified product name and version; false otherwise.
 */
public boolean supportsProduct(String databaseProductName, String databaseProductVersion) {
  if (databaseProductName == null) {
    return false;
  }
  if (databaseProductName.trim().startsWith("Cache")) {
    // We don't yet have the need to discriminate by version.
    return true;
  }
  return false;
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
    * Returns boolean value indicating whether or not this dialect supports the specified database
    * product/version.
    *
    * @param databaseProductName
    *           the name of the database as reported by DatabaseMetaData.getDatabaseProductName()
    * @param databaseProductVersion
    *           the version of the database as reported by DatabaseMetaData.getDatabaseProductVersion()
    * @return true if this dialect can be used for the specified product name and version; false otherwise.
    */
/**
         * Returns boolean value indicating whether or not this dialect supports the specified database
         * product/version.
         * 
         * @param databaseProductName
         *           the name of the database as reported by DatabaseMetaData.getDatabaseProductName()
         * @param databaseProductVersion
         *           the version of the database as reported by DatabaseMetaData.getDatabaseProductVersion()
         * @return true if this dialect can be used for the specified product name and version; false otherwise.
         */
public boolean supportsProduct(String databaseProductName, String databaseProductVersion) {
  if (databaseProductName == null) {
    return false;
  }
  if (databaseProductName. [[#variable1af8d480]](). [[#variable1af8d460]]( [[#variable1af8d540]])) {
    // We don't yet have the need to discriminate by version.
    return true;
  }
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1af8d480]]
trim 
12[[#1af8d480]]
trim 
13[[#1af8d480]]
trim 
14[[#1af8d480]]
trim 
15[[#1af8d480]]
toLowerCase 
16[[#1af8d480]]
trim 
21[[#1af8d460]]
startsWith 
22[[#1af8d460]]
startsWith 
23[[#1af8d460]]
startsWith 
24[[#1af8d460]]
startsWith 
25[[#1af8d460]]
contains 
26[[#1af8d460]]
startsWith 
31[[#1af8d540]]
"Axion" 
32[[#1af8d540]]
"DB2" 
33[[#1af8d540]]
"FrontBase" 
34[[#1af8d540]]
"H2" 
35[[#1af8d540]]
"informix" 
36[[#1af8d540]]
"Cache"