Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How transactions are performed using JDBC ?

Answers were Sorted based on User's Feedback



How transactions are performed using JDBC ?..

Answer / devarathnam c,kotagudibanda(po

Hi... Using the following methods we can perform
transactions in JDBC
1:commit();
2:rollback();
3:setAutoCommit();These are in the Connection interface

Is This Answer Correct ?    4 Yes 0 No

How transactions are performed using JDBC ?..

Answer / ketan

transaction means two or more queries are perform
simultaneously.

1. Hence befor first query put up setAutoCommit(false);

2. now at the end of several queries performed. if you know
how much rows will affect this transaction then you can
compare it with current transaction rows.

3. if both equals then commit() and setAutoCommit to true in
else rollback() and setAutoCommit(true).

4. as well as in catch statement put rollback() and
setAutoCommit(true);

5. and in finally setAutoCommit(true).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JDBC Interview Questions

Why do we need jdbc driver?

0 Answers  


What is jdbc type?

0 Answers  


What is metadata in programming?

0 Answers  


Does jpa use jdbc?

0 Answers  


What is a jdbc connection?

0 Answers  


How to check null value in JDBC?

1 Answers   CTS,


Why do we need jdbc api?

0 Answers  


Does jdbc require oracle client?

0 Answers  


How many rowset are available in jdbc?

0 Answers  


What is xe in oracle jdbc url?

0 Answers  


What is the benefit of having jdbcrowset implementation?

0 Answers  


Hi........I need to create a dropdown box using java.....this box should show the values that should be taken from the database...... Thank you....

1 Answers  


Categories