@Override public final Serializable performInsert( String insertSQL, SharedSessionContractImplementor session, Binder binder) { try { // prepare and execute the insert PreparedStatement insert = prepare( insertSQL, session ); try { binder.bindValues( insert ); return executeAndExtract( insert, session ); } finally { releaseStatement( insert, session ); } } catch (SQLException sqle) { throw session.getJdbcServices().getSqlExceptionHelper().convert( sqle, "could not insert: " + MessageHelper.infoString( persister ), insertSQL ); } }
public final Serializable performInsert(String insertSQL, SessionImplementor session, Binder binder) { try { // prepare and execute the insert PreparedStatement insert = prepare( insertSQL, session ); try { binder.bindValues( insert ); return executeAndExtract( insert ); } finally { releaseStatement( insert, session ); } } catch ( SQLException sqle ) { throw JDBCExceptionHelper.convert( session.getFactory().getSQLExceptionConverter(), sqle, "could not insert: " + MessageHelper.infoString( persister ), insertSQL ); } }
public final Serializable performInsert( String insertSQL, SessionImplementor session, Binder binder) { try { // prepare and execute the insert PreparedStatement insert = prepare( insertSQL, session ); try { binder.bindValues( insert ); return executeAndExtract( insert ); } finally { releaseStatement( insert, session ); } } catch ( SQLException sqle ) { throw session.getFactory().getSQLExceptionHelper().convert( sqle, "could not insert: " + MessageHelper.infoString( persister ), insertSQL ); } }
public final Serializable performInsert( String insertSQL, SessionImplementor session, Binder binder) { try { // prepare and execute the insert PreparedStatement insert = prepare( insertSQL, session ); try { binder.bindValues( insert ); return executeAndExtract( insert ); } finally { releaseStatement( insert, session ); } } catch ( SQLException sqle ) { throw session.getFactory().getSQLExceptionHelper().convert( sqle, "could not insert: " + MessageHelper.infoString( persister ), insertSQL ); } }
@Override public final Serializable performInsert( String insertSQL, SharedSessionContractImplementor session, Binder binder) { try { // prepare and execute the insert PreparedStatement insert = prepare( insertSQL, session ); try { binder.bindValues( insert ); return executeAndExtract( insert, session ); } finally { releaseStatement( insert, session ); } } catch (SQLException sqle) { throw session.getJdbcServices().getSqlExceptionHelper().convert( sqle, "could not insert: " + MessageHelper.infoString( persister ), insertSQL ); } }