File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java | |||
Method name: void AbstractCollectionPersister(Collection, CollectionRegionAccessStrategy, Configuration, SessionFactoryImplementor)
|
Method name: void AbstractCollectionPersister(Collection, CollectionRegionAccessStrategy, Configuration, SessionFactoryImplementor)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if ( collection.getCustomSQLDelete() == null ) {↵ | 1 | if ( collection.getCustomSQLDeleteAll() == null ) {↵ | |
2 | sqlDeleteRowString = generateDeleteRowString();↵ | 2 | sqlDeleteString = generateDeleteString();↵ | |
3 | deleteCallable = false;↵ | 3 | deleteAllCallable = false;↵ | |
4 | deleteCheckStyle = ExecuteUpdateResultCheckStyle.NONE;↵ | 4 | deleteAllCheckStyle = ExecuteUpdateResultCheckStyle.NONE;↵ | |
5 | }↵ | 5 | }↵ | |
6 | else {↵ | 6 | else {↵ | |
7 | sqlDeleteRowString = collection.getCustomSQLDelete();↵ | 7 | sqlDeleteString = collection.getCustomSQLDeleteAll();↵ | |
8 | deleteCallable = collection.isCustomDeleteCallable();↵ | 8 | deleteAllCallable = collection.isCustomDeleteAllCallable();↵ | |
9 | deleteCheckStyle = ExecuteUpdateResultCheckStyle.NONE;↵ | 9 | deleteAllCheckStyle = ExecuteUpdateResultCheckStyle.NONE;↵ | |
10 | } | 10 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.5 |
Clones location | Clones are in the same method |
Number of node comparisons | 51 |
Number of mapped statements | 7 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 31.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
154 | if (collection.getCustomSQLDelete() == null) |
| 161 | if (collection.getCustomSQLDeleteAll() == null) | |||||||||||||||
155 | sqlDeleteRowString = generateDeleteRowString(); |
| 162 | sqlDeleteString = generateDeleteString(); | |||||||||||||||
156 | deleteCallable = false; |
| 163 | deleteAllCallable = false; | |||||||||||||||
157 | deleteCheckStyle = ExecuteUpdateResultCheckStyle.NONE; |
| 164 | deleteAllCheckStyle = ExecuteUpdateResultCheckStyle.NONE; | |||||||||||||||
else | else | ||||||||||||||||||
158 | sqlDeleteRowString = collection.getCustomSQLDelete(); |
| 165 | sqlDeleteString = collection.getCustomSQLDeleteAll(); | |||||||||||||||
159 | deleteCallable = collection.isCustomDeleteCallable(); |
| 166 | deleteAllCallable = collection.isCustomDeleteAllCallable(); | |||||||||||||||
160 | deleteCheckStyle = ExecuteUpdateResultCheckStyle.NONE; |
| 167 | deleteAllCheckStyle = ExecuteUpdateResultCheckStyle.NONE; |
Row | Violation |
---|---|
1 | Expression collection.getCustomSQLDelete() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression collection.getCustomSQLDeleteAll() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression collection.isCustomDeleteCallable() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression collection.isCustomDeleteAllCallable() cannot be parameterized, because it has dependencies to/from statements that will be extracted |