if ( !ignoreInitialJoin ) {
JoinSequence ojf = q.getPathJoin( path.toString() );
try {
joinSequence.addCondition( ojf.toJoinFragment( q.getEnabledFilters(), true ).toWhereFragmentString() ); //after reset!
}
catch ( MappingException me ) {
throw new QueryException( me );
}
// we don't need to worry about any condition in the ON clause
// here (toFromFragmentString), since anything in the ON condition
// is already applied to the whole query
}
boolean isAutocommit = connectionManager.isAutoCommit();
connectionManager.afterTransaction();
if ( isAutocommit ) {
owner.afterTransactionCompletion(success, null);
}
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/hql/classic/PathExpressionParser.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/jdbc/JDBCContext.java
|
Method name: void token(String, QueryTranslatorImpl)
|
|
Method name: void afterNontransactionalQuery(boolean)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if ( !ignoreInitialJoin ) {↵ | | |
|
2 | JoinSequence ojf = q.getPathJoin( path.toString() );↵ | | |
|
3 | try {↵ | | |
|
4 | joinSequence.addCondition( ojf.toJoinFragment( q.getEnabledFilters(), true ).toWhereFragmentString() ); //after reset!↵ | | 1 | boolean isAutocommit = connectionManager.isAutoCommit();↵
|
|
| | | 2 | connectionManager.afterTransaction();↵
|
5 | }↵ | | 3 | ↵
|
6 | catch ( MappingException me ) {↵ | | 4 | if ( isAutocommit ) {↵
|
7 | throw new QueryException( me );↵ | | 5 | owne↵
|
8 | }↵ | | |
|
9 | // we don't need to worry about any condition in the ON clause↵ | | |
|
10 | // here (toFromFragmentString), since anything in the ON condition↵ | | |
|
11 | // is already applied to the whole query↵ | | 6 | r.afterTransactionCompletion(success, null);↵
|
12 | } | | 7 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |