@Override public <T> T execute(final LobCreationContext.Callback<T> callback) { return getJdbcCoordinator().coordinateWork( (workExecutor, connection) -> { try { return callback.executeOnConnection( connection ); } catch (SQLException e) { throw exceptionConverter.convert( e, "Error creating contextual LOB : " + e.getMessage() ); } } ); }
@Override public <T> T execute(final LobCreationContext.Callback<T> callback) { return getJdbcCoordinator().coordinateWork( (workExecutor, connection) -> { try { return callback.executeOnConnection( connection ); } catch (SQLException e) { throw exceptionConverter.convert( e, "Error creating contextual LOB : " + e.getMessage() ); } } ); }
@Override public T accept(WorkExecutor<T> workExecutor, Connection connection) throws SQLException { try { return callback.executeOnConnection( connection ); } catch (SQLException e) { throw getFactory().getSQLExceptionHelper().convert( e, "Error creating contextual LOB : " + e.getMessage() ); } } }
@Override public T accept(WorkExecutor<T> workExecutor, Connection connection) throws SQLException { try { return callback.executeOnConnection( connection ); } catch (SQLException e) { throw getFactory().getSQLExceptionHelper().convert( e, "Error creating contextual LOB : " + e.getMessage() ); } } }
public <T> T execute(LobCreationContext.Callback<T> callback) { try { return callback.executeOnConnection( connection ); } catch ( SQLException e ) { throw new RuntimeException( "Unexpected SQLException", e ); } } }