public static void doIsolatedWork(IsolatedWork work, SessionImplementor session) throws HibernateException {
boolean isJta = session.getFactory().getTransactionManager() != null;
if ( isJta ) {
new JtaDelegate( session ).delegateWork( work, true );
}
else {
new JdbcDelegate( session ).delegateWork( work, true );
public static void doNonTransactedWork(IsolatedWork work, SessionImplementor session) throws HibernateException {
boolean isJta = session.getFactory().getTransactionManager() != null;
if ( isJta ) {
new JtaDelegate( session ).delegateWork( work, false );
}
else {
new JdbcDelegate( session ).delegateWork( work, false );
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/transaction/Isolater.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/transaction/Isolater.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public static void doIsolatedWork(IsolatedWork work, SessionImplementor session) throws HibernateException {↵ | | 1 | public static void doNonTransactedWork(IsolatedWork work, SessionImplementor session) throws HibernateException {↵
|
2 | boolean isJta = session.getFactory().getTransactionManager() != null;↵ | | 2 | boolean isJta = session.getFactory().getTransactionManager() != null;↵
|
3 | if ( isJta ) {↵ | | 3 | if ( isJta ) {↵
|
4 | new JtaDelegate( session ).delegateWork( work, true );↵ | | 4 | new JtaDelegate( session ).delegateWork( work, false );↵
|
5 | }↵ | | 5 | }↵
|
6 | else {↵ | | 6 | else {↵
|
7 | new JdbcDelegate( session ).delegateWork( work, true );↵ | | 7 | new JdbcDelegate( session ).delegateWork( work, false );↵
|
8 | | | 8 |
|
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 | |
Number of node comparisons | 0 |