CloneSet335


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
58220.990class_body_declarations[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
155138
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/InterbaseDialectExt.java
258127
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/SQLServerDialectExt.java
Next
Last
Clone Instance
1
Line Count
55
Source Line
138
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/InterbaseDialectExt.java

/**
 * @see net.sourceforge.squirrel_sql.fw.dialects.CommonHibernateDialect#getMaxScale(int)
 */
@Override public int getMaxScale(int dataType) {
  return getMaxPrecision(dataType);
}

/**
 * @see net.sourceforge.squirrel_sql.fw.dialects.CommonHibernateDialect#getPrecisionDigits(int, int)
 */
@Override public int getPrecisionDigits(int columnSize, int dataType) {
  return columnSize;
}

/**
 * @see net.sourceforge.squirrel_sql.fw.dialects.CommonHibernateDialect#getColumnLength(int, int)
 */
@Override public int getColumnLength(int columnSize, int dataType) {
  return columnSize;
}

/**
 * The string which identifies this dialect in the dialect chooser.
 * 
 * @return a descriptive name that tells the user what database this dialect is design to work with.
 */
@Override public String getDisplayName() {
  return "Interbase";
}

/**
 * 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().toLowerCase().startsWith("interbase")) {
    // We don't yet have the need to discriminate by version.
    return true;
  }
  return false;
}


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

/**
 * @see net.sourceforge.squirrel_sql.fw.dialects.SybaseDialectExt#getMaxScale(int)
 */
@Override public int getMaxScale(int dataType) {
  return getMaxPrecision(dataType);
}

/**
 * @see net.sourceforge.squirrel_sql.fw.dialects.SybaseDialectExt#getPrecisionDigits(int, int)
 */
@Override public int getPrecisionDigits(int columnSize, int dataType) {
  return columnSize;
}

/**
 * @see net.sourceforge.squirrel_sql.fw.dialects.SybaseDialectExt#getColumnLength(int, int)
 */
@Override public int getColumnLength(int columnSize, int dataType) {
  return columnSize;
}

/**
 * The string which identifies this dialect in the dialect chooser.
 * 
 * @return a descriptive name that tells the user what database this dialect is design to work with.
 */
@Override public String getDisplayName() {
  return "MS SQLServer";
}

/**
 * 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().toLowerCase().startsWith("microsoft")) {
    // We don't yet have the need to discriminate by version.
    return true;
  }
  return false;
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * @see net.sourceforge.squirrel_sql.fw.dialects.SybaseDialectExt#getMaxScale(int)
         */
/**
         * @see net.sourceforge.squirrel_sql.fw.dialects.CommonHibernateDialect#getMaxScale(int)
         */
@Override public int getMaxScale(int dataType) {
  return getMaxPrecision(dataType);
}

/**
         * @see net.sourceforge.squirrel_sql.fw.dialects.SybaseDialectExt#getPrecisionDigits(int, int)
         */
/**
         * @see net.sourceforge.squirrel_sql.fw.dialects.CommonHibernateDialect#getPrecisionDigits(int, int)
         */
@Override public int getPrecisionDigits(int columnSize, int dataType) {
  return columnSize;
}

/**
         * @see net.sourceforge.squirrel_sql.fw.dialects.SybaseDialectExt#getColumnLength(int, int)
         */
/**
         * @see net.sourceforge.squirrel_sql.fw.dialects.CommonHibernateDialect#getColumnLength(int, int)
         */
@Override public int getColumnLength(int columnSize, int dataType) {
  return columnSize;
}

/**
         * The string which identifies this dialect in the dialect chooser.
         * 
         * @return a descriptive name that tells the user what database this dialect is design to work with.
         */
@Override public String getDisplayName() {
  return [[#variable1af801e0]];
}

/**
         * 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().toLowerCase().startsWith( [[#variable1af80120]])) {
    // 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[[#1af801e0]]
"Interbase" 
12[[#1af801e0]]
"MS SQLServer" 
21[[#1af80120]]
"interbase" 
22[[#1af80120]]
"microsoft"