dcsimg
ROLL BACK and COMMIT
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, July 25, 2002 12:49 AM

Please tell me how to perform roll back and commit in java.

Re: ROLL BACK and COMMIT

Posted By:   yossi_dahan  
Posted On:   Thursday, July 25, 2002 01:12 AM

fui,

U can use the methods commit() & rollback() on your Connection object 2 the database.

note that all your requests 2 the database through the Connection object are auto commited. 2 change this u can use the method setAutoCommit(boolean autoCommit) on your Connection object.

4 more info go 2 java.sql.Connection in the java API specification.
About | Sitemap | Contact