CloneSet325


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6430.951method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16240
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/H2DialectExt.java
25294
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/InformixDialectExt.java
35257
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/IngresDialectExt.java
46304
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/SybaseDialectExt.java
Next
Last
Clone Instance
1
Line Count
6
Source Line
240
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/H2DialectExt.java

/**
 * Returns the SQL used to alter the nullability of the specified column ALTER TABLE tableName ALTER COLUMN
 * columnName dataType [DEFAULT expression] [NOT [NULL]]
 * 
 * @param info
 *           the column to modify
 * @return the SQL to execute
 */
public String[] getColumnNullableAlterSQL(TableColumnInfo info, DatabaseObjectQualifier qualifier, SqlGenerationPreferences prefs) {
  String alterClause = DialectUtils.ALTER_COLUMN_CLAUSE;
  return new String[] {
                        DialectUtils.getColumnNullableAlterSQL(info, this, alterClause, true, qualifier, prefs)
                      };
}


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

/**
 * Returns the SQL used to alter the specified column to not allow null values
 * 
 * @param info
 *           the column to modify
 * @return the SQL to execute
 */
public String[] getColumnNullableAlterSQL(TableColumnInfo info, DatabaseObjectQualifier qualifier, SqlGenerationPreferences prefs) {
  String alterClause = DialectUtils.MODIFY_CLAUSE;
  return new String[] {
                        DialectUtils.getColumnNullableAlterSQL(info, this, alterClause, true, qualifier, prefs)
                      };
}


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

/**
 * @see net.sourceforge.squirrel_sql.fw.dialects.CommonHibernateDialect#getColumnNullableAlterSQL(net.sourceforge.squirrel_sql.fw.sql.TableColumnInfo,
 *      net.sourceforge.squirrel_sql.fw.dialects.DatabaseObjectQualifier,
 *      net.sourceforge.squirrel_sql.fw.dialects.SqlGenerationPreferences)
 */
public String[] getColumnNullableAlterSQL(TableColumnInfo info, DatabaseObjectQualifier qualifier, SqlGenerationPreferences prefs) {
  String alterClause = DialectUtils.ALTER_COLUMN_CLAUSE;
  return new String[] {
                        DialectUtils.getColumnNullableAlterSQL(info, this, alterClause, true, qualifier, prefs)
                      };
}


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

/**
 * Returns the SQL used to alter the specified column to not allow null values alter table table_name
 * modify column_name not null
 * 
 * @param info
 *           the column to modify
 * @return the SQL to execute
 */
@Override public String[] getColumnNullableAlterSQL(TableColumnInfo info, DatabaseObjectQualifier qualifier, SqlGenerationPreferences prefs) {
  String alterClause = DialectUtils.MODIFY_CLAUSE;
  return new String[] {
                        DialectUtils.getColumnNullableAlterSQL(info, this, alterClause, false, qualifier, prefs)
                      };
}


Clone AbstractionParameter Count: 3Parameter Bindings

 [[#variable18df8120]]String[] getColumnNullableAlterSQL(TableColumnInfo info, DatabaseObjectQualifier qualifier, SqlGenerationPreferences prefs) {
  String alterClause = DialectUtils. [[#variable18df80a0]];
  return new String[] {
                        DialectUtils.getColumnNullableAlterSQL(info, this, alterClause,  [[#variable18df8000]], qualifier, prefs)
                      };
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18df8120]]
/**
 * Returns the SQL used to alter the nullability of the specified column ALTER TABLE tableName ALTER COLUMN
 * columnName dataType [DEFAULT expression] [NOT [NULL]]
 * 
 * @param info
 *           the column to modify
 * @return the SQL to execute
 */
public 
12[[#18df8120]]
/**
 * Returns the SQL used to alter the specified column to not allow null values
 * 
 * @param info
 *           the column to modify
 * @return the SQL to execute
 */
public 
13[[#18df8120]]
/**
 * @see net.sourceforge.squirrel_sql.fw.dialects.CommonHibernateDialect#getColumnNullableAlterSQL(net.sourceforge.squirrel_sql.fw.sql.TableColumnInfo,
 *      net.sourceforge.squirrel_sql.fw.dialects.DatabaseObjectQualifier,
 *      net.sourceforge.squirrel_sql.fw.dialects.SqlGenerationPreferences)
 */
public 
14[[#18df8120]]
/**
 * Returns the SQL used to alter the specified column to not allow null values alter table table_name
 * modify column_name not null
 * 
 * @param info
 *           the column to modify
 * @return the SQL to execute
 */
@Override public 
21[[#18df80a0]]
ALTER_COLUMN_CLAUSE 
22[[#18df80a0]]
MODIFY_CLAUSE 
23[[#18df80a0]]
ALTER_COLUMN_CLAUSE 
24[[#18df80a0]]
MODIFY_CLAUSE 
31[[#18df8000]]
true 
32[[#18df8000]]
true 
33[[#18df8000]]
true 
34[[#18df8000]]
false