Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 1 | 0.985 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 160 | E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/FirebirdDialectExt.java |
2 | 13 | 122 | E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/HSQLDialectExt.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; } |
| |||||
/** * @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; } |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1c81ba80]] | "Firebird" |
1 | 2 | [[#1c81ba80]] | "HSQL" |