Author: smarlow(a)redhat.com
Date: 2010-01-30 12:27:32 -0500 (Sat, 30 Jan 2010)
New Revision: 18673
Modified:
core/trunk/core/src/main/java/org/hibernate/dialect/PostgreSQLDialect.java
Log:
HHH-4765 Enhance Dialect support for JPA-2 locking.
Modified: core/trunk/core/src/main/java/org/hibernate/dialect/PostgreSQLDialect.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/dialect/PostgreSQLDialect.java 2010-01-29
20:07:40 UTC (rev 18672)
+++ core/trunk/core/src/main/java/org/hibernate/dialect/PostgreSQLDialect.java 2010-01-30
17:27:32 UTC (rev 18673)
@@ -358,4 +358,17 @@
// seems to have spotty LOB suppport
return false;
}
+
+ public String getForUpdateString() {
+ return " for update";
+ }
+
+ public String getWriteLockString(int timeout) {
+ return " for update";
+ }
+
+ public String getReadLockString(int timeout) {
+ return " for share";
+ }
+
}