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 is metadata in java programming?

1090


Why do we use jdbc?

1093


what is the meaning of following code snippets Class c=class.forName(driverClassName); Driver d=(driver)c.newInstance();

5124


What do you understand by jdbc driver and explain its types?

999


What is savepoint in jdbc?

970


How do I stop nullpointerexception?

1027


What is jdbc in dbms?

1113


What are the packages are used in jdbc?

1100


Is it possible to connect to multiple databases simultaneously?

1120


What is the use of jdbc api?

1016


Explain the locking system in jdbc?

1002


What's the benefit for specifying constraints like not null, primary key explicitly instead of specifying it against the column ?

1026


What are the different classes through which JDBC represents statements?

975


How many types of resultset are there in jdbc?

1011


Why do we need jdbc?

1106