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...

What is the purpose of setAutoCommit() ?

Answer Posted / shahnawaz sheikh

If AutoCommit is off, then any update or insert operation
perforned on database will not be reflected just after the
query is executed.Though the operation has been
successfully completed.
We will have to commit the transaction manually, to view
the incurred changes.
This also keeps user on the safer side, if some
undesirable row has been inserted,updated or deleted in the
database then it can be rollback.

While if the AutoCommit is on any update,insert or delete
are at once reflected onto the database.

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is toarray method in java?

1074


When we serialize an object does the serialization mechanism saves its references too?

1004


which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

11146


What is the difference between actual and formal parameters?

931


What is a lightweight component?

1010


What is hashset in java?

1103


How many types of memory areas are allocated by JVM in java?

1057


What isan abstract class and when do you use it?

1573


explain multi-threading in java?

1010


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

1047


How are java objects passed to a method and what are native methods?

1055


Differentiate between nested and inner class in java.

983


What is the main purpose of java?

1074


What are parameters in a method?

1081


What are the advantages of encapsulation in java?

995