• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/8

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

8 Cards in this Set

  • Front
  • Back
Write begin and rollback transaction code
Session session = sessions.openSession();
Transaction tx = null;
try {
tx = session.beginTransaction();
concludeAction();
tx.commit();
}catch (Exception e) {
if (tx != null) {
try {
tx.rollback();
}catch(HibernateException he) {
//log & rethrow e;
}
}
throw e;
}finally{
try {
session.close();
}catch(Hibernate he) {
throw he;
}
}
For transaction, what is Atomic?
Atomic: Several operations are grouped together as a single indivisible unit.
For transaction, what is Consistency?
Any transaction works with a consistent set of data and leaves the data in a consistent state when the transaction completes.
For transaction, what is Isolation?
Transactions allow multiple users to work concurrently with the same data without compromising the integrity and correctness of the data; a particular transaction shouldn't be visible to an shouldn't influence other concurrently running transactions.
For transaction, what is durability?
Once a transaction completes, all changes made during that transaction become persistent state when the transaction completes.
What are the isolation issues?
Lost update; Dirty read; Unrepeatable read; Second lost updates problem; Phantom read
What are the isolation levels?
Read uncommitted; Read committed; Repeatable read; Serializable.
What is database schema?
The objects in a relational database are organized into sets called schemas. A schema is a collection of named objects. The first part of a schema name is the qualifier.