#1553 - Remove deprecated method Query.setForUpdate(boolean) ... migrate to setForUpdate()

This commit is contained in:
rob bygrave
2018-11-19 23:40:00 +13:00
parent 83776a1eae
commit 9dbb69f4f4
2 changed files with 0 additions and 16 deletions
-9
View File
@@ -1505,15 +1505,6 @@ public interface Query<T> {
*/
String getGeneratedSql();
/**
* Deprecated - migrate to forUpdate().
*
* executed the select with "for update" which should lock the record
* "on read"
*/
@Deprecated
Query<T> setForUpdate(boolean forUpdate);
/**
* Execute using "for update" clause which results in the DB locking the record.
*/
@@ -910,13 +910,6 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
return this;
}
@Override
public DefaultOrmQuery<T> setForUpdate(boolean forUpdate) {
this.forUpdate = (forUpdate) ? ForUpdate.BASE : null;
this.useBeanCache = CacheMode.OFF;
return this;
}
@Override
public DefaultOrmQuery<T> forUpdate() {
return setForUpdateWithMode(ForUpdate.BASE);