|
19 | 19 | import org.labkey.api.security.UserManager; |
20 | 20 | import org.labkey.api.util.MemTracker; |
21 | 21 | import org.labkey.api.util.PageFlowUtil; |
22 | | -import org.springframework.dao.DeadlockLoserDataAccessException; |
| 22 | +import org.springframework.dao.PessimisticLockingFailureException; |
23 | 23 |
|
24 | 24 | import java.sql.SQLException; |
25 | 25 | import java.util.ArrayList; |
@@ -149,9 +149,9 @@ private Map<String, String> getAllowableValues(ColumnInfo ci) |
149 | 149 |
|
150 | 150 | return _allowableValueMap.get(name); |
151 | 151 | } |
152 | | - catch (DeadlockLoserDataAccessException e) |
| 152 | + catch (PessimisticLockingFailureException e) |
153 | 153 | { |
154 | | - _log.error("DeadlockLoserException in LookupValidationHelper for table: " + _table.getPublicSchemaName() + "." + _table.getPublicName(), e); |
| 154 | + _log.error("PessimisticLockingFailureException in LookupValidationHelper for table: " + _table.getPublicSchemaName() + "." + _table.getPublicName(), e); |
155 | 155 | throw e; |
156 | 156 | } |
157 | 157 | } |
@@ -190,7 +190,7 @@ public void cascadeUpdate(String targetSchema, String targetTable, String target |
190 | 190 | } |
191 | 191 |
|
192 | 192 | QueryUpdateService qus = ti.getUpdateService(); |
193 | | - qus.updateRows(_user, _container, toUpdate, oldPKs, null, new HashMap<String, Object>()); |
| 193 | + qus.updateRows(_user, _container, toUpdate, oldPKs, null, new HashMap<>()); |
194 | 194 | } |
195 | 195 |
|
196 | 196 | public boolean verifyNotUsed(String targetSchema, String targetTable, String targetField, Object val) throws SQLException |
|
0 commit comments