[hibernate-commits] Hibernate SVN: r11175 - trunk/Hibernate3/src/org/hibernate/dialect.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Fri Feb 9 10:21:34 EST 2007
Author: steve.ebersole at jboss.com
Date: 2007-02-09 10:21:34 -0500 (Fri, 09 Feb 2007)
New Revision: 11175
Modified:
trunk/Hibernate3/src/org/hibernate/dialect/Dialect.java
Log:
added reader-blocks-writer and writer-blocks-reader info methods
Modified: trunk/Hibernate3/src/org/hibernate/dialect/Dialect.java
===================================================================
--- trunk/Hibernate3/src/org/hibernate/dialect/Dialect.java 2007-02-09 04:22:24 UTC (rev 11174)
+++ trunk/Hibernate3/src/org/hibernate/dialect/Dialect.java 2007-02-09 15:21:34 UTC (rev 11175)
@@ -1654,4 +1654,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