this.positionalParameterTypes = positionalParameterTypes; this.positionalParameterValues = positionalParameterValues; this.namedParameters = namedParameters; this.lockModes = lockModes; this.rowSelection = rowSelection; this.cacheable = cacheable; this.cacheRegion = cacheRegion; //this.forceCacheRefresh = forceCacheRefresh; this.comment = comment; this.collectionKeys = collectionKeys; this.readOnly = readOnly; this.resultTransformer = transformer;
this.query = query; this.cacheable = cacheable; this.cacheRegion = cacheRegion; this.timeout = timeout; this.fetchSize = fetchSize; this.flushMode = flushMode; this.parameterTypes = parameterTypes; this.cacheMode = cacheMode; this.readOnly = readOnly; this.comment = comment;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/QueryParameters.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/NamedQueryDefinition.java
Method name: void QueryParameters(Type[], Object[], Map, Map, RowSelection, boolean, boolean, String, String, Serializable[], ResultTransformer) Method name: void NamedQueryDefinition(String, boolean, String, Integer, Integer, FlushMode, CacheMode, boolean, String, Map)
Number of AST nodes: 11 Number of AST nodes: 10
1
this.positionalParameterTypes = positionalParameterTypes;
1
this.
2
		this.positionalParameterValues = positionalParameterValues;
3
		this.namedParameters = namedParameters;
4
		this.lockModes = lockModes;
5
		this.rowSelection = rowSelection
2
query = query;
3
		this.cacheable = cacheable;
4
		this.cacheRegion = cacheRegion;
6
;
5
		this.timeout = timeout;
7
		this.cacheable = cacheable;
6
		this.
8
		this.cacheRegion = cacheRegion
7
fetchSize = fetchSize;
9
;
8
		this.flushMode = flushMode;
10
		//this.forceCacheRefresh = forceCacheRefresh;
9
		this.parameterTypes = parameterTypes;
11
		this.comment = comment;
10
		this.c
12
		this.collectionKeys = collectionKeys;
11
acheMode = cacheMode;
13
		this.readOnly = readOnly;
12
		this.readOnly = readOnly;
14
		this.resultTransformer = transformer;
13
		this.comment = comment;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons84
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment6
    Number of unmapped statements in the second code fragment5
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
                                            
    1
    this.query = query;
    1
    this.positionalParameterTypes = positionalParameterTypes;
                                                                                                                        
    2
    this.positionalParameterValues = positionalParameterValues;
                                                                                                                            
                                                    
    4
    this.timeout = timeout;
    3
    this.namedParameters = namedParameters;
    3
    this.namedParameters = namedParameters;
    7
    this.parameterTypes = parameterTypes;
    Differences
    Expression1Expression2Difference
    namedParametersparameterTypesVARIABLE_NAME_MISMATCH
    namedParametersparameterTypesVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.namedParameters is a field being modified, and thus it cannot be parameterized
    Expression this.parameterTypes is a field being modified, and thus it cannot be parameterized
    7
    this.parameterTypes = parameterTypes;
    4
    this.lockModes = lockModes;
                                                            
                                                            
    5
    this.fetchSize = fetchSize;
    5
    this.rowSelection = rowSelection;
                                                                        
                                                            
    6
    this.flushMode = flushMode;
                                                            
    8
    this.cacheMode = cacheMode;
    6
    this.cacheable = cacheable;
    6
    this.cacheable = cacheable;
    9
    this.readOnly = readOnly;
    Differences
    Expression1Expression2Difference
    cacheablereadOnlyVARIABLE_NAME_MISMATCH
    cacheablereadOnlyVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.cacheable is a field being modified, and thus it cannot be parameterized
    Expression this.readOnly is a field being modified, and thus it cannot be parameterized
    9
    this.readOnly = readOnly;
    7
    this.cacheRegion = cacheRegion;
    3
    this.cacheRegion = cacheRegion;
    8
    this.comment = comment;
    10
    this.comment = comment;
    9
    this.collectionKeys = collectionKeys;
                                                                                
    10
    this.readOnly = readOnly;
    10
    this.readOnly = readOnly;
    2
    this.cacheable = cacheable;
    Differences
    Expression1Expression2Difference
    readOnlycacheableVARIABLE_NAME_MISMATCH
    readOnlycacheableVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.readOnly is a field being modified, and thus it cannot be parameterized
    Expression this.cacheable is a field being modified, and thus it cannot be parameterized
    2
    this.cacheable = cacheable;
    11
    this.resultTransformer = transformer;
                                                                                  
    Precondition Violations (6)
    Row Violation
    1Expression this.namedParameters is a field being modified, and thus it cannot be parameterized
    2Expression this.parameterTypes is a field being modified, and thus it cannot be parameterized
    3Expression this.cacheable is a field being modified, and thus it cannot be parameterized
    4Expression this.readOnly is a field being modified, and thus it cannot be parameterized
    5Expression this.readOnly is a field being modified, and thus it cannot be parameterized
    6Expression this.cacheable is a field being modified, and thus it cannot be parameterized