O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

There's more...

Another important property of a transaction is the transaction isolation level. It defines the boundaries between database users. For example, can other users see your database changes before they are committed? The higher the isolation (the highest is serializable), the more the time it takes a transaction to complete in the case of concurrent access to the same records. The less restrictive the isolation (the least restrictive is read uncommitted), the dirtier the data; this is because other users can get the values you are not going to commit eventually.

Usually, it is enough to use the default level, which (although it may be different for different databases) is typically TRANSACTION_READ_COMMITTED. JDBC allows you to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required