public void initStatement(PreparedStatement ps, long id) throws SQLException {
ps.setLong( 1, id );
ps.setString( 2, "autor" + id );
}
} );
batchSupport.execute( "insert into book(id, title, summary, rating, totalSold, publicationDate) values(?, ?, ?, ?, ?, ?)", initialBookCount,
new BatchCallback() {
@Override
public void initStatement(PreparedStatement ps, long id) throws SQLException {
ps.setLong( 1, id );
ps.setString( 2, "title" + id );