[hibernate-commits] Hibernate SVN: r11176 - branches/Branch_3_2/Hibernate3/src/org/hibernate/dialect.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Fri Feb 9 10:21:47 EST 2007
Author: steve.ebersole at jboss.com
Date: 2007-02-09 10:21:47 -0500 (Fri, 09 Feb 2007)
New Revision: 11176
Modified:
branches/Branch_3_2/Hibernate3/src/org/hibernate/dialect/Dialect.java
Log:
added reader-blocks-writer and writer-blocks-reader info methods
Modified: branches/Branch_3_2/Hibernate3/src/org/hibernate/dialect/Dialect.java
===================================================================
--- branches/Branch_3_2/Hibernate3/src/org/hibernate/dialect/Dialect.java 2007-02-09 15:21:34 UTC (rev 11175)
+++ branches/Branch_3_2/Hibernate3/src/org/hibernate/dialect/Dialect.java 2007-02-09 15:21:47 UTC (rev 11176)
@@ -1655,4 +1655,24 @@
public boolean supportsExistsInSelect() {
return true;
}
+
+ /**
+ * For the underlying database, is READ_COMMITTED isolation implemented by
+ * forcing readers to wait for write locks to be released?
+ *
+ * @return True if writers block readers to achieve READ_COMMITTED; false otherwise.
+ */
+ public boolean doesReadCommittedCauseWritersToBlockReaders() {
+ return false;
+ }
+
+ /**
+ * For the underlying database, is REPEATABLE_READ isolation implemented by
+ * forcing writers to wait for read locks to be released?
+ *
+ * @return True if readers block writers to achieve REPEATABLE_READ; false otherwise.
+ */
+ public boolean doesRepeatableReadCauseReadersToBlockWriters() {
+ return false;
+ }
}
More information about the hibernate-commits
mailing list