1 | if ( !ignoreInitialJoin ) {↵ | | |
|
2 | JoinSequence ojf = q.getPathJoin( path.toString() );↵ | | |
|
3 | try {↵ | | |
|
4 | joinSequence.addCondition( ojf.toJoinFragment( q.getEnabledFilters(), true ).toWhereFragmentString() ); //after reset!↵ | | |
|
5 | ↵ | | 1 | try {↵
|
| | | 2 | // check to see if the connection is in auto-commit ↵
|
| | | 3 | // mode (no connection means aggressive connection↵
|
| | | 4 | // release outside a JTA transaction context, so MUST↵
|
| | | 5 | // be autocommit mode)↵
|
| | | 6 | boolean isAutocommit = connectionManager.isAutoCommit();↵
|
|
| | | 7 | connectionManager.afterTransaction();↵
|
| | | 8 | ↵
|
| | | 9 | if ( isAutocommit ) {↵
|
| | | 10 | owner.afterTransactionCompletion(success, null);↵
|
6 | }↵ | | 11 | }↵
|
7 | ↵ | | 12 | }↵
|
8 | catch ( MappingException me ) {↵ | | 13 | catch (SQLException sqle) {↵
|
9 | throw new QueryException( me );↵ | | 14 | throw ↵
|
10 | }↵ | | |
|
11 | // we don't need to worry about any condition in the ON clause↵ | | |
|
12 | // here (toFromFragmentString), since anything in the ON condition↵ | | |
|
13 | // is already applied to the whole query↵ | | |
|
14 | ↵ | | 15 | JDBCExceptionHelper.convert( ↵
|
| | | 16 | owner.getFactory().getSQLExceptionConverter(),↵
|
| | | 17 | sqle,↵
|
| | | 18 | "could not inspect JDBC autocommit mode"↵
|
| | | 19 | );↵
|
15 | } | | 20 | }
|