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/cache/QueryKey.java | |||
Method name: void QueryParameters(Type[], Object[], Map, Map, RowSelection, boolean, boolean, String, String, Serializable[], ResultTransformer)
|
Method name: void QueryKey(String, Type[], Object[], Map, Integer, Integer, Set, EntityMode, ResultTransformer)
|
|||
Number of AST nodes: 11 | Number of AST nodes: 10 | |||
1 | this.sqlQueryString = sqlQueryString;↵ | |||
1 | this.positionalParameterTypes = positionalParameterTypes;↵ | 2 | this.positionalParameterTypes = positionalParameterTypes;↵ | |
2 | this.positionalParameterValues = positionalParameterValues;↵ | 3 | this.positionalParameterValues = positionalParameterValues;↵ | |
3 | this.namedParameters = namedParameters;↵ | 4 | this.namedParameters = namedParameters;↵ | |
4 | this.lockModes = lockModes;↵ | 5 | this.↵ | |
5 | this.rowSelection = rowSelection;↵ | |||
6 | this.cacheable = cacheable;↵ | |||
7 | this.cacheRegion = cacheRegion↵ | 6 | firstRow = firstRow;↵ | |
7 | this.maxRows = maxRows;↵ | |||
8 | ;↵ | 8 | this.entityMode = entityMode;↵ | |
9 | //this.forceCacheRefresh = forceCacheRefresh;↵ | 9 | this.f↵ | |
10 | this.comment = comment;↵ | |||
11 | this.collectionKeys = collectionKeys↵ | 10 | ilterKeys = filterKeys;↵ | |
12 | ;↵ | 11 | this.customTransformer = customTransformer;↵ | |
13 | this.readOnly = readOnly;↵ | 12 | this.↵ | |
14 | this.resultTransformer = transformer; | 13 | hashCode = generateHashCode(); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 83 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 6 |
Number of unmapped statements in the second code fragment | 5 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | this.positionalParameterTypes = positionalParameterTypes; | 2 | this.positionalParameterTypes = positionalParameterTypes; | ||||||||||||||||
2 | this.positionalParameterValues = positionalParameterValues; | 3 | this.positionalParameterValues = positionalParameterValues; | ||||||||||||||||
3 | this.namedParameters = namedParameters; | 4 | this.namedParameters = namedParameters; | ||||||||||||||||
4 | this.lockModes = lockModes; | | |||||||||||||||||
5 | this.rowSelection = rowSelection; | | |||||||||||||||||
6 | this.cacheable = cacheable; | | |||||||||||||||||
7 | this.cacheRegion = cacheRegion; |
| 1 | this.sqlQueryString = sqlQueryString; | |||||||||||||||
| 5 | this.firstRow = firstRow; | |||||||||||||||||
| 6 | this.maxRows = maxRows; | |||||||||||||||||
| 7 | this.entityMode = entityMode; | |||||||||||||||||
| 8 | this.filterKeys = filterKeys; | |||||||||||||||||
8 | this.comment = comment; | | |||||||||||||||||
9 | this.collectionKeys = collectionKeys; | | |||||||||||||||||
10 | this.readOnly = readOnly; | | |||||||||||||||||
11 | this.resultTransformer = transformer; |
| 9 | this.customTransformer = customTransformer; | |||||||||||||||
| 10 | this.hashCode = generateHashCode(); |
Row | Violation |
---|---|
1 | Expression this.cacheRegion is a field being modified, and thus it cannot be parameterized |
2 | Expression this.sqlQueryString is a field being modified, and thus it cannot be parameterized |
3 | Expression this.resultTransformer is a field being modified, and thus it cannot be parameterized |
4 | Expression this.customTransformer is a field being modified, and thus it cannot be parameterized |