File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/dialect/DB2Dialect.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/dialect/DataDirectOracle9Dialect.java | |||
Method name: ResultSet getResultSet(CallableStatement)
|
Method name: ResultSet getResultSet(CallableStatement)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | boolean isResultSet = ps.execute();↵ | 1 | boolean isResultSet = ps.execute();↵ | |
2 | //↵ | 2 | ↵ | |
3 | This assumes you will want to ignore any update counts ↵ | 3 | // This assumes you will want to ignore any update counts ↵ | |
4 | while (!isResultSet && ps.getUpdateCount() != -1) {↵ | 4 | while (!isResultSet && ps.getUpdateCount() != -1) { ↵ | |
5 | isResultSet = ps.getMoreResults();↵ | 5 | isResultSet = ps.getMoreResults(); ↵ | |
6 | }↵ | 6 | } ↵ | |
7 | ResultSet rs = ps.getResultSet();↵ | 7 | ResultSet rs = ps.getResultSet();↵ | |
8 | //↵ | 8 | ↵ | |
9 | You may still have other ResultSets or update counts left to process here ↵ | 9 | // You may still have other ResultSets or update counts left to process here ↵ | |
10 | // but you can't do it now or the ResultSet you just got will be closed ↵ | 10 | // but you can't do it now or the ResultSet you just got will be closed ↵ | |
11 | return rs; | 11 |
| |
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 13 |
Number of mapped statements | 5 |
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) | 1.2 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | boolean isResultSet = ps.execute(); | 1 | boolean isResultSet = ps.execute(); | |
2 | while (!isResultSet && ps.getUpdateCount() != -1) | 2 | while (!isResultSet && ps.getUpdateCount() != -1) | |
3 | isResultSet = ps.getMoreResults(); | 3 | isResultSet = ps.getMoreResults(); | |
4 | ResultSet rs = ps.getResultSet(); | 4 | ResultSet rs = ps.getResultSet(); | |
5 | return rs; | 5 | return rs; |
Row | Violation |
---|