public class IndexParentInfo extends DatabaseObjectInfo { private static final long serialVersionUID = 1L; public interface IPropertyNames { String SIMPLE_NAME = "simpleName"; String TABLE_INFO = "tableInfo"; } private final IDatabaseObjectInfo _tableInfo; public IndexParentInfo(IDatabaseObjectInfo tableInfo, String schema, SQLDatabaseMetaData md) throws SQLException { super(tableInfo.getCatalogName(), schema, "INDEX", DatabaseObjectType.INDEX_TYPE_DBO, md); _tableInfo = tableInfo; } public IDatabaseObjectInfo getTableInfo() { return _tableInfo
public class TriggerParentInfo extends DatabaseObjectInfo { private static final long serialVersionUID = 1L; public interface IPropertyNames { String SIMPLE_NAME = "simpleName"; String TABLE_INFO = "tableInfo"; } private final IDatabaseObjectInfo _tableInfo; public TriggerParentInfo(IDatabaseObjectInfo tableInfo, String schema, SQLDatabaseMetaData md) throws SQLException { super(tableInfo.getCatalogName(), schema, "TRIGGER", DatabaseObjectType.TRIGGER_TYPE_DBO, md); _tableInfo = tableInfo; } public IDatabaseObjectInfo getTableInfo() { return _tableInfo
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/objecttree/expanders/IndexParentInfo.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/objecttree/expanders/TriggerParentInfo.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class IndexParentInfo extends DatabaseObjectInfo
1
public class TriggerParentInfo extends DatabaseObjectInfo
2
{
2
{
3
    private static final long serialVersionUID = 1L;
3
    private static final long serialVersionUID = 1L;
4
    public interface IPropertyNames {
4
    public interface IPropertyNames {
5
        String SIMPLE_NAME = "simpleName";
5
        String SIMPLE_NAME = "simpleName";
6
        String TABLE_INFO = "tableInfo";
6
        String TABLE_INFO = "tableInfo";
7
    }
7
    }
8
    
8
    
9
	private final IDatabaseObjectInfo _tableInfo;
9
	private final IDatabaseObjectInfo _tableInfo;
10
	public IndexParentInfo(IDatabaseObjectInfo tableInfo, 
10
	public TriggerParentInfo(IDatabaseObjectInfo tableInfo, 
11
                           String schema,
11
String schema,
12
						   SQLDatabaseMetaData md)
12
								SQLDatabaseMetaData md)
13
		throws SQLException
13
		throws SQLException
14
	{
14
	{
15
		super(tableInfo.getCatalogName(), 
15
		super(tableInfo.getCatalogName(), 
16
              schema, 
16
              schema, 
17
              "INDEX", 
17
              "TRIGGER", 
18
              DatabaseObjectType.INDEX_TYPE_DBO, 
18
              DatabaseObjectType.TRIGGER_TYPE_DBO, 
19
              md);
19
              md);
20
		_tableInfo = tableInfo;
20
		_tableInfo = tableInfo;
21
	}
21
	}
22
	public IDatabaseObjectInfo getTableInfo()
22
	public IDatabaseObjectInfo getTableInfo()
23
	{
23
	{
24
		return _tableInfo
24
		return _tableInfo
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0