Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JDBC can you explain transaction control in jcbc
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Nagendran
can you explain transaction control in jcbc
1 Answer(s)      2 years and 7 months ago
Posted in : JDBC


can you explain transaction control in jcbc


Advertisement
View Answers

May 9, 2012 at 5:26 PM


Transaction Control

Transaction control involves committing and roll backing transactions and setting Isolation level for transactions.

1) Setting the Isolation level: Using the Connection.setTransactionIsolation(int level) method isolation level can be set in JDBC. the method can accept any of the arguments listed below.

TRANSACTION_NONE
TRANSACTION_READ_COMMITTED
TRANSACTION_SERIALIZABLE
TRANSACTION_READ_UNCOMMITTED
TRANSACTION_REPEATABLE_READ

2) Committing or rolling back: To commit or roll back transactions explicitly, use the commit or rollback methods.



Related Tutorials/Questions & Answers:
can you explain ?
can you explain ?  my dear can you teel me the explaintion for this code i need it GregorianCalendar cal = new GregorianCalendar(y, m, 0...(); } } iam explain whole code exept this part can you help
Use JTA to control transaction demarcation
Use JTA to control transaction...; Use JTA to control transaction demarcation...-managed transactions. When you code a bean-managed transaction for session
Advertisements
You handle your own transaction
You handle your own transaction  How do you handle your own transaction
can any one explain this
can any one explain this  class Clidder { private final void flipper() { System.out.println("Clidder"); } } public class Ex3 extends Clidder { public final void flipper() { System.out.println
Transaction
the transaction so I need to use the TransactionProxyFactoryBean. My question is that can I...Transaction  can we apply the advises as well as the TransactionProxyFactoryBean Using AOP in the same bean... just to explain it more: lets say we
how the answer is 13 can anyone explain plz
how the answer is 13 can anyone explain plz  public class that { public static void main(String arr[]) { int i=3; int j=1; while(i<4) { //j=i; i=i+j/2; } System.out.println(i
Explain how you overcame a major obstacle
Explain how you overcame a major obstacle       Qus. Explain how you overcame a major... you see yourself five (ten or fifteen) years from now? Ans. Explain your career
Please can you help
Please can you help  I have a some code which uses a textarea comment box that will on post return the users text to the same page that they entered...; Please could you change the code so it will do this Please. Many thanks. Colin
Can you correct this codes?
Can you correct this codes?  Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 4 at searchcon.(searchcon.java:39) at search.initComponents(search.java:41) at search.(search.java:7) at payroll
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... code as example that will demonstrate how may you use the Hibernate Transaction
Java transaction
Java transaction  How do you handle your own transaction
Distributed transaction in java
, there can be many transaction branches on the transaction managet...-small; text-decoration: underline; } Distributed Transaction in java EE In distributed java enterprise application, transaction is processed
can u plz explain the http request methods - JSP-Servlet
can u plz explain the http request methods  can u plz explain http... duplicate entries in the MySQL database we can follow one of these following approach... that we have deleted. Here is the explanation with the query : To explain use we
Hibernate 4.0-nested transaction not suported
in a single transaction or creating transaction for each record insert. Can u...Hibernate 4.0-nested transaction not suported  how i do nested transaction using Hibernate 4, i know hibernate 4 does not support nested transaction
Hibernate 4.0-nested transaction not suported
in a single transaction or creating transaction for each record insert. Can u...Hibernate 4.0-nested transaction not suported  how i do nested transaction using Hibernate 4, i know hibernate 4 does not support nested transaction
Can you help me with applet?
Can you help me with applet?  I'm very new to applet, and i'm weak in graphic design part. How can i add the graphic in my test project? Can you help me with this: import java.io.*; import java.util.*; import javax.swing.
Commiting and Rolling Back transaction
call  conn.commit();. If any error occurs you can roll back your transaction...; } Rolling Back Transaction When you do any operation such as , SELECT... one transaction at a time you need to set connection object auto-commit(false
Transaction Management
Transaction Management  How are transactions managed in EJB
Menu Control in Flex4
a submenu. You can select a indivisual item from menu control. You use only Actionscript for create a pop-up Menu control. There is no MXMl tag. You can...); You can display menu contol using show() method and pass the coordinate
Can you create an object of an abstract class?
Can you create an object of an abstract class?   Hi, Can you create an object of an abstract class? Thanks
how can you say java is secure
how can you say java is secure  we are using notepad editor for Java programming which is an Microsoft product, then how can you say Java is secure when you are using Microsoft product as an editor
Can you give me Hibernate one to one example?
Can you give me Hibernate one to one example?  Hello there, Can you give me a hibernate one to one example that explain the concept and mapping in Hibernate. Thanks in advance
Can you provide me Hibernate configuration tutorial?
Can you provide me Hibernate configuration tutorial?  Hello There, I want to learn about Hibernate configuration, Can anyone provide me with hibernate configuration tutorial> Thanks
Can you instantiate the Math class? - Java Beginners
Can you instantiate the Math class?   Hi, Can you create object of Math class? Thanks   Hi, All the methods in Math class is static. The constructor is not public in the Math class. So, we can't create
how can you calculate you your age in daies??
how can you calculate you your age in daies??  **hi, I am beginner in java! can any one help me to write programm to calculate age in daies...."); } } Hope that the above code will be helpful for you. Thanks
Turning transaction off and on
; } Turning Committing Transaction Off and On When you do any operation such as , SELECT, INSERT, DELETE, or UPDATE  in database then the transaction.... To commit more than one transaction at a time you need to set connection object
How many qusetions can you ask?
How many qusetions can you ask?  Hi I was very impressed following my very first question I asked regarding some coding. However I am not sure why any further questions have not yet been answered. Is this because they are more
Can you tell me how it worked?
Can you tell me how it worked?  public class Ball { private static final int DIAMETER = 30; int x = 0; int y = 0; int xa = 1; int ya = 1; private Game game; public Ball(Game game) { this.game= game; } void move
what is Set Transaction?
transaction ends whenever you issue a COMMIT or ROLLBACK statement. Thanks...what is Set Transaction?  what is Set Transaction?   Hi, The SET TRANSACTION statement to establish the current transaction as read only
Hey neighbor, can you lend some Hammers?
Hey neighbor, can you lend some Hammers?  import java.util.Date; public class AccountProblem { public static void main(String[] args) { //create an instance object of class Stock Account myAccount = new Account
Hey neighbor, can you lend some Hammers?
Hey neighbor, can you lend some Hammers?  import java.util.Date; public class AccountProblem { public static void main(String[] args) { //create an instance object of class Stock Account myAccount = new Account
Advertisements
 

 

 

DMCA.com