CloneSet1249


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13210.985method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113160
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/FirebirdDialectExt.java
213122
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/HSQLDialectExt.java
Next
Last
Clone Instance
1
Line Count
13
Source Line
160
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/FirebirdDialectExt.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.
 */
@Override public boolean supportsProduct(String databaseProductName, String databaseProductVersion) {
  if (databaseProductName == null) {
    return false;
  }
  if (databaseProductName.trim().startsWith("Firebird")) {
    // We don't yet have the need to discriminate by version.
    return true;
  }
  return false;
}


First
Previous
Clone Instance
2
Line Count
13
Source Line
122
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/HSQLDialectExt.java

/**
 * @see net.sourceforge.squirrel_sql.fw.dialects.CommonHibernateDialect#supportsProduct(java.lang.String,
 *      java.lang.String)
 */
@Override public boolean supportsProduct(String databaseProductName, String databaseProductVersion) {
  if (databaseProductName == null) {
    return false;
  }
  if (databaseProductName.trim().startsWith("HSQL")) {
    // We don't yet have the need to discriminate by version.
    return true;
  }
  return false;
}


Clone AbstractionParameter Count: 1Parameter 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.
         */
/**
         * @see net.sourceforge.squirrel_sql.fw.dialects.CommonHibernateDialect#supportsProduct(java.lang.String,
         *      java.lang.String)
         */
@Override public boolean supportsProduct(String databaseProductName, String databaseProductVersion) {
  if (databaseProductName == null) {
    return false;
  }
  if (databaseProductName.trim().startsWith( [[#variable1c81ba80]])) {
    // 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[[#1c81ba80]]
"Firebird" 
12[[#1c81ba80]]
"HSQL"