what is meant by Transaction Isolation Levels?
Answers were Sorted based on User's Feedback
Answer / shraddha
Connection.setTransactionIsolation (level)
TRANSACTION_READ_UNCOMMITTED Allows dirty reads, non-
repeatable reads, and phantom reads to occur.
TRANSACTION_READ_COMMITTED Ensures only committed data
can be read.
TRANSACTION_REPEATABLE_READ Is close to
being "serializable," however, "phantom" reads are possible.
TRANSACTION_SERIALIZABLE Dirty reads, non-repeatable
reads, and phantom reads are prevented. Serializable.
A "phantom" read occurs when one transaction reads all rows
that satisfy a WHERE condition, and a second transaction
inserts a row that satisfies that WHERE condition, the
first transaction then rereads for the same condition,
retrieving the additional "phantom" row in the second read.
In addition, JDBC defines an additional constant,
TRANSACTION_NONE, which is used to indicate that the driver
does not support transactions.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / arghya
To avoid potential conflicts that can arise when two transaction are operating on a database at the same time, we use some transaction isolation level using conn.setTransactionIsolation().
| Is This Answer Correct ? | 0 Yes | 1 No |
What is generic servlet class?
What do you mean by httpservlet and how it is different from the genericservlet?
what is the difference between Servlet and JSP?Advantage of JSP over Servelt?Any concept present in JSP which we cant implement in Servlet?
31 Answers ABC, Apere, AZTEC, CTS, CybAge, iFlex, Impact Systems, Sara, TCS,
Why the concept of single thread model interface is used?
Hi friends, am newbie to servlet. My interviewer asked why used servlet in your application. i used servlet for controller logic and business logic . is it correct ?
How to read request headers from servlets?
Explain Action Servlet?
Which event is fired at the time of session creation and destroy?
Can we call destroy() method inside the init() method? What happens when we do so?
What do you mean by scope object and what are its types?
What is the difference between servlet config and servlet context.
19 Answers TCS, Tech Mahindra, Vertex,
How is a servlet implemented in code?