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; | |
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 | 84 |
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.query = query; | |||||||||||||||||
1 | this.positionalParameterTypes = positionalParameterTypes; | | |||||||||||||||||
2 | this.positionalParameterValues = positionalParameterValues; | | |||||||||||||||||
| 4 | this.timeout = timeout; | |||||||||||||||||
3 | this.namedParameters = namedParameters; |
| 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; |
| 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; |
| 2 | this.cacheable = cacheable; | |||||||||||||||
11 | this.resultTransformer = transformer; | |
Row | Violation |
---|---|
1 | Expression this.namedParameters is a field being modified, and thus it cannot be parameterized |
2 | Expression this.parameterTypes is a field being modified, and thus it cannot be parameterized |
3 | Expression this.cacheable is a field being modified, and thus it cannot be parameterized |
4 | Expression this.readOnly is a field being modified, and thus it cannot be parameterized |
5 | Expression this.readOnly is a field being modified, and thus it cannot be parameterized |
6 | Expression this.cacheable is a field being modified, and thus it cannot be parameterized |