File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/NamedQueryDefinition.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/cache/QueryKey.java | |||
Method name: void NamedQueryDefinition(String, boolean, String, Integer, Integer, FlushMode, CacheMode, boolean, String, Map)
|
Method name: void QueryKey(String, Type[], Object[], Map, Integer, Integer, Set, EntityMode, ResultTransformer)
|
|||
Number of AST nodes: 10 | Number of AST nodes: 10 | |||
1 | this.query = query;↵ | 1 | this.↵ | |
2 | this.cacheable = cacheable;↵ | |||
3 | this.cacheRegion = cacheRegion;↵ | |||
4 | this.timeout = timeout;↵ | |||
5 | this.fetchSize = fetchSize↵ | 2 | sqlQueryString = sqlQueryString;↵ | |
3 | this.positionalParameterTypes = positionalParameterTypes;↵ | |||
4 | this.positionalParameterValues = positionalParameterValues;↵ | |||
6 | ;↵ | 5 | this.namedParameters = namedParameters;↵ | |
7 | this.flushMode = flushMode;↵ | 6 | this.f↵ | |
8 | this.parameterTypes = parameterType↵ | 7 | irstRow = firstRow;↵ | |
9 | s;↵ | 8 | this.maxRows = maxRows;↵ | |
10 | this.cacheMode = cacheMode;↵ | 9 | this.entityMode = entityMode;↵ | |
11 | this.readOnly = readOnly;↵ | 10 | this.↵ | |
12 | this.comment = comment↵ | 11 | filterKeys = filterKeys;↵ | |
12 | this.customTransformer = customTransformer;↵ | |||
13 | ; | 13 | this.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 | 76 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 6 |
Number of unmapped statements in the second code fragment | 6 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | this.query = query; |
| 1 | this.sqlQueryString = sqlQueryString; | |||||||||||||||
| 2 | this.positionalParameterTypes = positionalParameterTypes; | |||||||||||||||||
2 | this.cacheable = cacheable; | | |||||||||||||||||
| 3 | this.positionalParameterValues = positionalParameterValues; | |||||||||||||||||
3 | this.cacheRegion = cacheRegion; | | |||||||||||||||||
4 | this.timeout = timeout; |
| 5 | this.firstRow = firstRow; | |||||||||||||||
5 | this.fetchSize = fetchSize; |
| 6 | this.maxRows = maxRows; | |||||||||||||||
6 | this.flushMode = flushMode; | | |||||||||||||||||
7 | this.parameterTypes = parameterTypes; |
| 4 | this.namedParameters = namedParameters; | |||||||||||||||
| 7 | this.entityMode = entityMode; | |||||||||||||||||
| 8 | this.filterKeys = filterKeys; | |||||||||||||||||
8 | this.cacheMode = cacheMode; | | |||||||||||||||||
| 9 | this.customTransformer = customTransformer; | |||||||||||||||||
9 | this.readOnly = readOnly; | | |||||||||||||||||
| 10 | this.hashCode = generateHashCode(); | |||||||||||||||||
10 | this.comment = comment; | |
Row | Violation |
---|---|
1 | Expression this.query 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.timeout is a field being modified, and thus it cannot be parameterized |
4 | Expression this.firstRow is a field being modified, and thus it cannot be parameterized |
5 | Expression this.fetchSize is a field being modified, and thus it cannot be parameterized |
6 | Expression this.maxRows is a field being modified, and thus it cannot be parameterized |
7 | Expression this.parameterTypes is a field being modified, and thus it cannot be parameterized |
8 | Expression this.namedParameters is a field being modified, and thus it cannot be parameterized |