can you explain transaction control in jcbc

Ads
 

can you explain transaction control in jcbc

can you explain transaction control in jcbc

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.

Ads









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
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
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
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
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
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
Can you make AI in Python?
Can you make AI in Python?  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: Can you make... learn the topic "Can you make AI in Python?". Also tell me which
Can you build AI with Python?
Can you build AI with Python?  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: Can you... that I can learn the topic "Can you build AI with Python?". Also tell me
Can you get a job with Dataquest?
Can you get a job with Dataquest?  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: Can... so that I can learn the topic "Can you get a job with Dataquest?"
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.
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 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
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
ModuleNotFoundError: No module named 'can-you-guess'
ModuleNotFoundError: No module named 'can-you-guess'  Hi, My... 'can-you-guess' How to remove the ModuleNotFoundError: No module named 'can-you-guess' error? Thanks   Hi, In your python
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 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 become a data scientist without a degree?
Can you become a data scientist without a degree?  Hi, I am beginner... to learn: Can you become a data scientist without a degree? Try to provide me good examples or tutorials links so that I can learn the topic "Can you
How can you tell a fake data scientist?
How can you tell a fake data scientist?  Hi, I am beginner in Data...: How can you tell a fake data scientist? Try to provide me good examples or tutorials links so that I can learn the topic "How can you tell a fake data
Can you work as a data scientist from home?
Can you work as a data scientist from home?  Hi, I am beginner... to learn: Can you work as a data scientist from home? Try to provide me good examples or tutorials links so that I can learn the topic "Can you work
Can you teach yourself machine learning?
Can you teach yourself machine learning?  Hi, I am beginner in Data...: Can you teach yourself machine learning? Try to provide me good examples or tutorials links so that I can learn the topic "Can you teach yourself
Can you learn python in 2 days?
Can you learn python in 2 days?  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: Can you... that I can learn the topic "Can you learn python in 2 days?". Also
Can you work part time as a data scientist?
Can you work part time as a data scientist?  Hi, I am beginner... to learn: Can you work part time as a data scientist? Try to provide me good examples or tutorials links so that I can learn the topic "Can you work part
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
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
can you check below code if any erors
can you check below code if any erors  database.java /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template
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
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

Ads