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 ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What does setautocommit do?

960


Is jdbc and orm?

913


What is metadata in jdbc?

975


What does the jdbc resultsetmetadata interface?

932


How can you create jdbc statements?

949


Is jdbc a framework?

879


What are the jdbc statements?

966


What protocol does jdbc use?

953


What is JDBC DataSource and what are it’s benefits?

1189


How can we set null value in jdbc preparedstatement?

949


Is jdbc connection secure?

932


What is the most common example type 1 driver?

1016


What are the standard isolation levels defined by JDBC?

1106


How do I set properties for a JDBC driver and where are the properties stored?

948


What are the packages are used in jdbc?

1023