• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDBC Transaction Management

 
Dhayakar Tulasi
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to handle TransactionManagement in JDBC?

How to handle batch statements in JDBC?

How to define the save point in batch statements and how to rollback the transaction to particular save point?

Please explain....
 
Rob Spoor
Sheriff
Posts: 20831
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dhayakar Tulasi wrote:How to handle TransactionManagement in JDBC?

Look for methods in java.sql.Connection regarding committing and rolling back.

How to handle batch statements in JDBC?

Look for methods in java.sql.Statement and java.sql.PreparedStatement regarding batches.

How to define the save point in batch statements and how to rollback the transaction to particular save point?

Look for methods in java.sql.Connection regarding save points and rolling back.
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd also suggest reading Oracle's JDBC tutorial. It's an excellent resource.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!