You handle your own transaction

You handle your own transaction

How do you handle your own transaction ?

View Answers

November 12, 2010 at 5:34 PM

Hi friends,

Connection Object has a method called setAutocommit(Boolean istrue) - Default is true. Set the Parameter to false, and begin your transaction Example:

Connection con = getConnection();

con.setAutocommit(false);

//other code

con.commit();

con.close();

Thanks.









Related Tutorials/Questions & Answers:
You handle your own transaction
You handle your own transaction  How do you handle your own transaction
Importing Your Own Package
Importing Your Own Package  I would like to know if it is possible to create a class with your own methods so that you can import them when writing programs
Advertisements
Java transaction
Java transaction  How do you handle your own transaction
How to handle Transaction IN and OUT in Inventory using java
How to handle Transaction IN and OUT in Inventory using java  Hi... automatically on load. This is the process for Transaction IN. We scan the items again... dt.of.out transaction,90 respectively. This is the process of OUT Transaction
Creating your own package in java
the real classes in the package. To know more about how to create own package and subpackage click on the following links Create Your Own Package Create
Create your own Notepad in Java
Create your own Notepad in Java           You must have worked with Notepad to write programs. Now its turn to create notepad by own with the help of java language
What is "Bring Your Own Device" (BYOD)?
What is "Bring Your Own Device" (BYOD)? Bring your own device or as commonly... of desktops all over the world in an unprecedented way. By referring to bring your own... is referred as bring your own device or BYOD policy. Here we would see various
How can you handle form in Spring 3.2 MVC?
How can you handle form in Spring 3.2 MVC?  Hi, How can you handle... the How can you handle form in Spring 3.2 MVC?   Hi, This article.... For more please visit the How can you handle form in Spring 3.2 MVC
ModuleNotFoundError: No module named 'handle'
; error? Thanks   Hi, In your python environment you have to install padas library. You can install handle python with following command...ModuleNotFoundError: No module named 'handle'  Hi, My Python
Website Development Applications ? Design Your Own Website At The Drop Of A Hat
you can get started on your own. Easy to use templates Even with the basics.... This will provide the basic structure that you can use. You just have to add your own text... will have your own website up and running. You can see the benefits that website
Transaction
the transaction so I need to use the TransactionProxyFactoryBean. My question is that can I use the advice as well as the spring provided transaction in the same person bean as a AOP. I don't want to write the code for transaction, just want
Create Your Own Package
Create Your Own Package      ...:\mypackage>javac HelloWorld.java Run the program. If you try to run this program, you will get the following exceptions (or error): C
ModuleNotFoundError: No module named 'config-handle'
'config-handle' error? Thanks   Hi, In your python environment you have to install padas library. You can install config-handle python...ModuleNotFoundError: No module named 'config-handle'  Hi, My
ModuleNotFoundError: No module named 'doc-handle'
-handle' error? Thanks   Hi, In your python environment you have to install padas library. You can install doc-handle python...ModuleNotFoundError: No module named 'doc-handle'  Hi, My Python
ModuleNotFoundError: No module named 'config-handle'
'config-handle' error? Thanks   Hi, In your python environment you have to install padas library. You can install config-handle python...ModuleNotFoundError: No module named 'config-handle'  Hi, My
ModuleNotFoundError: No module named 'doc-handle'
-handle' error? Thanks   Hi, In your python environment you have to install padas library. You can install doc-handle python...ModuleNotFoundError: No module named 'doc-handle'  Hi, My Python
What would you rate as your greatest weaknesses?
What would you rate as your greatest weaknesses... that you do not really see any drawback in your background that might affect... if you have any serious imbalances in your personal life. It is also possible
how can you calculate you your age in daies??
how can you calculate you your age in daies??  **hi, I am beginner...); System.out.print("Enter day of your date of birth: "); int day=input.nextInt(); System.out.print("Enter month(in number) of your date of birth
When you look back on the position you held last, do you think you have done your best in it?
; If you say that you did, it could mean that your best is already... don’t give your all to the work at hand. You should therefore indicate that you always put in your best efforts. Also show that this time of your career
How to Handle Event Handlers?
How to Handle Event Handlers?  How to Handle Event Handlers
ModuleNotFoundError: No module named 'link-jam-handle'
'link-jam-handle' error? Thanks   Hi, In your python environment you have to install padas library. You can install link-jam-handle...ModuleNotFoundError: No module named 'link-jam-handle'  Hi, My
ModuleNotFoundError: No module named 'vk-handle-bot'
'vk-handle-bot' error? Thanks   Hi, In your python environment you have to install padas library. You can install vk-handle-bot python...ModuleNotFoundError: No module named 'vk-handle-bot'  Hi, My
ModuleNotFoundError: No module named 'acdh-django-handle'
named 'acdh-django-handle' How to remove the ModuleNotFoundError: No module named 'acdh-django-handle' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'acdh-django-handle'  Hi, My
ModuleNotFoundError: No module named 'handle-missing-values'
, In your python environment you have to install padas library. You can...ModuleNotFoundError: No module named 'handle-missing-values'  Hi...: No module named 'handle-missing-values' How to remove the ModuleNotFoundError
ModuleNotFoundError: No module named 'link-jam-handle'
'link-jam-handle' error? Thanks   Hi, In your python environment you have to install padas library. You can install link-jam-handle...ModuleNotFoundError: No module named 'link-jam-handle'  Hi, My
ModuleNotFoundError: No module named 'vk-handle-bot'
'vk-handle-bot' error? Thanks   Hi, In your python environment you have to install padas library. You can install vk-handle-bot python...ModuleNotFoundError: No module named 'vk-handle-bot'  Hi, My
ModuleNotFoundError: No module named 'handle-missing-csv'
named 'handle-missing-csv' error? Thanks   Hi, In your python environment you have to install padas library. You can install handle...ModuleNotFoundError: No module named 'handle-missing-csv'  Hi, My
Your competitor presses you to reveal some confidential information about your current or previous employer.
Situation: Your competitor presses you to reveal some confidential.../current employer has placed on you, just as the interviewer would expect their own employees to behave while talking with their competitors. Whenever your own
what is Set Transaction?
statement affect only your current transaction, not other users or other transactions. Your transaction ends whenever you issue a COMMIT or ROLLBACK statement...what is Set Transaction?  what is Set Transaction?   Hi
ModuleNotFoundError: No module named 'transaction'
;transaction' error? Thanks   Hi, In your python environment you have to install padas library. You can install transaction python...ModuleNotFoundError: No module named 'transaction'  Hi, My Python
iphone handle orientation change
iphone handle orientation change   How can i handle the orientation change in iPhone / iPad application? Please suggest. Thank in Advance
ModuleNotFoundError: No module named 'own-blockchain-sdk'
named 'own-blockchain-sdk' error? Thanks   Hi, In your python environment you have to install padas library. You can install own...ModuleNotFoundError: No module named 'own-blockchain-sdk'  Hi, My
class with in its own objects?
class with in its own objects?  Is it a good idea to declare a class with in its own objects
java exception handle
java exception handle  How error can be handled in the exception class?? can we handle fatal error in java
Own tag in XML
Own tag in XML  Hi.... Does XML let me make up my own tags? please anyone give the answerADS_TO_REPLACE_1 Thanks
JSP handle runtime exceptions
JSP handle runtime exceptions  How does JSP handle runtime exceptions?   Using errorPage attribute of page directive and also we need to specify isErrorPage=true if the current page is intended to URL redirecting
Making own SDK - MobileApplications
Making own SDK  Hi all, I am trying to make my own universal installer for installing the JavaME mobile application to all the phones supports java.For this where from i start to think
how to handle MySQLIntegrityConstraintViolationException?
how to handle MySQLIntegrityConstraintViolationException?  Cannot add or update a child row: a foreign key constraint fails (outerdb.outerpatient, CONSTRAINT outerpatient_ibfk_1 FOREIGN KEY (xrayno) REFERENCES xray (xrayno
Hibernate Transaction
Hibernate Transaction In this tutorial you will learn about the Transaction in Hibernate. In transaction multiple operations are gathered into a single unit... exceptions, are FATAL. In this case transaction is need to be rolled back
How to handle enter key in javascript
How to handle enter key in javascript  Can any one tell me how to handle the enter key event on a Button in HTML. Like in my simple HTML page i want... of button.   Enter key event in html JavaScript This is very simple. You
Would you initialize your strings with single quotes or double quotes?
Would you initialize your strings with single quotes or double quotes?  Would you initialize your strings with single quotes or double quotes
Why you are not getting value from your data science?
Why you are not getting value from your data science?  Hi, I am... for the tutorials to learn: Why you are not getting value from your data science? Try...;Why you are not getting value from your data science?". Also tell me which
JSP handle run-time exceptions
JSP handle run-time exceptions  How does JSP handle run-time exceptions?   You can use the errorPage attribute of the page directive to have uncaught run-time exceptions automatically forwarded to an error processing
Maven Dependency commons-transaction >> 1.2
You should include the dependency code given in this page to add Maven Dependency of commons-transaction >> commons-transaction version1.2 in your project
Keep Your Current Job While You Seek a New One
Keep Your Current Job While You Seek a New One  .... You need to put across your resume and be available for talks, and do... continue to perform well as long as you are in your current job. Here are a few
creating a own interceptor - Struts
creating a own interceptor   i want to create own interceptor how i will create and which class i want implement  Hi friend, Interceptors: An intercept is a method used to intercept a business method
Struts2.2.1 handle multiple Submits in your application
Struts2.2.1  handle multiple Submits in your application  ...;body> Thank you. We will ship your order within 3 days.<br>.... The following Example will shows how to handle the multiple Submits in the Struts2.2.1
ModuleNotFoundError: No module named 'transaction-test'
named 'transaction-test' error? Thanks   Hi, In your python environment you have to install padas library. You can install transaction...ModuleNotFoundError: No module named 'transaction-test'  Hi, My
ModuleNotFoundError: No module named 'drf-transaction'
'drf-transaction' error? Thanks   Hi, In your python environment you have to install padas library. You can install drf-transaction...ModuleNotFoundError: No module named 'drf-transaction'  Hi, My
ModuleNotFoundError: No module named 'kb_transaction'
'kb_transaction' error? Thanks   Hi, In your python environment you have to install padas library. You can install kb_transaction...ModuleNotFoundError: No module named 'kb_transaction'  Hi, My

Ads